
Chengdu Ebyte Electronic Technology Co.,Ltd.
ME31-AAAX2240_UserManul_EN
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd
22
after each communication to distinguish different communication data messages.
Protocol identifier: 00 00 means Modbus TCP protocol.
Length: Indicates the next data length, in bytes.
For example
:
get DI state
01 00
00 00
00 06
01
02
00 00 00 04
Transaction ID
Protocol ID
Length
Device Address
Function Code
Data Segment
4.10 Modbus RTU protocol data frame description
RTU frame format
:
Device Address
Function Code
Data Segment
Check code CRC
1 Bit
1 Bit
N Bit
2 Bit
For example
:
get DI state
01
02
00 00 00 04
79 C9
Device Modbus address
Function Code
Data Segment
CRC check code
4.11 MODBUS parameter configuration
4.11.1 DO register list
Register function
Register
address
Register
type
Quantity Operation
Data Range/Remarks
Related
function codes
DO state
0x0000
Coil
4
RW
Write to change the
current DO state, read
to get the current DO
state
R
:
0x01
W
:
0x0F
、
0x05
DO power-on
state
0x0064
Holding
register
4
RW
The default state of the
coil after power-on
R
:
0x01
W
:
0x0F
、
0x05
DO operating
mode
0x0578
Holding
register
4
RW
0x0000 level no follow
mode
0x0001 pulse no follow
mode
0x0002 follow mode
R
:
0x03
W
:
0x06
、
0x10
DO pulse width
0x05DC
Holding
register
4
RW
Range
:
50
~
65535ms
R
:
0x03
W
:
0x06
、
0x10
DO follow the
source
0x0640
Holding
register
4
RW
Range
:
0x0000: follow DI1
0x0001: follow DI2
R
:
0x03
W
:
0x06
、
0x10