HRX-OM-S010
Chapter 4 MODBUS communication function
HRS100/150 Series
4.8
Explanation of function codes
4-13
4.8.3
Function code
:
16 Writing multiple registers
Register content of assigned points of assigned address is written.
Request message <Normal> (Master to Slave)
Start
Slave Address
Function
Data
LRC
End
[:]
XX
XX
[1]
[0]
XX
XX
[CR]
[LF]
Write Address
Quantity to Write
Hi
Lo
Hi
Lo
XX
XX
XX
XX
XX
XX
XX
XX
Byte Count
Write Data1
Write Data n
Hi
Lo
Hi
Lo
XX
XX
XX
XX
XX
XX
XX
XX
XX
XX
Response message <Normal> (Slave to Master)
Start
Slave Address
Function
Data
LRC
End
[:]
XX
XX
[1]
[0]
XX
XX
[CR]
[LF]
Write Address
Quantity to Write
Hi
Lo
Hi
Lo
XX
XX
XX
XX
XX
XX
XX
XX
Communication example
○Slave Address: No 1
○Write two consecutive data from register 000Bh
.
(Commands to change of circulating fluid set temperature <39.9
o
C > and run.)
Request message
Response message
Code
Contents
Code
Contents
01
Slave Address
01
Slave Address
10
Function
10
Function
000B
Head address of specified register
000B
Head address of register to write
0002
Quantity of register to write
0002
Quantity of register to write
04
Quantity of byte to read
E2
LRC
018F
Information written to 000Bh (Circulating
fluid set temperature)
0001
Information written to 000Ch (Stop flag)
4D
LRC
(Request):0110000B000204018F00014D [CR][LF]
(Response):0110000B0002E2 [CR][LF]
Your system
This product
Data is sent and
received in ASCII
code.