11
Operating manual EE211 Heated humidity and temperature sensor
5.2.5 Reading Example
Example of MODBUS RTU command for reading the temperature (float value) T = 26.652524 °C
from the register 0x19:
Device EE211; slave ID 239 [EF in Hex]
Reference document, chapter 6.3:
www.modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf
Request [Hex]: EF 03 00 19 00 02 EB 7B
Modbus ID
address
Function
code
Starting
address Hi
Starting
address Lo
No. of
register Hi
No. of
register Lo
CRC
Request
[Hex]:
EF
03
00
19
00
02
EB
7B
Response [Hex]: EF 03 04 38 5F 41 D5 0A E3
Modbus ID
address
Function
code
Byte
count
Register 1
value Hi
Register 1
value Lo
Register 2
value Hi
Register 2
value Lo
CRC
Response
[Hex]:
EF
03
04
38
5F
41
D5
0A
E3
For decoding of float values (stored according standard IEEE754), please refer to AN0103, chapter 7.
(available on www.epluse.com/ee211).
Example of decoding:
Response [Hex]:
Value in decimal
Byte 1
(Register 2 - Hi)
Byte 2
(Register 2 – Lo)
Byte 3
(Register 1 - Hi)
Byte 4
(Register 1 - Lo)
41
D5
38
5F
26.652524