
Chengdu Ebyte Electronic Technology Co.,Ltd.
ME31-XXAX0060_UserManual_EN
Copyright ©2012
–
2023, Chengdu Ebyte Electronic Technology Co.,Ltd
24
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
06
05 78
00 01
C8 DF
Modbus address
Function code
Register address
Write value
CRC check code
After sending the above command 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 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
05 78
00 02
04
00 01 00 01
5A 7D
Modbus
address
Function
code
Register head
address
Number of
registers
Number of bytes of
written data
Written data
CRC check
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 02
C1 1D
Modbus address
Function code
Register address
Number of registers
CRC check code
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.