Ebyte ME31-XAXA0404 User Manual page 27

I/o networking module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
01
M odbus address
The DO1 coil is turned on.
Use 0 F function code as the command to write multiple coils, for example:
01
M odbus
function
address
After sending the above command to the device through the 485 bus, the device will return the following values:
01
Modbus address _
The coils are all on.
3. read holding register
Use 03 function code to read one or more register values, for example:
01
Mod bus address
After sending the above command to the device through the 485 bus, the device will return the following values:
01
Modbus address
The above 00 00 means that DO1 is in level output mode .
4. Operation Holding Register
Support operation of single register (0 6 ), operation of multiple registers ( 10 ) function code operation.
Use 06 function code to write a single holding register, for example: set the working mode of DO1 to pulse mode
01
Modbus address _
After sending the above command to the device through the 485 bus, the device will return the following values:
Copyright © 2012–2023 , Chengdu Ebyte Electronic Technology Co., Ltd.
24
05
function code
0F
00 00
initial
code
address
0F
function code
03
function code
0 3
function code
0 6
function code
register address
00 00
register first address
Operation method
00 0 4
01
Number of
bytes of data
coils
00 00
register address
0 5 78
register first
Number of registers read
address
02
bytes of data
05 78
ME31- XAXA0404 _User Manual
FF 00
CRC check code
0F
Control coil data
OO O 4
Number of coils
CRC check code
00 01
CRC check code
00 00
returned data
CRC check code
00 01
write value
CRC check code
8C 3A
7E 92
CRC check
code
54 08
0 4 DF
B8 44
C 8 DF

Advertisement

Table of Contents
loading

Table of Contents