Ebyte ME31-XAXX0600 User Manual page 25

I/o networking module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd
The above returned status data 01 indicates that the output DO1 is turned on.
2. Control coil (DO) status
Support operation of single coil (05), operation of multiple coils (0F) function code operation. Use the 05 command
to write a single command, for example:
01
Modbus address
After sending the above command to the device through the 485 bus, the device will return the following values:
01
Modbus address
DO1 coil conduction
Use the 0F function code as the command to write multiple coils, for example:
01
Modbus
Function
address
After the above command is sent to the device through the 485 bus, the device will return the following values
01
Modbus address
All coils are conducted.
3. Read Holding register
Use the 03 function code to read one or more register values, for example:
01
Modbus address
After the above command is sent to the device through the 485 bus, the device will return the following values:
Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co.,Ltd
22
05
Function code
05
Function code
0F
00 00
Starting
code
address
0F
Function code
03
Function code
00 00
Register first address
00 00
Register first address
00 04
01
Number of
Coil number
bytes of data
00 00
Register address
05 78
Register first
Quantity of register read
address
ME31-XAXX0600_UserManual_CN
FF 00
On:FF 00
CRC check code
Off:00 00
FF 00
Operation method
CRC check code
0F
Data of control
coil
OO O4
Coil number
CRC check code
00 01
8C 3A
8C 3A
7E 92
CRC check
code
54 08
04 DF
CRC check code

Advertisement

Table of Contents
loading

Table of Contents