01(0 X 01) Read The Status Of The Coils (Readback Do S ) - ICPDAS ECAT-2610 User Manual

Ethercat to modbus rtu gateway
Table of Contents

Advertisement

EtherCAT to Modbus RTU Gateway
Net ID (Station Number)
The first byte in the message structure of Modbus is the receiver's address. The valid addresses are
in the range of 0 to 247. Addresses 0 is used for broadcast, while addresses 1 to 247 are given to
individual Modbus devices.
Function Code
The second byte in the frame structure of the Modbus RTU is the function code. The function code
describes what the slave is required to do. Valid function codes are between 1 and 255. The slave
uses the same function code as the request to answer it. Only when an error occurs in the system
will the highest bit of the function code is set to '1'. Hence the master will know whether the
message has been transmitted correctly or not.
Code
01 (0x01)
02 (0x02)
03 (0x03)
04 (0x04)
05 (0x05)
06 (0x06)
15 (0x0F)
16 (0x10)
Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved.
Function
Read the Status of the Coils (Readback DOs)
Read the Status of the Input(Reads DIs)
Read the Holding Registers (Readback AOs)
Read the Input Registers (Reads AIs)
Force a Single Coil (Writes DO)
Preset a Single Register (Writes AO)
Force Multiple Coils (Writes DOs)
Preset Multiple Registers (Writes AOs)
Reference (Address)
0xxxx
1xxxx
4xxxx
3xxxx
0xxxx
4xxxx
0xxxx
4xxxx
- 37 -

Advertisement

Table of Contents
loading

Table of Contents