Chengdu Ebyte Electronic Technology Co.,Ltd
ME31-AXXX8000_UserManual_CN
Copyright ©2012–2023
,
Chengdu Ebyte Electronic Technology Co.,Ltd
18
Send in 1
~
65535s
MOSBUS
TCP/RTU
conversion
0x08E8
Holding
register
1
RW
0,turn off
,
1turn on
R
:
0x03
W
:
0x06
、
0x10
MODBUS addrss
filtering
0x08E9
Holding
register
1
RW
0: Transparent
transmission, 1-255:
When non local data is
present, check the slave
address of the
instruction instruction.
When it is set to a
value, it can be passed
through the
R
:
0x03
W
:
0x06
、
0x10
4.6.4 Modbus command operation
1. Read coil (DO) status
Use the read coil status (01) function code to read the output coil status, for example:
01
01
00 00
00 04
3D C9
Modbus address
Function code
Register first
address
Output coil quantity
CRC check code
After the above command is sent to the device through the 485 bus, the device will return the following values:
01
01
01
01
90 48
Modbus address
Function code
Number of bytes of
data
Status data returned
CRC check code
The above returned status data 01 indicates that the output DO1 is turned on.
2. Control coil (DO) status
Support operation of single coil (05), operation of multiple coils (0F) function code operation. Use the 05 command
to write a single command, for example:
01
05
00 00
FF 00
8C 3A
Modbus address
Function code
Register first address
On
:
FF 00
Off
:
00 00
CRC check code