
Page 30 of 56
King Pigeon Hi-Tech. Co., Ltd.
Ver 2.3
Industrial Ethernet Remote I/O Module
IoT Data Acquisition Module
Ethernet slave mode, no data disconnection in 10 minutes
Ethernet slave mode, data error disconnected
Ethernet slave mode, 3 failed connections
8. Modbus Protocol
This device supports standard Modbus communication protocol:
1) As a TCP client, it supports Modbus RTU over TCP and Modbus TCP protocols to communicate with the server;
2) As a TCP server, it supports Modbus TCP protocol to communicate with TCP clients;
3) As a Modbus TCP master, it supports Modbus TCP protocol for communication with Modbus TCP slaves;
4) As a Modbus TCP slave, it supports Modbus TCP protocol to communicate with Modbus TCP master;
5) As RS485 master, support Modbus RTU protocol to communicate with slaves;
6) As RS485 slave, support Modbus RTU protocol to communicate with the host.
The above applications can not be used as RS485 master and RS485 slave at the same time, other applications can
be supported at the same time.
The device's register address, Modbus function code, data type, purpose, and precautions are described in the
following table.
Modbus TCP and RTU protocols are very similar. Just add a MBAP header to the RTU protocol and remove the
two-byte CRC check code of the RTU protocol, so Modbus TCP protocol will not be repeated.
8.1Introduction to Modbus Register Address
8.1.1 Read Input Coil (Function Code 2: Read Coil)
Read Input Coil (Function Code 2: Read Coil)
Channel
Register Address
(Decimal )
PLC or configuration
use address
(Decimal )
Description
DIN 1
0
10001
DIN1 Value, Read Only,0=Open,1=Close.
DIN 2
1
10002
DIN2 Value, Read Only,0=Open,1=Close.
DIN 3
2
10003
DIN3 Value, Read Only,0=Open,1=Close.
DIN 4
3
10004
DIN4 Value, Read Only,0=Open,1=Close.
DIN 5
4
10005
DIN5 Value, Read Only,0=Open,1=Close.
DIN 6
5
10006
DIN6 Value, Read Only,0=Open,1=Close.
DIN 7
6
10007
DIN7 Value, Read Only,0=Open,1=Close.