HRX-OM-S010
Chapter 4 MODBUS communication function
4.8
Explanation of function codes
HRS100/150 Series
4-12
4.8.2
Function code
:
06 Writing registers
Write data to assigned address.
Request message <Normal> (Master to Slave)
Start
Slave Address
Function
Data
LRC
End
[:]
XX
XX
[0]
[6]
XX
XX
[CR]
[LF]
Write Address
Write Data
Hi
Lo
Hi
Lo
XX
XX
XX
XX
XX
XX
XX
XX
Response message <Normal> (Slave to Master)
Start
Slave Address
Function
Data
LRC
End
[:]
XX
XX
[0]
[6]
XX
XX
[CR]
[LF]
Write Address
Write Data
Hi
Lo
Hi
Lo
XX
XX
XX
XX
XX
XX
XX
XX
Communication example
○Slave Address: No 1
○Write data to register 000Ch
(Commands to run)
Request message
Response message
Code
Contents
Code
Contents
01
Slave Address
01
Slave Address
06
Function
06
Function
000C
Address of specified register
000C
Address of register to write
0001
Information written to 000Ch (Stop flag)
0001
Information of register to write
EC
LRC
EC
LRC
This product
(Request):0106000C0001EC [CR][LF]
(Response):0106000C0001EC [CR][LF]
Your system
Data is sent and
received in ASCII
code.