46
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
Start of Frame
Slave Address
Function Code
Starting Address Hi
Starting Address Lo
Quantity of Outputs Hi
Quantity of Outputs Lo
Error Check (CRC/LRC)
End of Frame
•
Response
Field name
Start of Frame
Slave Address
Function Code
Output Address Hi
Output Address Lo
Output Value Hi
Output Value Lo
Error Check (CRC/LRC)
End of Frame
In case of address 0x0800 outputs register value: 0x0000 changes to 0x1122.
-
Example
RTU
-
t1-t2-t3
0x07
0x07
0x06
0x06
0x08
0x08
0x00
0x00
0x11
0x11
0x22
0x22
-
0x07, 0x85
-
t1-t2-t3
Example
RTU
-
t1-t2-t3
0x07
0x07
0x06
0x06
0x08
0x08
0x00
0x00
0x11
0x11
0x22
0x22
-
0x07, 0x85
-
t1-t2-t3
HX-RIO3 Series