05(0 X 05) Force A Single Coil (Write Do) - ICPDAS ECAT-2610 User Manual

Ethercat to modbus rtu gateway
Table of Contents

Advertisement

EtherCAT to Modbus RTU Gateway
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]
Byte
Description
00
Net ID (Station Number)
01
Function Code
02-03
DO Address
04-05
Output Value
[Response]
Byte
Description
00
Net ID (Station Number)
01
Function Code
02-03
DO Address
04-05
Output Value
[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
0x05
Refer to the Modbus address depends on your slave
device for more details.
2 Bytes
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
2 Bytes
coil.
Byte 04 = high byte
Byte 05 = low byte
Size
1 Byte
1 to 247
1 Byte
0x05
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
1 to 247
1 Byte
0x85
Refer to the Modbus Standard Specifications for
1 Byte
more details.
Value
Value
Value
- 43 -

Advertisement

Table of Contents
loading

Table of Contents