HRX-OM-W004
Chapter 3 Serial communication
3.11
Explanation of function codes HRR Series
3-12
No
Classification
Contents Result
1
CRC
message for
calculation
0106000B00FE -
2
Calculation
Perform (1) to (4) for the 1st value (0001h) and then,
perform (5).
807Eh
3
Perform (6) for 2nd value (0006h) and then, perform
(5).
2280h
4
Perform (6) for 3rd. value (0000h) and then, perform
(5).
A023h
5
Perform (6) for 4th value (000Bh) and then, perform
(5).
1EA0h
6
Perform (6) for 5th value (0000h) and then, perform
(5).
781Eh
7
Perform (6) for 6th value (00FEh) and then, perform
(5).
8879h
(CRC)
8
Addition to the
sent message
0106000B00FE7988∗1 -
∗1 When incorporating it into the message, set it in order of low byte and high byte.
3.11 Explanation of function codes
3.11.1 Function code:04 Reading multiple registers
Register data of assigned points from assigned address is read.
■
Communication example
○Slave Address : No.1
○
Read seven consecutive data from register 0000h.
(
Read circulating fluid discharge temperature、circulating fluid flow rate、circulating fluid
discharge pressure
、 electric conductivity of the circulating fluid 、 status address
information
、alarm information)
Request message 010400000007
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
Head address of specified register 0x0000 “0”,“0”,“0”,“0” 0x00,0x00
Quantity of register to read 0x0007 “0”,“0”,“0”,“7” 0x00,0x07
Checksum ASCII:LRC RTU:CRC -
“F”,”4” 0xB1,0xC8
Trailer
-
CR/LF
None
Total
quantity of byte
17 8