44
05(0x05) Write Digital Output/Clear DI count Value
(Single channel)
Request
00 Address
1
Byte
1-247
01 Function
code 1
Byte
0x05
02~03 Output channel
number
2 Bytes 0x0000~0x0003 for output channel
0x010
7
to clear the latch value
0x0200~0x0203 to clear the DI counter
value
04~05 Output value
2 Bytes A value of 0xFF00 sets the output to ON.
A value of 0x0000 set it to OFF. All other
values are illegal and won’t affect the coil.
Response
00 Address
1
Byte
1-247
01 Function
code 1
Byte
0x05
02~03 Output channel
numbers
2 Bytes The value is the same as byte 02 and
03 of the Request
04~05 Output value
2 Bytes The value is the same as byte 04 and
05 of the Request
Error Response
00 Address
1
Byte
1-247
01
Function code
1 Byte
0x85
02 Exception
code 1
Byte
Refer
to the Modbus standard for more
details.