Ebyte ME31-XAXX0600 User Manual page 26

I/o networking module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd
01
Modbus address
The above 00 00 indicates that DO1 is in level output mode.
4. Operate Holding register
Support operation of single register (06), operation of multiple registers (10) function code operation.
Use the 06 function code to write a single Holding register, for example: set the working mode of DO1 to pulse
mode
01
Modbus address
After the above command is sent to the device through the 485 bus, the device will return the following values:
01
Modbus address
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
Modbus
Function
address
code
After the above command is sent 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 with 0x0578 as the starting address are
0x0001 and 0x0001 respectively to identify DO1 and DO2 to enable pulse output.
Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co.,Ltd
23
03
Number of bytes of
Function code
06
Function code
Register address
06
Function code
05 78
Register first
address
10
Function code
02
data
05 78
05 78
Register address
00 02
04
Register
Quantity of bytes of
number
written data
05 78
Register address
Register quantity
ME31-XAXX0600_UserManual_CN
00 00
Data returned
CRC check code
00 01
Write value
CRC check code
00 01
Write value
CRC check code
00 01 00 01
Written data
00 02
CRC check code
B8 44
C8 DF
C8 DF
5A 7D
CRC check
code
C1 1D

Advertisement

Table of Contents
loading

Table of Contents