EtherCAT to Modbus RTU Gateway
15(0x0F) Force Multiple Coils (Write DOs)
This function code is used to set multiple coils status or write multiple digital output values.
[Request]
Byte
Description
00
Net ID (Station Number)
01
Function Code
02-03
Starting DO Address
Number of Output Channels
04-05
(Points)
06
Byte count
07
Output value
[Response]
Byte
Description
00
Net ID (Station Number)
01
Function Code
02-03
Starting DO Address
Number of Output Channels
04-05
(Points)
[Error Response]
Byte
Description
00
Net ID (Station Number)
01
Function Code
02
Exception Code
Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved.
Size
1 Byte
1 to 247
1 Byte
0x0F
Refer to the Modbus address depends on your slave
device for more details.
2 Bytes
Byte 02 = high byte
Byte 03 = low byte
Byte 04 = high byte
2 Bytes
Byte 05 = low byte
n = (Points +7)/8
1 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 Bytes
n= 2; Byte 08 = data bit 15 to 8
.......
n= m; Byte m+6 = data bit (8m-1)to 8 (m-1)
Size
1 Byte
1 to 247
1 Byte
0x0F
The value is the same as Bytes 02-03 of the
2 Bytes
Request
The value is the same as Bytes 04-05 of the
2 Bytes
Request
Size
1 Byte
1to 247
1 Byte
0x8F
Refer to the Modbus Standard Specifications for
1 Byte
more details.
Value
Value
Value
- 45 -