
Programmable Serial-to-Ethernet Device Server
PDS Series User Manual, Version 2.5, Mar. 2019
-
203 -
05 (0x05) Force Single Coil (Write DO)
This function code is used to set a single coil status or a single digital output value.
[Request]
Byte
Description
Size
Value
00
Net ID (Station number)
1 Byte
1 ~ 247
01
Function code
1 Byte
0x05
02-03
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
Output value
2 Bytes
0xFF 00 set the output to ON.
0x00 00 set the output to OFF.
All other values are illegal and will not affect
the coil.
Byte 04 = high byte
Byte 05 = low byte
[Response]
Byte
Description
Size
Value
00
Net ID (Station number)
1 Byte
1 ~ 247
01
Function code
1 Byte
0x05
02-03
DO Address
2 Bytes
The value is the same as Byte 02-03 of the
Request
04-05
Output value
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
0x85
02
Exception code
1 Byte
Refer to Modbus Standard
Specification
for
more details