Tiny Modbus/TCP to RTU/ASCII Gateway
Copyright © 2020 ICP DAS CO., Ltd. All Rights Reserved. - 98 -
15(0x0F) Force Multiple Coils (Write DOs)
This function code is used to set multiple coils status or write multiple digital output values.
[Request]
Refer to the Modbus address depends on your slave
device for more details.
Byte 02 = high byte
Byte 03 = low byte
Number of Output Channels
(Points)
Byte 04 = high byte
Byte 05 = low byte
A bit corresponds to a channel. A value of 1 for a bit
denotes that the channel is ON, while a value of
denotes that the channel is OFF.
n= 1; Byte 07 = data bit 7 to 0
n= 2; Byte 08 = data bit 15 to 8
.......
n= m; Byte m+6 = data bit (8m-1)to 8 (m-1)
[Response]
The value is the same as Bytes 02-03 of the
Request
Number of Output Channels
(Points)
The value is the same as Bytes 04-05 of the
Request
[Error Response]
Refer to the Modbus Standard Specifications for
more details.