HRX-OM-W004
Chapter 3 Serial communication
HRR Series 3.11
Explanation of function codes
3-15
Response message 0110000B0002
Field name
Example
(HEX)
ASCII mode
character data
RTU mode
binary data
Header - “:”
None
Slave Address
0x01
“0”,“1” 0x01
Function
0x10
“1”,“0” 0x10
Head address of register to write 0x000B
“0”,“0”,“0”,“B” 0x00,0x0B
Quantity of register to write 0x0002
“0”,“0”,“0”,“2” 0x00,0x02
Checksum ASCII:LRC
RTU:CRC
- “E”,”2” 0x30,0x0A
Trailer
- CR/LF
None
Total
quantity of byte
17 8
3.11.4 Function code:23 Reading/writing multiple registers
Register content of assigned points of assigned address is read. Write the
register data from the specified address with specified points simultaneously.
■ Communication example
○Slave Address:No.1
○
Read three consecutive data from register 0004h, and write two consecutive data from
register 000Bh.
(Command to change the circulating fluid set temperature to <15.5
o
C>, and read status
and alarm information.)
Request message 011700040003000B000204009B0001
Field name
Example
(HEX)
ASCII mode
character data
RTU mode
binary data
Header - “:”
None
Slave Address
0x01
“0”,“1”
0x01
Function
0x17 “1”,“7” 0x17
Head address of specified register
0x0004 “0”,“0”,“0”“4” 0x00,0x04
Quantity of register to read
0x0003 “0”,“0”,“0”“3” 0x00,0x03
Head address of specified register
0x000B “0”,“0”,“0”,“B” 0x00,0x0B
Quantity of register to write
0x0002 “0”,“0”,“0”,“2” 0x00,0x02
Quantity of byte to write
0x04 “0”,“4” 0x04
Information written to 000Bh
(Circulating fluid set temperature)
0x009B “0”,“0”,“9”,“B” 0x00,0x9B
Information written to 000Ch (Stop
flag)
0x0001 “0”,“0”,“0”,“1” 0x00,0x01
Checksum ASCII:LRC
RTU:CRC
- “3”,”4” 0x96,0xD6
Trailer
- CR/LF
None
-
Total
quantity of byte
35 17