Ebyte ME31-XXXA0006 User Manual page 23

Network i/o networking module
Hide thumbs Also See for ME31-XXXA0006:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
The above 00 00 means that DO1 is in level output mode.
4. Operation holding register
Support operation of single register (06), 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
Function code
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 in the 0x0578 register is 0x0001, and the pulse output mode is turned on.
Use function code 10 to write multiple holding register commands, for example: set the working mode of DO1 and
DO2 at the same time.
01
10
Modbus
Function
address
code
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 values of the two consecutive registers starting with 0x0578 are 0x0001 and
0x0001 respectively, marking DO1 and DO2 to enable pulse output.
Copyright ©2012–2023, Chengdu Ebyte Electronic Technology Co.,Ltd.
06
05 78
Register address
06
Function code
Register address
05 78
00 02
Register head
Number of
address
registers
10
Function code
Register address
Write value
05 78
Write value
04
Number of bytes of
written data
05 78
Number of registers
ME31-XXXA0006_UserManual_EN
00 01
C8 DF
CRC check code
00 01
C8 DF
CRC check code
00 01 00 01
Written data
00 02
C1 1D
CRC check code
5A 7D
CRC check
code
22

Advertisement

Table of Contents
loading

Table of Contents