2. MODBUS Protocol Description
2.6.6 Write Single Register (Function Code 0x06)
Function Code
Register Address
Register Value
Function Code
Register Address
Register Value
Function Code
Exception Code
Here is an example of a request to write 00 03 hex to register 2:
Segment
Function Code
Register Address: High
Register Address: Low
Register Value: High
Register Value: Low
Write Single Register
Request
Hex
06
00
01
00
03
Request
1 Byte
2 Bytes
2 Bytes
Response
1 Byte
2 Bytes
2 Bytes
Error
1 Byte
1 Byte
Segment
Function Code
Register Address: High
Register Address: Low
Register Value: High
Register Value: Low
13
0x06
0x0000~0xFFFF
0x0000~0xFFFF
0x06
0x0000~0xFFFF
0x0000~0xFFFF
0x86
01 or 02 or 03 or 04
Response
Hex
06
00
01
00
03