Modbus Command Operation - Ebyte ME31-AAAX2240 User Manual

I/o networking module
Hide thumbs Also See for ME31-AAAX2240:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Subnet mask
0x089E
Gateway address
0x08A0
DHCP mode
0x08A2
configuration
Target IP/Domain
0x08A3
Name
Server port
0x08E3
DNS server IP
0x08E4
address
Module operating
0x08E6
mode
Active upload
0x08E7

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
Modbus address
Function code
After the above command is sent to the device through the 485 bus, the device will return the following values:
01
Modbus address
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:
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd
Holding
register
Holding
register
Holding
register
Holding
register
Holding
register
Holding
register
Holding
register
Holding
register
01
00 00
Register first
address
01
Number of bytes of
Function code
2
RW
Default:255.255.255.0
2
RW
Default:192.168.3.1
0x0000
(default)
1
RW
0x0001
get IP
Store in strings
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 prohibited ,
1
RW
Other:
Send in 1~65535s
00 04
Output coil quantity
01
Status data returned
data
ME31-AAAX2240_UserManul_EN
R:0x03
W: 0x06、 0x10
R:0x03
W: 0x06、 0x10
static
IP
R:0x03
automatically
W: 0x06、 0x10
R:0x03
W: 0x06、 0x10
R:0x03
W: 0x06、 0x10
R:0x03
W: 0x06、 0x10
R:0x03
W: 0x06、 0x10
R:0x03
W: 0x06、 0x10
3D C9
CRC check code
01
90 48
CRC check code
25

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents