RS-485 Protocol frame

RS-485 Protocol frame
Contents
1
1.1
1.2
1.3
1.4
1.5
1.6
Protocol frame .............................................................................................................................. 3
Basic Principle ................................................................................................................................ 3
General ........................................................................................................................................... 3
Framing ........................................................................................................................................... 4
Checksum ....................................................................................................................................... 4
Error Handling ................................................................................................................................. 5
There are 3 different kinds of sensor configurations ...................................................................... 6
2
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
2.13
2.14
2.15
2.16
2.17
2.18
2.19
2.20
2.21
2.22
2.23
2.24
2.25
Commands .................................................................................................................................... 7
Command 000 “RS-485 CONTROLS THE SENSOR” ................................................................... 7
Command 001 “STORE in SETTINGS”.......................................................................................... 7
Command 002 “APPLY SETTINGS” .............................................................................................. 8
Command 003 “RESET to FACTORY SETTINGS” ........................................................................ 8
Command 010 “Set BAUD RATE” .................................................................................................. 9
Command 012 “Set ADDRESS” ..................................................................................................... 9
Command 013 “Get ADDRESS” ..................................................................................................... 9
Command 020 “Set MEASUREMENT TYPE” ................................................................................ 9
Command 031 “Get MEASUREMENT” ........................................................................................ 10
Command 040 “Set PRECISION” ................................................................................................ 11
Command 042 “Set EDGE HEIGHT” ........................................................................................... 11
Command 044 “Set OBJECT” ...................................................................................................... 11
Command 050 “Set FIELD OF VIEW” .......................................................................................... 12
Command 054 “Set FIELD OF VIEW, Auto” ................................................................................. 12
Command 058 “Set FIELD OF VIEW, Set max Values” ............................................................... 12
Command 060 “Set FLEX MOUNT Numeric” ............................................................................... 13
Command 062 “Activate FLEX MOUNT” ...................................................................................... 13
Command 063 “Deactivate FLEX MOUNT” ................................................................................. 14
Command 070 “Set DIGITAL OUT” .............................................................................................. 14
Command 080 “Set LANGUAGE” ................................................................................................ 15
Command 082 “Set DISPLAY BACKLIGHT” ................................................................................ 16
Command 084 “Lock/Unlock TOUCH BUTTONS” ....................................................................... 16
Command 091 “Get SENSOR INFO” ........................................................................................... 16
Command 093 “LIVE MONITOR” ................................................................................................. 17
Command 401 “Get all SETTINGS” ............................................................................................. 17
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
2/19
Baumer Electric AG
Frauenfeld, Switzerland
1
1.1
•
•
Protocol frame
Basic Principle
The host is sending a command to the sensor.
The sensor answers either with the identical command (if it was e.g. a setup command) or with the
requested data or the result of an action.
The address, with which the sensor answers, is always the sensor address.
The address 0 is reserved as broadcast address. Address 0 is also used to ask a sensor for its address.
1
) The maximum number of addresses may be different for different sensors. It depends on the power of
the line driver and the loads.
Invalid values are displayed as 9999.99
Note: some commands will be used by all sensors, but they will not be identical. E.g. set range will be
different for OXP7 and OM70D type. OM70D type will not have left and right limit.
Sensor settings, which have been changed by a command, are volatile until they have been saved as the
working configuration in the sensors nonvolatile memory by an additional command.
•
•
•
•
•
•
1.2
General
Name
Start Bits
Stop Bits
Length of data String
Parity
Number of Bits
1
1
8
none
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
3/19
Baumer Electric AG
Frauenfeld, Switzerland
1.3
Framing
The outer frame of a command always is SOF and EOF
All entries expect the first and the last are separated by a comma on both sides
All data are ACII data
But there are exceptions to the ASCII rule.
From Host to Sensor
Start of Frame (SOF)
Address
Separator
Command
Separator
Data
Separator
Checksum
End of Frame (EOF)
{
1
1..n )
","
0..999
","
ASCII, separated by ","
","
3 Char
}
From Sensor to Host
Start of Frame (SOF)
Address
Separator
Command
Separator
Data
Separator
Checksum
End of Frame (EOF)
{
1..n 1)
","
000..999
","
ASCII, separated by ","
","
3 Char
}
1.4
Checksum
The checksum (CS) is the XOR of the values of all characters including frame and commas up to and
including the last comma before the checksum. It is a decimal number from 000 to 255. Leading zeroes are
transferred. It will be transferred as a decimal number always with 3 digits.
Checksum Sample
Start of Frame (SOF)
Address
Separator
Command
Separator
Data
Separator
Checksum
ASCII Char
{
1
,
0
1
0
,
3
,
1
0
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
Value (Hex)
7B
31
2C
30
31
30
2C
02
2C
31
30
Checksum calculation (HEX)
7B
(7B) XOR (31) = 4A
(4A) XOR (2C) = 66
(66) XOR (30) = 56
(56) XOR (31) = 67
(67) XOR (30) = 57
(57) XOR (2C) = 7B
(7B) XOR (32) = 49
(49) XOR (2C) = 65
Remarks
Address = 1
Always 3 Char
Set Baud Rate
2 = 115200 Baud
Always 3 Char
4/19
Baumer Electric AG
Frauenfeld, Switzerland
End of Frame (EOF)
1.5
1
31
}
-
65H = 101D
Error Handling
Errors will only be returned, if the address and the core of framing was correct.
From Sensor to Host
Start of Frame (SOF)
Address
Separator
Command
Separator
Error Flag
Separator
Error Number
Separator
Checksum
End of Frame (EOF)
{
1..n 1)
","
000..999
","
"E"
","
000..999
","
3 Char
}
If there are more than one error in one command, the sensor will return the error number of the first error.
Communication
Error #
Description
001
False checksum
002
False command
003
False frame
004
False value or parameter
005
Missed command 000, “RS-485 CONTROLS THE SENSOR”
006
Out of range
007
Buffer overflow
100
101
102
103
Distance out of Range (see FSP)
Angle out of Range (see FSP)
Flatness out of Range (see FSP)
Length out of Range (see FSP)
200
Fatal Error (Reset sensor, Power Off / On)
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
5/19
Baumer Electric AG
Frauenfeld, Switzerland
1.6
There are 3 different kinds of sensor configurations
1. Factory configuration: It is stored in the sensor and cannot be changed by the user.
2. Temporary configuration: It is part of a configuration changed by command. The modification is of
immediate effect. But it is not saved in the sensor’s nonvolatile memory. Temporary configurations are lost
after power-down.
3. Working configuration: It must be stored in Setting 0 of the sensor’s nonvolatile memory by command
and is automatically used when power is applied.
The working configuration procedure:
First select the required values by configuration commands. All configurations are still temporary! If
you want the configuration for further use, it must be store as the working configuration by this command
001. Only with this command, the configuration is stored in a non-volatile memory. After power up no new
configuration is required the sensor use automatic the Setting 0.
Also all this command must be stored:
- Set FLEX MOUNT Numeric
- Activate FLEX MOUNT
- Deactivate FLEX MOUNT
- RESET to FACTORY SETTINGS
- APPLY SETTINGS
- …
The only exception is. It must not be stored extra:
- Set SETTING 0 for DUPLICATING
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
6/19
Baumer Electric AG
Frauenfeld, Switzerland
2 Commands
In each chapter, the structure of every command will be documented and explained with an example.
2.1
Command 000 “RS-485 CONTROLS THE SENSOR”
Host:
Sensor:
{Address, Command, RS-485 Controls the sensor, Checksum}
{Address, Command, RS-485 Controls the sensor, Checksum}
The configurations of the OXE7 can be made on two ways:
• Via Display
• Via RS-485
For an unambiguous control of the sensor, only one way is allowed! If the RS-485 is used, the first command
must be the lock command “RS-485 Controls the sensor”. This command cannot be saved.
With this command “RS-485 Controls the sensor” = 1:
- NO changes are possible via display.
- Analogous voltage output = 0V, Analogous current output = 4mA
- Switch-out = low
- Alarm-out = high (Remark: Low suggests all is ok)
To change the configuration between RS485 and display, the host must send the unlock command. After this
command, the customer can use the sensor by display and all outputs are unlocked.
Number
1
0
Function
lock
unlock
Remark
NO changes are possible via display.
Analogous voltage output = 0V, Analogous current output = 4mA
Switch-out = low
Alarm-out = high (Remark: Low suggests all is ok)
If the sensor is not in mode “RS-485 CONTROLS THE SENSOR” and the sensor receives another command
it will return the error number (006). See chapter 1.5 Error handling.
Example: Address = 1
Host
Sensor
{1,000,1,xxx}
{1,000,1,xxx}
2.2
Comment
locked = RS-485 controls the sensor
Command 001 “STORE in SETTINGS”
ALL changes in the sensor configuration are temporary and are at first only stored in volatile memory. They
will be lost after power OFF/ON!
If you want a configuration for further use, it must be stored as the working configuration by this command
001. With this command the configuration is being stored in non-volatile memory. After power on the sensor
will automatically us the Setting 0.
Details see in the specification of display menu “20140218_DisplayOperation_3_xx”.
Host:
Sensor:
{Address, Command, Setting Number, Checksum}
{Address, Command, Setting Number, Checksum}
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
7/19
Baumer Electric AG
Frauenfeld, Switzerland
Number
Function
0
1
2
3
Setting 0
Setting 1
Setting 2
Setting 3
Remarks
Power on setting / working configuration
Example: Address = 1, Setting 3
Host
Sensor
{1,001,3,xxx}
{1,001,3,xxx}
2.3
Comment
Actual configurations stored in
“Setting 3”
Command 002 “APPLY SETTINGS”
Host:
Sensor:
{Address, Command, Setting Number, Checksum}
{Address, Command, Setting Number, Checksum}
With this command, the stored Setting 1, Setting 2 or Setting 3 will be applied as working configuration
(Setting 0). Details see in the specification of display menu “20140218_DisplayOperation_3_xx”.
Number
Function
1
2
3
Setting 1
Setting 2
Setting 3
Example: Address = 1, Setting 2
Host
Sensor
{1,002,2, xxx}
{1,002,2,xxx}
Comment
Apply the stored “Setting 2”
as actual configuration
Just like with any other configuration,if this configuration shall be used as standard after the next power up, it
must be stored with the command “Save Configuration in SETTING” in Setting 0.
Also this command must be stored!
2.4
Command 003 “RESET to FACTORY SETTINGS”
Host:
Sensor:
{Address, Command, Checksum}
{Address, Command, Checksum}
First, the sensor sends the response and then it reboot.
All parameters are reset to factory configurations. See FSP chapter 4.4.1.9.
Example: Address = 1
Host
Sensor
{1,003,xxx}
{1,003,xxx}
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
Comment
Reset to factory configuration
8/19
Baumer Electric AG
Frauenfeld, Switzerland
2.5
Command 010 “Set BAUD RATE”
Host:
Sensor:
{Address, Command, Baud Rate, Checksum}
{Address, Command, Baud Rate, Checksum}
Number
Function
0
1
2
38’400
57’600
115’200
Example: Address = 1, Baud Rate 2
Host
Sensor
{1,010,2,xxx}
{1,010,2,xxx}
2.6
Comment
Baud Rate at 115’200
Answer with old Baud Rate
Command 012 “Set ADDRESS”
Host:
Sensor:
{Current Address, Command, New Address, Checksum}
{Current Address, Command, New Address, Checksum}
Details see in FSP chapter 4.5.1.6
Example: Old Address = 1, New address = 2
Host
Sensor
{1,012,2,xxx}
{1,012,2,xxx}
2.7
Comment
Command 013 “Get ADDRESS”
Host:
Sensor:
{Broadcast Address, Command, Checksum}
{Broadcast Address, Command, Address, Checksum}
Details see in FSP chapter 4.5.1.6
Example: Broadcast Address = 0
Host
Sensor
{0,013,xxx}
{0,013,1,xxx}
Comment
Address = 1
Remarks: The address 0 is reserved as broadcast address. Address 0 is used to ask a sensor for its address.
In this mode only one sensor may be connected to the host. Otherwise this will result in a bus conflict.
2.8
Command 020 “Set MEASUREMENT TYPE”
This command selects the “Measurement Type”. The selected “Measurement Type” will be used for all outputs
(Analog-Out, Digital-Out, LED’s).
Host:
{Address, Command, Measurement Type, Checksum}
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
9/19
Baumer Electric AG
Frauenfeld, Switzerland
Sensor:
Number
0
1
2
3
4
5
6
7
{Address, Command, Measurement Type, Checksum}
FUNCTION
Edge
Edge
Edge
Edge
Width
Width
Gap
Gap
MEASURE TYPE
Edge L rise
Edge L fall
Edge R rise
Edge R fall
Width
Center width
Gap
Center gap
Example: Address = 1, Measurement Type 6
Host
Sensor
Comment
{1,020,6,xxx} {1,020,6,xxx}
Gap
2.9
Command 031 “Get MEASUREMENT”
Host:
Sensor:
{Address, Command, Checksum}
{Address, Command, Get Measurement, Quality, Checksum}
With this command the sensor will return the value of the measurement type that was previously selected by
the command “Set Measurement Type” and his quality.
Number
0
1
2
3
4
Quality of the measurement value
“Valid”
„Low Signal“: See FSP DF10.070
„No Edge“: See FSP DF10.070
„Low Signal, No Edge“: See FSP DF10.070
“No Signal”: See FSP DF10.070
Example: Address = 1, Valid = 0
Host
Sensor
{1,031,xxx}
{1,031,100.64,0,xxx}
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
Comment
Value = 100.64 mm
Quality of the measurement value is “Valid”
10/19
Baumer Electric AG
Frauenfeld, Switzerland
2.10 Command 040 “Set PRECISION”
Precision means: Filter behavior on all output signals. Details see in FSP chapter 4.4.1.11
Host:
Sensor:
{Address, Command, Precision, Checksum}
{Address, Command, Precision, Checksum}
Function Number
0
1
2
Function Name
Standard
High
Very High
Function Values
Median = off, Moving Average = off
Median = 7, Moving Average = 16
Median = 15, Moving Average = 128
Example: Address = 1, Precision High
Host
Sensor
{1,040,1,xxx}
{1,040,1,xxx}
Comment
Precision High
(Median = 7, Moving Average = 16)
2.11 Command 042 “Set EDGE HEIGHT”
Host:
Sensor:
{Address, Command, Height, Checksum}
{Address, Command, Height, Checksum}
This command sets the minimum height of an edge that must be detected. Height is a global variable, if it is
changed, then it changes for ALL three different measuring functions:
EDGE:
EDGE HEIGHT
WIDTH:
OBJ HEIGHT
GAP:
GAP DEPTH
Details see in FSP chapter 4.2.2.3.
Example: Address = 1, Edge Height 4mm
Host
Sensor
Comment
{1,042,4,xxx}
{1,042,4,xxx}
Edge Height 4mm
2.12 Command 044 “Set OBJECT”
Host:
Sensor:
{Address, Command, Bright/Dark Object, Checksum}
{Address, Command, Bright/Dark Object, Checksum}
This command sets the duration of the laser pulse and shutter time. A longer laser pulse results in higher
sensitivity to dark objects and the time for measurement is increased. Details see in FSP chapter 4.2.3
Number
0
1
Function
Bright Object
Dark Object
Example: Address = 1, Bright Object
Host
Sensor
{1,044,0,xxx}
{1,044,0,xxx}
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
Comment
Bright Object
11/19
Baumer Electric AG
Frauenfeld, Switzerland
2.13 Command 050 “Set FIELD OF VIEW”
Host:
Sensor:
{Address, Command, Limit left, Limit right, Offset, Checksum}
{Address, Command, Limit left, Limit right, Offset, Checksum}
With “Field of View” the sensor can change his measuring field. Details see in FSP chapter 4.2.1.1.
Example: Address = 1,
Host
{1,050,-37,37,15,xxx}
Sensor
{1,050,-37,37,15,xxx}
Comment
Limit left = -37
Limit right = 37
Offset = 15
2.14 Command 054 “Set FIELD OF VIEW, Auto”
Host:
Sensor:
{Address, Command, Height, Checksum}
{Address, Command, Height, Width, Checksum}
With this command we can preselect the height of the rectangle in field of view. The sensor calculates the
maximum width of the rectangle in field of view and send it back.
Error handling, see chapter 1.5. Limits see FSP chapter 4.2.1.1.
Example: Address = 1, Height = 47mm
Host
Sensor
{1,054,47,xxx}
{1,054,47,95,xxx}
Comment
Height = 47mm
Width = 95mm
2.15 Command 058 “Set FIELD OF VIEW, Set max Values”
Host:
Sensor:
{Address, Command, Checksum}
{Address, Command, LIMIT LEFT, LIMIT RIGHT, OFFSET, Checksum}
Set FIELD OF VIEW to max Values. Limits see FSP chapter 4.2.1.1.
Example: Address = 1, FIELD OF VIEW Set to max Values
Host
Sensor
Comment
{1,058,xxx}
{1,058,-63,63,0,xxx}
LIMIT LEFT = -63 mm
LIMIT RIGHT = 63 mm
OFFSET = 0 mm
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
12/19
Baumer Electric AG
Frauenfeld, Switzerland
2.16 Command 060 “Set FLEX MOUNT Numeric”
Host:
Sensor:
{Address, Command, Angle, Distance, Checksum}
{Address, Command, Angle, Distance, Checksum}
The wording “FLEX MOUNT” is a marketing name. It means that the sensor angle and distance can teached
by a reference object. Limitations see FSP chapter 4.2.1.3
Example: Address = 1
Host
{1,060,-15.2,202,xxx}
Sensor
{1,060,-15.2,202,xxx}
Comment
Angle = -15.2°
Distance = 202mm
2.17 Command 062 “Activate FLEX MOUNT”
Host:
Sensor:
{Address, Command, Reference thickness, Checksum}
{Address, Command, Reference thickness, Angle, Distance, Checksum}
The wording “FLEX MOUNT” is a marketing name. It means that the sensor angle and distance can teached
by a reference object.
To activate the FLEX MOUNT, all four of these measured values must be inside their limits.
Value
Error Number
Distance out of Range
See chapter 1.5 Error handling.
See chapter 1.5 Error handling.
Angle out of Range
See chapter 1.5 Error handling.
Flatness out of Range
See chapter 1.5 Error handling.
Length out of Range
If one value is outside its limits, the sensor will return the error number and the FLEX MOUNT is NOT
activated. See FSP chapter 4.2.1.3
Example: Address = 1
Host
{1,062,11,xxx}
Sensor
{1,062,11,-15.2, 202,xxx}
Comment
Reference thickness = 11mm
Angle = -15.2°
Distance = 202mm
FLEX MOUNT is activated
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
13/19
Baumer Electric AG
Frauenfeld, Switzerland
2.18 Command 063 “Deactivate FLEX MOUNT”
Host:
Sensor:
{Address, Command, Checksum}
{Address, Command, Checksum}
The wording “FLEX MOUNT” is a marketing name. It means that the sensor angle and distance can teached
by a reference object. Descriptions see in the FSP.
By deactivating the FLEX MOUNT, the sensor will return to the factory configuration. See FSP chapter 4.4.1.9.
Example: Address = 1
Host
Sensor
Comment
{1,063,xxx}
{1,063,xxx}
FLEX MOUNT is deactivated
The FLEX MOUNT settings will be reset to factory configuration. See FSP chapter 4.4.1.9.
2.19 Command 070 “Set DIGITAL OUT”
Host:
Sensor:
{Address, Command, Type, Switch Point 1, Switch Point 2, Polarity, Checksum}
{Address, Command, Type, Switch Point 1, Switch Point 2, Polarity, Checksum}
The senor has two types of digital outputs:
• Point (there is only one value to compare with the measured value.
• Window (therer are two values, which define a window to be compared with the measured value.)
This command defines the complete configuration.
Details see in FSP chapter 4.4.1.12
Type
Number
Type
0
Point
1
Window
Number
0
1
Polarity
Active high
Active low
Example: Address = 1, Point
Host
Sensor
{1,070,0,-35,-35,1,xxx}
{1,070,0,-35,xx,1,xxx}
Comment
Switch Point = -35mm,
Active low
At the type “Point”, the “Switch Point 2” can be any value.
Example: Address = 1, Window
Host
Sensor
{1,070,1,-35,20,0,xxx}
{1,070,1,-35,20,0,xxx}
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
Comment
Switch Point 1= -35mm
Switch Point 2= 20mm
Active high
14/19
Baumer Electric AG
Frauenfeld, Switzerland
2.20 Command 080 “Set LANGUAGE”
Host:
Sensor:
{Address, Command, Language, Checksum}
{Address, Command, Language, Checksum}
Details see in the specification of display menu “20140218_DisplayOperation_3_xx”.
Number
Function
0
1
2
3
English
German
Italian
French
Example: Address = 1, Language English
Host
Sensor
Comment
{1,080,0,xxx}
{1,080,0,xxx}
Language English
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
15/19
Baumer Electric AG
Frauenfeld, Switzerland
2.21 Command 082 “Set DISPLAY BACKLIGHT”
Host:
Sensor:
{Address, Command, Display Light, Checksum}
{Address, Command, Display Light, Checksum}
This command sets the time when the backlight is on.
Details see in the specification of display menu “20140218_DisplayOperation_3_xx”.
Number
0
1
2
3
Function
OFF after 5 min
OFF after 10 min
OFF after 20 min
Always ON
Example: Address = 1, Display Light Always ON
Host
Sensor
Comment
{1,082,3,xxx}
{1,082,3,xxx}
Display Light Always ON
2.22 Command 084 “Lock/Unlock TOUCH BUTTONS”
Host:
Sensor:
{Address, Command, Touch Button, Checksum}
{Address, Command, Touch Button, Checksum}
On the display we had four touch buttons. With this command the buttons can be locked or unlocked.
Number
1
0
Function
Remark
Display: The distance value appears on the display. If
one of the four buttons is activated, then the message:
“RS-485 locked the touch buttons” will appear on the
display.
lock
unlock
NO changes are possible via display.
Example: Address = 1
Host
Sensor
{1,084,1,xxx}
{1,084,1,xxx}
Comment
Touch Buttons unlocked
2.23 Command 091 “Get SENSOR INFO”
From Host:
From Sensor:
{Address, Command, Checksum}
{Address, Command, Sensor Type, Serial Number, Checksum}
Example: Address = 1
Host
Sensor
{1,091,xxx}
{1,091,OXE7.E25T-MB3E.SIMD.7AI,
123456789_001,xxx}
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
16/19
Comment
Sensor Type = OXE7.E25T-MB3E.SIMD.7AI
Serial Number = 123456789_001
Baumer Electric AG
Frauenfeld, Switzerland
2.24 Command 093 “LIVE MONITOR”
Host:
Sensor:
{Address, Command, Checksum}
{Address, Command, Angle, Distance, Checksum}
With this command the sensor returns the angle and the distance along the measuring axis.
Details see in the specification of display menu “20140218_DisplayOperation_3_xx”.
Example: Address = 1
Host
Sensor
{1,093,xxx}
{1,093,-15.2,200,xxx}
Comment
Angle -15.2°
Distance = 200mm
2.25 Command 401 “Get all SETTINGS”
To check the configuration of the sensor, we have a global command “Get all SETTING”.
Host:
Sensor:
{Address, Command, Setting Number, Checksum}
{Address, Command, Setting Number, RS485 Baud Rate, RS485 Address, Display light,
Language, Touch buttons, Switch Type, Switch point 1, Switch point 2, Switch polarity, Meas
Type, Precision, Object, Edge height, Flex mount status, Angle, Distance, Field of view status,
Limit left, Limit right, Offset, Height, Checksum}
Number
Function
0
1
2
3
Setting 0
Setting 1
Setting 2
Setting 3
Remarks
Power on setting / working setting
The detail specifications of the Setting see in the chapter before.
Number
Setting
Remarks
0
RS485 Baud Rate
1
RS485 Address
2
Display light
3
Language
4
Touch buttons
Lock/Unlock
5
Switch Type
Digital out, Point /Window
Digital out
6
Switch point 1
Digital out
7
Switch point 2
Digital out
8
Switch polarity
9
10
11
12
Meas type
Precision
Object
Edge height
13
14
Flex mount status
Angle
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
Active = 1
Deactive = 0
Flex mount
17/19
Baumer Electric AG
Frauenfeld, Switzerland
15
16
17
18
19
Distance
Limit left
Limit right
Offset
Height
Flex mount
Example: Address = 1, Setting 0
Host
Sensor
{1,401,0,xxx}
{1,401,0,2,4,3,1,...,xxx}
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
Comment
0 = Setting 0
2 = Baud Rate 115’200
4 = Address 004
3 = Display light Always ON
1 = Language German
…
18/19
Baumer Electric AG
Frauenfeld, Switzerland
en_RS485_Protocol_frame.docx
17.07.2014 16:08/tof V1.01 ANW_81125408
19/19
Baumer Electric AG
Frauenfeld, Switzerland