EN

RS485 Index Command List.
MESAX multi-spot.
Contents
1
1.1
Introduction ................................................................................................................................... 3
UART Interface Settings ................................................................................................................. 3
2
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
Command Structure ..................................................................................................................... 3
Index Command List ....................................................................................................................... 4
Application Errors ........................................................................................................................... 4
Device identification ........................................................................................................................ 4
Communication features ................................................................................................................. 5
User interface features ................................................................................................................... 5
Measurement features .................................................................................................................... 6
Output configuration ....................................................................................................................... 7
Diagnosis features .......................................................................................................................... 8
Configuration storage features ....................................................................................................... 8
3
3.1
Appendix...................................................................................................................................... 13
Dependencies ............................................................................................................................... 13
4
History of changes ..................................................................................................................... 14
en_BA_RS485_MESAX_multi-spot_Commands.docx
27.01.2016 15:30/tof V1.0 ANW_81188277
2/15
Baumer Electric AG
Frauenfeld, Switzerland
1
Introduction
This manual supplements the manual "RS485 Protocol Structure" and is valid for the Baumer MESAX multispot sensors.
1.1
UART Interface Settings
Index Command
Baud rate at power up
Databits
Startbit
Stopbit
Parity
2
Value
57600
8
1
1
Even
Command Structure
An RS485 command is structured as follows.
PAYLOAD
END
CHECKSUM
SEPARATOR
PAYLOAD ELEMENT
SEPARATOR
INDEX
START
DEVICE ADDR
TYPE
:01W020;10;41BE\r\n
The information to be transmitted is called PAYLOAD and has to be sent in a so-called frame so that the
command can be recognized and processed.
This frame always has the same structure and contains a start, a device address, a PAYLOAD, a checksum
and an end.
START
1 char
:
DEVICE ADDR
2 char
01…99
PAYLOAD
n char
Index Command List
en_BA_RS485_MESAX_multi-spot_Commands.docx
27.01.2016 15:30/tof V1.0 ANW_81188277
CHECKSUM
4 char
****
3/15
END
2 char
\r\n
Baumer Electric AG
Frauenfeld, Switzerland
2.1
Index Command List
Values marked with * are the Factory settings
2.2
Application Errors
0
( 0x0 )
R
Application error
Stored in configuration
Contains the application error code of the last command. If an no
application error occurs, it is signalled using the underlying
protocol. The error code has to be read immediately after the
error is signalled. It will be overwritten by any other
command.
UINT32
2.3
Application error
0
no error
1
value not accessible
99
argument out of range
100
distance out of range
101
angle out of range
102
flatness out of range
103
length out of range
Device identification
1
( 0x1 )
Vendor info
Vendor information
R
UINT32
Vendor id
1
Baumer Electric AG
STRING
65
Vendor name
Stored in configuration
no
default: Baumer Electric AG
2
( 0x2 )
Device info
Device information
R
UINT32
Device id
UINT32
Product id
Material number
STRING
65
Sensor type
Eg. OXE7.E25T-MB3E.SIMD.A7
Stored in configuration
no
STRING
15
2.4
Serial number
1234567890AB
Communication features
5
( 0x5 )
RW
Bus address
UINT8
Stored in configuration
yes
Bus address
Value range: 1 ... 99
6
( 0x6 )
RW
Baudrate
Communication baud rate
UINT8
2.5
Stored in configuration
yes
Baudrate
0
38'400
1 *
57'600
2
115'200
User interface features
10
( 0xA )
RS485 lock
Access lock for RS485. If the lock is activated, the sensor can
be controlled using the touch buttons and all RS485
commands will be rejected (except access to this index). If
the lock is deactivated, the sensor can be controlled using
RS485. In this case, all physical outputs (analog, switching
and alarm out) will be deactivated and the LEDS will be set to
a fixed state.
RW
UINT8
11
( 0xB )
RW
15
( 0xF )
RW
Stored in configuration
yes
Output reactivation
0 *
Outputs deactivated
1
Outputs activated
Display language
RW
UINT8
16
( 0x10 )
RS485 lock
0
Lock deactivated
1 *
Lock activated
Output reactivation
If enabled, the physical outputs (analog, switching and alarm
out) will be re-enabled. Be aware that using physical outputs
and RS485 simultaneously may lead to interferences. When
RS485 lock is active, the outputs are also activated regardless
of this index.
UINT8
Stored in configuration
no
Stored in configuration
yes
Display language
0 *
English
1
German
2
Italian
3
French
Display backlight
en_BA_RS485_MESAX_multi-spot_Commands.docx
27.01.2016 15:30/tof V1.0 ANW_81188277
Stored in configuration
yes
5/15
Baumer Electric AG
Frauenfeld, Switzerland
UINT8
17
( 0x11 )
RW
Touch button lock
UINT8
2.6
Display backlight
0 *
5 min
Display backlight switched off after 5min inactivity.
1
10 min Display backlight switched off after 10min inactivity.
2
20 min Display backlight switched off after 20min inactivity.
3
Always on
Display backlight is newer switched off.
Stored in configuration
yes
Touch button lock
0 *
Touch buttons not locked
1
Touch buttons locked
Measurement features
20
( 0x14 )
Measurement type selection
RW
UINT8
21
( 0x15 )
UINT8
Quality
Quality of the optical input signal.
0
Valid
1
Low signal
4
No signal
FLOAT32
Average
FLOAT32
Max
FLOAT32
Min
FLOAT32
Dummy
FLOAT32
Standard deviation
RW
Quality
0
1
4
Stored in configuration
no
Valid
Low signal
No signal
Field of view
Lateral measuring field
INT16
Stored in configuration
no
Measurement value
[mm]
All measurement values
Get all available measurement values according to selected
measurement type. This index can only be read if precision is
set to "standard".
R
UINT8
30
( 0x1E )
selection
to use for all outputs (Analog output, Digital output, LED’s).
(AVG)
(MAX)
(MIN)
Measurement value
Measurement value selected by the "Measurement type
selection" index.
R
FLOAT32
22
( 0x16 )
Measurement type
Measurement type
10 *
Distance
11
Distance
12
Distance
Stored in configuration
yes
Stored in configuration
yes
Limit left
Field of view left limitation [mm].
en_BA_RS485_MESAX_multi-spot_Commands.docx
27.01.2016 15:30/tof V1.0 ANW_81188277
6/15
Baumer Electric AG
Frauenfeld, Switzerland
INT16
31
( 0x1F )
W
Set field of view to MAX command
Sets the field of view to its maximum values.
UINT8
32
( 0x20 )
RW
RW
34
( 0x22 )
Stored in configuration
yes
Precision
0 *
Standard
1
High
2
Very high
Laser off data hold
Stored in configuration
If activated, the measurement will be suspended and the laser no
is switched off. All outputs will hold the current value. The
diagnose mode (50) is disabled. If deactivated, the
measurement will continue.
RW
UINT8
2.7
Stored in configuration
yes
Object type
0 *
Bright object
1
Dark object
Precision
Adjust the filtering of the measured values.
UINT8
Stored in configuration
no
Set field of view to MAX command
1
Set field of view to MAX
Object type
Adjust the exposure time for either dark target objects or
bright target objects. Selecting DarkObject will lead to a
longer measurement cylce.
UINT8
33
( 0x21 )
Limit right
Field of view right limitation [mm].
Laser off data hold
0 *
Measurement is running
1
Measurement is holding
Output configuration
40
( 0x28 )
41
( 0x29 )
Digital output configuration
Settings of the digital output pin.
RW
FLOAT32
Switch point 1
[mm]
FLOAT32
Switch point 2
[mm]
UINT8
Digital output type
0 *
Point
1
Window
UINT8
Digital output polarity
0 *
Active high
1
Active low
Analog output configuration
The analog output can be set as current or voltage output.
RW
UINT8
Stored in configuration
yes
Stored in configuration
yes
Analog output type
0 *
Current
1
Voltage
en_BA_RS485_MESAX_multi-spot_Commands.docx
27.01.2016 15:30/tof V1.0 ANW_81188277
7/15
Baumer Electric AG
Frauenfeld, Switzerland
UINT8
42
( 0x2A )
43
( 0x2B )
RW
Analog output scaling
Points within the measuring range where the analog output
value reaches its minimum/ full scale value (depends on
"Analog output slope" setting).
FLOAT32
Analog scaling near point
[mm]
FLOAT32
Analog scaling far point
[mm]
W
Set analog out scale to MAX command
Sets the ananlog output scaling to its maximum values.
UINT8
2.8
Stored in configuration
yes
Stored in configuration
no
Set analog out scale to MAX command
1
Set analog out scale to MAX.
Diagnosis features
50
( 0x32 )
RW
Diagnose mode
If diagnose mode is activated, the diagnosis features (live
monitor and profile) can be used. During diagnose mode, all
filters will be disabled and the ouputs (analog and digital) will
be set to fixed values. The standard measurement values are
not accessible (index 21,22) and the laser can't be switched
off (index 34).
UINT8
51
( 0x33 )
2.9
Analog output slope
Slope of the analog characteristic curve. Can be positive (minimum output at minimum
measurement value, fullscale output at maximum measurement value) or negative (vice
versa).
0 *
Positive
1
Negative
Diagnose mode
0 *
Deactivated
1
Activated
Live monitor
The Live monitor values are based on the learned reference
plane (Flex mount feature).
R
Stored in configuration
no
FLOAT32
Angle
[deg]
FLOAT32
Center hight
[mm]
FLOAT32
Left edge rising
[mm]
Stored in configuration
no
Configuration storage features
200
( 0xC8 )
W
Load configuration command
Loads the selected configuration to ram (current
configuration). For permanent storage of the loaded values,
the "Store configuration command" has to be used.
UINT8
Stored in configuration
no
Configuration number
0
Active config
en_BA_RS485_MESAX_multi-spot_Commands.docx
27.01.2016 15:30/tof V1.0 ANW_81188277
8/15
Baumer Electric AG
Frauenfeld, Switzerland
1
2
3
201
( 0xC9 )
W
Store configuration command
Permanently stores the current configuration.
UINT8
202
( 0xCA )
Stored in configuration
no
Reset to factory settings command
0
Reset to factory settings
Configuration 1
Values stored in configuration 1.
R
Stored in configuration
no
Configuration number
0
Active config
Current configuration will be stored to the active configuration.
1
Config 1 Current configuration will be stored to Config 1.
2
Config 2 Current configuration will be stored to Config 2.
3
Config 3 Current configuration will be stored to Config 3.
Reset to factory settings command
All configurations will be reset to factory settings. The sensor
will reboot after execution of this command.
W
UINT8
203
( 0xCB )
Config 1
Config 2
Config 3
UINT8
Measurement type
Measurement type
10 *
Distance
11
Distance
12
Distance
UINT8
Object type
0 *
Bright object
1
Dark object
UINT8
Precision
0 *
Standard
1
High
2
Very high
INT8
Dummy_1
FLOAT32
Dummy_2
FLOAT32
Dummy_3
Stored in configuration
no
selection
to use for all outputs (Analog output, Digital output, LED’s).
(AVG)
(MAX)
(MIN)
INT16
Limit left
Field of view left limitation [mm].
INT16
Limit right
Field of view right limitation [mm].
FLOAT32
Analog scaling near point
[mm]
FLOAT32
Analog scaling far point
[mm]
UINT8
Analog output type
0 *
Current
1
Voltage
UINT8
Analog output slope
Slope of the analog characteristic curve. Can be positive (minimum output at minimum
measurement value, fullscale output at maximum measurement value) or negative (vice
versa).
0 *
Positive
1
Negative
UINT8
Digital output type
0 *
Point
en_BA_RS485_MESAX_multi-spot_Commands.docx
27.01.2016 15:30/tof V1.0 ANW_81188277
9/15
Baumer Electric AG
Frauenfeld, Switzerland
1
UINT8
204
( 0xCC )
Window
Digital output polarity
0 *
Active high
1
Active low
FLOAT32
Switch point 1
[mm]
FLOAT32
Switch point 2
[mm]
Configuration 2
Values stored in configuration 2.
R
UINT8
Measurement type
Measurement type
10 *
Distance
11
Distance
12
Distance
UINT8
Object type
0 *
Bright object
1
Dark object
UINT8
Precision
0 *
Standard
1
High
2
Very high
INT8
Dummy_1
FLOAT32
Dummy_2
FLOAT32
Dummy_3
Stored in configuration
no
selection
to use for all outputs (Analog output, Digital output, LED’s).
(AVG)
(MAX)
(MIN)
INT16
Limit left
Field of view left limitation [mm].
INT16
Limit right
Field of view right limitation [mm].
FLOAT32
Analog scaling near point
[mm]
FLOAT32
Analog scaling far point
[mm]
UINT8
Analog output type
0 *
Current
1
Voltage
UINT8
Analog output slope
Slope of the analog characteristic curve. Can be positive (minimum output at minimum
measurement value, fullscale output at maximum measurement value) or negative (vice
versa).
0 *
Positive
1
Negative
UINT8
Digital output type
0 *
Point
1
Window
UINT8
Digital output polarity
0 *
Active high
1
Active low
FLOAT32
Switch point 1
[mm]
FLOAT32
Switch point 2
[mm]
en_BA_RS485_MESAX_multi-spot_Commands.docx
27.01.2016 15:30/tof V1.0 ANW_81188277
10/15
Baumer Electric AG
Frauenfeld, Switzerland
205
( 0xCD )
206
( 0xCE )
Configuration 3
Values stored in configuration 3.
R
UINT8
Measurement type
Measurement type
10 *
Distance
11
Distance
12
Distance
UINT8
Object type
0 *
Bright object
1
Dark object
UINT8
Precision
0 *
Standard
1
High
2
Very high
INT8
Dummy_1
FLOAT32
Dummy_2
FLOAT32
Dummy_3
Stored in configuration
no
selection
to use for all outputs (Analog output, Digital output, LED’s).
(AVG)
(MAX)
(MIN)
INT16
Limit left
Field of view left limitation [mm].
INT16
Limit right
Field of view right limitation [mm].
FLOAT32
Analog scaling near point
[mm]
FLOAT32
Analog scaling far point
[mm]
UINT8
Analog output type
0 *
Current
1
Voltage
UINT8
Analog output slope
Slope of the analog characteristic curve. Can be positive (minimum output at minimum
measurement value, fullscale output at maximum measurement value) or negative (vice
versa).
0 *
Positive
1
Negative
UINT8
Digital output type
0 *
Point
1
Window
UINT8
Digital output polarity
0 *
Active high
1
Active low
FLOAT32
Switch point 1
[mm]
FLOAT32
Switch point 2
[mm]
R
Active configuration
Values stored in the active configuration (0).
UINT8
Measurement type
Measurement type
10 *
Distance
11
Distance
12
Distance
Stored in configuration
no
selection
to use for all outputs (Analog output, Digital output, LED’s).
(AVG)
(MAX)
(MIN)
en_BA_RS485_MESAX_multi-spot_Commands.docx
27.01.2016 15:30/tof V1.0 ANW_81188277
11/15
Baumer Electric AG
Frauenfeld, Switzerland
UINT8
Object type
0 *
Bright object
1
Dark object
UINT8
Precision
0 *
Standard
1
High
2
Very high
INT8
Dummy_1
FLOAT32
Dummy_2
FLOAT32
Dummy_3
INT16
Limit left
Field of view left limitation [mm].
INT16
Limit right
Field of view right limitation [mm].
FLOAT32
Analog scaling near point
[mm]
FLOAT32
Analog scaling far point
[mm]
UINT8
Analog output type
0 *
Current
1
Voltage
UINT8
Analog output slope
Slope of the analog characteristic curve. Can be positive (minimum output at minimum
measurement value, fullscale output at maximum measurement value) or negative (vice
versa).
0 *
Positive
1
Negative
UINT8
Digital output type
0 *
Point
1
Window
UINT8
Digital output polarity
0 *
Active high
1
Active low
FLOAT32
Switch point 1
[mm]
FLOAT32
Switch point 2
[mm]
en_BA_RS485_MESAX_multi-spot_Commands.docx
27.01.2016 15:30/tof V1.0 ANW_81188277
12/15
Baumer Electric AG
Frauenfeld, Switzerland
3
3.1
Appendix
Dependencies
Because some commands are dependent on one another, they can be executed only if certain settings were configured in advance. Important: Before RS485
commands can be sent, RS485 must be unlocked via the command :01W010;0;E9C3\r\n (010 RS485 lock).
4
History of changes
Date
24.11.2015
Version
1.0
Description
Document created
en_BA_RS485_MESAX_multi-spot_Commands.docx 14/15
27.01.2016 15:30/tof V1.0 ANW_81188277
Baumer Electric AG
Frauenfeld, Switzerland