45
15(0x0F) Write Digital Output/Clear DI count Value
(Multi channel)
Request
00 Address
1
Byte
1-247
01 Function
code 1
Byte
0x0F
02~03 Starting channel
2 Bytes 0x0000~0x0003 for output channel
0x0200~0x0203 to clear the DI counter
value
0x0080~0x0083 for
Safe value
0x00A0~0x00A3 for
Power-on value
04~05 Input/Output
channel numbers
2 Bytes Input: 0x0001~0x0004
Output: 0x0001~0x0004
06 Byte
count
1
Byte
1
07 Output
value/Clear DI
count value
1 Byte
0x00~0xFF
A bit corresponds to a channel. When the bit is
1 it denotes that the value of the channel that
was set is ON. if the bit is 0 it denotes that the
value of the channel that was set is OFF
.
Response
00 Address
1
Byte
1-247
01 Function
code 1
Byte
0x0F
02~03 Starting channel
2 Bytes The value is the same as byte 02 and
03 of the Request
04~05 Output channel
numbers
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
0x8F
02 Exception
code 1
Byte
Refer
to the Modbus standard for more
details.