HRX-OM-W004
Chapter 3 Serial communication
HRR Series 3.11
Explanation of function codes
3-13
Response message 01040E00D40000000D0000020100000000
Field name
Example
(HEX)
ASCII mode
character data
RTU mode
binary data
Header - “:”
None
Slave Address
0x01
“0”,“1” 0x01
Function
0x04
“0”,“4” 0x04
Quantity of bytes to read 0x0E
“0”,“E” 0x0E
Information of 0000h(Circulating fluid
discharge temperature
)
0x00D4
“0”,“0”,“D”,“4” 0x00,0xD4
Information of 0001h(Circulating fluid
flow rate
)
0x0000
“0”,“0”,“0”,“0” 0x00,0x00
Information of 0002h(Circulating fluid
discharge pressure
)
0x000D
“0”,“0”,“0”,“D” 0x00,0x0D
Information of 0003h(Electric
conductivity of the circulating fluid
)
0x0000
“0”,“0”,“0”, “0” 0x00,0x00
Information of 0004h (Status flag 1) 0x0201
“0”,“2”,“0”,“1” 0x02,0x01
Information of 0005h (Alarm flag 1) 0x0000
“0”,“0”,“0”,“0” 0x00,0x00
Information of 0006h (Alarm flag 2) 0x0000
“0”,“0”,“0”,“0” 0x00,0x00
Checksum ASCII:LRC RTU:CRC - “0”,”9” 0xF8,0x80
Trailer
- CR/LF
None
Total
quantity of byte
39 19
3.11.2 Function code:06 Writing registers
Write data to assigned address.
■Communication example
○Slave Address : No.1
○
Write data to register 000Ch
(Commands to run)
Request message 0106000C0001
Field name
Example
(HEX)
ASCII mode
character data
RTU mode
binary data
Header - “:”
None
Slave Address
0x01
“0”,“1”
0x01
Function 0x06 “0”,“6” 0x06
Head address of specified register 0x000C “0”,“0”,“0”,“C” 0x00,0x0C
Information written to 000Ch
(Stop flag)
0x0001 “0”,“0”,“0”,“1” 0x00,0x01
Checksum ASCII:LRC RTU:CRC
- “E”,”C” 0x88,0x09
Trailer
- CR/LF
None
-
Total
quantity of byte
17 8