Users’ Manual
ESM-12S Digital seepage monitoring system
Page
|
24
7.5 Modbus command format
Followings are some examples of Holding Registers Read and single register write.
•
Reading Holding Registers (Ex: Reading sensor data)
BYTE REQUEST
BYTE
ANSWER
(Hex)
Field name
(Hex)
Field name
02
Device address
02
Device address
03
Functional code
03
Functional code
01
Address of the first register Hi
bytes
0C
Number of bytes more
2C
Address of the first register Lo
bytes
00 00
Register value Ch-1 Status 16-bit un-
signed
00
Number of registers Hi bytes
3B 21 3E
1B
Register value Parameter 32-bit Float
(0.002460)
06
Number of registers Lo bytes
00 00
Register value Ch-2 Status 16-bit un-
signed
05
Checksum CRC
41 DB E3
36
Register value Temperature 32-bit
Float
(27.485)
CE
Checksum CRC
B1
Checksum CRC
82
Checksum CRC
•
Write Single Register (Ex: Changing device address from 0x0001 to 0x0002)
BYTE REQUEST
BYTE
ANSWER
(Hex)
Field name
(Hex)
Field name
01
Device address
01
Device address
06
Functional code
06
Functional code
00
Address of the Register Hi bytes
00
Address of the Register Hi bytes
DD
Address of the Register Lo bytes
DD
Address of the Register Lo bytes
00
Data (write) Hi bytes
00
Data (value) Hi bytes
02
Data (write) Lo bytes
02
Data (value) Lo bytes
98
Checksum CRC
98
Checksum CRC
31
Checksum CRC
31
Checksum CRC