EasyManua.ls Logo

Ebyte ME31-XXAX0060 - Examples of Modbus Command Operation Instructions

Ebyte ME31-XXAX0060
29 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chengdu Ebyte Electronic Technology Co.,Ltd. ME31-XXAX0060_UserManual_EN
Copyright ©20122023, Chengdu Ebyte Electronic Technology Co.,Ltd
22
setting
register
(default)
0x0001 Obtain IP
automatically
W0x060x10
Target IP/domain
name
0x08A3
Holding
register
64
RW
String format stored in
IP/domain name
Default IP: 192.168.3.3
R0x03
W0x060x10
Server port
0x08E3
Holding
register
1
RW
0-65535, default 502
R0x03
W0x060x10
DNS server IP
address
0x08E4
Holding
register
2
RW
Default 8.8.8.8
R0x03
W0x060x10
Module work
mode
0x08E6
Holding
register
1
RW
0x0000 server mode
0x0001 client mode
R0x03
W0x060x10
Active upload
0x08E7
Holding
register
1
RW
0x0000 disabled, others:
1 65535s cycle
sending
R0x03
W0x060x10
MOSBUS
TCP/RTU
conversion enable
0x08E8
Holding
register
1
RW
0, close, 1 open protocol
conversion
R0x03
W0x060x10
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
R0x03
W0x060x10
4.6.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
The status data 01 returned above indicates that the output DO1 is turned on.

Related product manuals