![background image](http://html1.mh-extra.com/html/smc-networks/hrs100-series/hrs100-series_operation-manual_1299247048.webp)
HRX-OM-S010
Chapter 4 MODBUS communication function
4.8
Explanation of function codes
HRS100/150 Series
4-14
4.8.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.
Request message <Normal> (Master to Slave)
Start
Slave Address
Function
Data
LRC
End
[:]
XX
XX
[1]
[7]
XX
XX
[CR]
[LF]
Read Address
Quantity to Read
Write Address
Quantity to Write
Hi
Lo
Hi
Lo
Hi
Lo
Hi
Lo
XX XX XX XX XX XX XX XX 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]
[7]
XX
XX
[CR]
[LF]
Byte Count
Read Data1
Read Data n
Hi
Lo
Hi
Lo
XX
XX
XX
XX
XX
XX
XX
XX
XX
XX