Ebyte ME31-XAXA0404 User Manual page 28

I/o networking module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
ME31- XAXA0404 _User Manual
01
0 6
05 78
00 01
C 8 DF
Modbus address
function code
register address
write value
CRC check code
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
DO1 and DO2 at the same time.
01
10
05 78
00 0 2
0 4
00 01 00 0 1
5 A 7D
Mod
bus
function
register first
number of
The number of bytes
CRC check
written data
address
code
address
registers
of data written
code
After sending the above command to the device through the 485 bus, the device will return the following values:
01
10
05 78
00 0 2
C 1 1D
Mod bus address
function code
register address
number of registers
CRC check code
If the modification is successful, the values of the two consecutive registers starting at 0x0578 are 0x0001 and
0x000 respectively. 1 marks DO1 and DO2 to enable pulse output .
Copyright © 2012–2023 , Chengdu Ebyte Electronic Technology Co., Ltd.
25

Advertisement

Table of Contents
loading

Table of Contents