Tiny Modbus/TCP to RTU/ASCII Gateway
Copyright © 2020 ICP DAS CO., Ltd. All Rights Reserved. - 96 -
05(0x05) Force a Single Coil (Write DO)
This function code is used to set the status of a single coil or a single digital output value.
[Request]
Refer to the Modbus address depends on your slave
device for more details.
Byte 02 = high byte
Byte 03 = low byte
0xFF 00 sets the output to ON.
0x00 00 sets the output to OFF.
All other values are invalid and will not affect the
coil.
Byte 04 = high byte
Byte 05 = low byte
[Response]
The value is the same as Bytes 02-03 of the
Request
The value is the same as Bytes 04-05 of the
Request
[Error Response]
Refer to the Modbus Standard Specifications for
more details.