Chengdu Ebyte Electronic Technology Co.,Ltd.
ME31-XXXA0006_UserManual_EN
Copyright ©2012
–
2023, Chengdu Ebyte Electronic Technology Co.,Ltd.
15
communication to distinguish different communication data messages.
Protocol identifier: 00 00 means Modbus TCP protocol.
Length: Indicates the length of the next data in bytes.
Example: get DI status
01 00
00 00
00 06
01
02
00 00 00 04
Transaction ID
Protocol ID
Length
Device address
Function code
Data segment
4.2.4. Modbus RTU protocol data frame description
RTU frame format
:
Device address
Function code
Data segment
Check codeCRC
1 Bit
1 Bit
N Bit
2 Bit
Example: get DI status command
01
02
00 00 00 04
79 C9
Device Modbus address
Function code
Data segment
CRC check code
4.3 Custom Module Information
4.3.1. Modbus Address
The device address is 1 by default, and the address can be modified, and the address range is 1-247.
4.3.2. Module Name
Users can configure the device name according to their own needs to distinguish, support English, digital
format, up to 20 bytes.
4.3.3. Network parameters
Unless otherwise specified: the following network-related parameters default to IPV4-related
parameters.
(1) MAC of the device: the user can obtain it by reading the specified register, and this parameter cannot be
written.
(2) IP address: device IP address, readable and writable.
(3) Modbus TCP port: the port number of the device, readable and writable.
(4) Subnet mask: address mask, readable and writable.
(5) Gateway address: gateway.