
Programmable Serial-to-Ethernet Device Server
PDS Series User Manual, Version 2.5, Mar. 2019
-
205 -
15 (0x0F) Force Multiple Coil (Write DOs)
This function code is used to set multiple coils status or write multiple digital output value.
[Request]
Byte
Description
Size
Value
00
Net ID (Station number)
1 Byte
1 ~ 247
01
Function code
1 Byte
0x0F
02-03
Starting DO address
2 Bytes
Refer to Modbus Address Table for PPDS
series.
(Section 10.2 Modbus Register Map)
Byte 02 = high byte
Byte 03 = low byte
04-05
Number of output channels
(Points)
2 Bytes
Byte 04 = high byte
Byte 05 = low byte
06
Byte count
1 Byte
n = (7)/8
07
Output value
n Byte
A bit corresponds to a channel. Value 1 for a
bit denotes the channel is ON, while the value
0 is OFF.
n= 1; Byte 07 = data bit 7 ~ 0
n= 2; Byte 08 = data bit 15 ~ 8
.......
n= m; Byte m+6 = data bit (8m-1)~ 8(m-1)
[Response]
Byte
Description
Size
Value
00
Net ID (Station number)
1 Byte
1 ~ 247
01
Function code
1 Byte
0x0F
02-03
Starting DO address
2 Bytes
The value is the same as Byte 02-03 of the
Request
04-05
Number of output channels
(Points)
2
Bytes
The value is the same as Byte 04-05 of the
Request
[Error Response]
Byte
Description
Size
Value
00
Net ID (Station number)
1 Byte
1 ~ 247
01
Function code
1 Byte
0x8F
02
Exception code
1 Byte
Refer to Modbus Standard
Specification
for
more details