Ebyte ME31-AAAX2240 User Manual page 29

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

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
ME31-AAAX2240_UserManul_EN
Use the 06 function code to write a single Holding register, for example: set the working mode of DO1 to pulse
mode
01
06
05 78
00 01
C8 DF
Modbus address
Function code
Register address
Write value
CRC check code
After the above command is sent to the device through the 485 bus, the device will return the following values:
01
06
05 78
00 01
C8 DF
Modbus address
Function code
Register address
Write value
CRC check code
If the modification is successful, the 0x0578 register data is 0x0001, and the pulse output mode is turned on.
Use the 10 function code to write multiple holding register commands, for example: set the working mode of DO1
and DO2 at the same time.
01
10
05 78
00 02
04
00 01 00 01
5A 7D
Modbus
Function
Register first
Register
Number of bytes of
CRC check
Written data
address
code
address
number
written data
code
After the above command is sent to the device through the 485 bus, the device will return the following values:
01
10
05 78
00 02
C1 1D
Modbus address
Function code
Register address
Register number
CRC check code
If the modification is successful, the values of the two consecutive registers with 0x0578 as the starting address are
0x0001 and 0x0001 respectively to identify DO1 and DO2 to enable pulse output.
27
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents