Baumer Commissioning | 7
OM20/ OM30 RS485 with Modbus RTU | V1 Operating Manual 23
The following data (hexadecimal) is read out for the distance value:
n
202 = 7C37
n
203 = 428B
The distance value is divided between 2 Modbus registers (Little Endian). Thus, the less signifi-
cant bits are located at the smaller address, in this case 202. The more significant bits are lo-
cated at the larger address, in this case 203. The distance value must therefore be evaluated as
42 8B 7C 37. This results in a distance of 69.743mm.
7.3 Measured value and additional information
The measured value and additional information can be called up by calling up the input register
with the address 200.
Modbus RTU command – input register: measured value and additional information
Address 200 – All Measurement Values:
Address Access
Number of
registers Data type Description
200 Read 1 unit16_t Measured value signal quality:
n
0 = ok
n
1 = weak signal
n
2 = critical signal
201 Read 1 unit16_t Bit 0: switching output:
n
0 = inactive
n
1 = active
Bit 1: alarm output
n
0 = inactive
n
1 = active
202 - 203 Read 2 float32_t Distance [mm]
204 - 205 Read 2 float32_t Measurement rate [Hz]
206 Read 1 unit16_t Exposure reserve
207 - 208 Read 2 unit32_t Response delay [µs]
209 - 210 Read 2 unit32_t Time stamp [s]
211 - 212 Read 2 unit32_t Time stamp [µs]
INFO
The distance value in address 202 and 203 can also be read individually. For this, read out reg-
ister 202 with register number 2. A single readout of the distance can reduce the transmission
time.