Chengdu Ebyte Electronic Technology Co.,Ltd.
ME31-XXXA0006_UserManual_EN
Copyright ©2012
–
2023, Chengdu Ebyte Electronic Technology Co.,Ltd.
20
setting
register
(default)
0x0001
Obtain
IP
automatically
W
:
0x06
、
0x10
Target IP/domain
name
0x08A3
Holding
register
64
RW
String format stored in
IP/domain name
Default IP: 192.168.3.3
R
:
0x03
W
:
0x06
、
0x10
Server port
0x08E3
Holding
register
1
RW
0-65535, default 502
R
:
0x03
W
:
0x06
、
0x10
DNS server IP
address
0x08E4
Holding
register
2
RW
Default 8.8.8.8
R
:
0x03
W
:
0x06
、
0x10
Module work
mode
0x08E6
Holding
register
1
RW
0x0000 server mode
0x0001 client mode
R
:
0x03
W
:
0x06
、
0x10
Active upload
0x08E7
Holding
register
1
RW
0x0000 disabled, others:
1
~
65535s
cycle
sending
R
:
0x03
W
:
0x06
、
0x10
MOSBUS
TCP/RTU
conversion enable
0x08E8
Holding
register
1
RW
0, close, 1 open protocol
conversion
R
:
0x03
W
:
0x06
、
0x10
MODBUS address
filtering
0x08E9
Holding
register
1
RW
0: transparent
transmission, 1-255:
when the data is not
local, check the slave
address of the
command , and it can be
passed when it is the set
value
R
:
0x03
W
:
0x06
、
0x10
4.5.4. Examples of Modbus command operation instructions
1. Read coil (DO) status
Use the read coil state (01) function code to read the output coil state, for example:
01
01
00 00
00 04
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
01
90 48
Modbus address
Function code
Bytes of data
Returned status data
CRC check code