Chengdu Ebyte Electronic Technology Co., Ltd.
ME31- XAXA0404 _User Manual
Copyright © 2012–2023 , Chengdu Ebyte Electronic Technology Co., Ltd.
23
active upload
0x08E7
holding
register
1
R W
0x0000 disabled, others:
1
~
6 5535 s periodic
sending
R : 0x03
W : 0x06 , 0x10
MOSBUS
TCP/RTU
conversion enable
0x08E8
holding
register
1
R W
0, close, 1 open protocol
conversion
R : 0x03
W : 0x06 , 0x10
MODBUS address
filtering
0x08E9
holding
register
1
R W
0: transparent
transmission, 1-255:
when the data is not
local, check the slave
address of the command
command, and it can be
passed when it is the set
value
R : 0x03
W : 0x06 , 0x10
4.7.5 Mod bus instruction operation example
1. Read Coil (D O ) Status
Use the read coil state (01 ) function code to read the output coil state, for example:
01
01
00 00
00 0 4
3D C9
Modbus address
function code
register first
address
Number of output coils read
CRC check code
After sending the above command to the device through the 485 bus, the device will return the following values:
01
01
01
0 1
90 48
M odbus address
function code
bytes of data
returned status data
CRC check code
The above returned status data 0 1 indicates that the output DO 1 is turned on .
2. Control Coil (D O ) Status
Support operation of single coil (0 5 ), operation of multiple coils ( 0F ) function code operation.
Use the 0 5 command to write a single command, for example :
01
05
00 00
FF 00
8C 3A
Modbus address
function code
register first address
Conduction: F F 00
Off: 0 0 00
CRC check code
After sending the above command to the device through the 485 bus, the device will return the following values: