Ebyte ME31-XXXA0006 User Manual page 21

Network i/o networking module
Hide thumbs Also See for ME31-XXXA0006:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents