46
HX-RIO3 Series
A.3.6. 6 (0x06) Write Single Register
This function code is used to write a single holding register in a remote device. Therefore register
numbered 1 is addressed as 0. The normal response is an echo of the request, returned after the register
contents have been written.
•
Request
Field name
Example
RTU
Start of Frame
-
t1-t2-t3
Slave Address
0x07
0x07
Function Code
0x06
0x06
Starting Address Hi
0x08
0x08
Starting Address Lo
0x00
0x00
Quantity of Outputs Hi
0x11
0x11
Quantity of Outputs Lo
0x22
0x22
Error Check (CRC/LRC) -
0x07, 0x85
End of Frame
-
t1-t2-t3
•
Response
Field name
Example
RTU
Start of Frame
-
t1-t2-t3
Slave Address
0x07
0x07
Function Code
0x06
0x06
Output Address Hi
0x08
0x08
Output Address Lo
0x00
0x00
Output Value Hi
0x11
0x11
Output Value Lo
0x22
0x22
Error Check (CRC/LRC) -
0x07, 0x85
End of Frame
-
t1-t2-t3
-
In case of address 0x0800 outputs register value: 0x0000 changes to 0x1122.