2. MODBUS Protocol Description
2.6.5 Write Output Status (Function Code 0x05)
Function Code
Output Address
Output Value
Function Code
Output Address
Output Value
Function Code
Exception Code
Here is an example of a request to write register status 173 ON:
Field
Function Code
Output Address: High
Output Address: Low
Output Value: High
Output Value: Low
Write Output Status
Request
Hex
05
00
AC
FF
00
Request
1 Byte
2 Bytes
2 Bytes
Response
1 Byte
2 Bytes
2 Bytes
Error
1 Byte
1 Byte
Field
Function Code
Output Address: High
Output Address: Low
Output Value: High
Output Value: Low
12
0x05
0x0000~0xFFFF
0x0000 or 0xFF00
0x05
0x0000~0xFFFF
0x0000 or 0xFF00
0x85
01 or 02 or 03 or 04
Response
Hex
05
00
AC
FF
00