EasyManua.ls Logo

Ebyte ME31-AAAX2240 - Modbus Command Operation

Ebyte ME31-AAAX2240
34 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-AAAX2240_UserManul_EN
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd 25
Subnet mask
0x089E
Holding
register
2
RW
Default255.255.255.0
R0x03
W0x060x10
Gateway address
0x08A0
Holding
register
2
RW
Default192.168.3.1
R0x03
W0x060x10
DHCP mode
configuration
0x08A2
Holding
register
1
RW
0x0000 static IP
default
0x0001 automatically
get IP
R0x03
W0x060x10
Target IP/Domain
Name
0x08A3
Holding
register
64
RW
Store in strings
IP/Domain Name
Default IP192.168.3.3
R0x03
W0x060x10
Server port
0x08E3
Holding
register
1
RW
0-65535Default 502
R0x03
W0x060x10
DNS server IP
address
0x08E4
Holding
register
2
RW
Default 8.8.8.8
R0x03
W0x060x10
Module operating
mode
0x08E6
Holding
register
1
RW
0x0000 server mode
0x0001 client mode
R0x03
W0x060x10
Active upload
0x08E7
Holding
register
1
RW
0x0000 prohibited
Other
Send in 165535s
R0x03
W0x060x10
4.11.6 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:

Related product manuals