Ebyte ME31-XAAX0440 User Manual page 30

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

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
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:
01
Modbus address
If the modification is successful, the data of the 0x0578 register is 0x0001, and the pulse output mode is turned on .
Use the 10 function code to write the command of multiple holding registers, for example: set the working mode of
Copyright © 2012–2023 , Chengdu Ebyte Electronic Technology Co., Ltd.
27
0F
00 00
initial
code
address
0F
function code
03
function code
0 3
function code
0 6
function code
register address
0 6
function code
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
returned data
05 78
05 78
register address
ME31- XAAX0440 _User Manual
0F
Control coil data
OO O 4
Number of coils
CRC check code
00 01
CRC check code
00 00
CRC check code
00 01
write value
CRC check code
00 01
write value
CRC check code
7E 92
CRC check
code
54 08
0 4 DF
B8 44
C 8 DF
C 8 DF

Advertisement

Table of Contents
loading

Table of Contents