Ebyte ME31-XXXA0006 User Manual page 22

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

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
The status data 01 returned above indicates that the output DO1 is turned on.
2. Control coil (DO) state
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
The DO1 coil is turned on.
Use 0F function code as the command to write multiple coils, for example:
01
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
The coils are all on.
3. Read the holding register
Use 03 function code to read one or more register values, 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
Copyright ©2012–2023, Chengdu Ebyte Electronic Technology Co.,Ltd.
05
Function code
05
Function code
0F
00 00
Initial
address
0F
Function code
03
Function code
03
Function code
00 00
Register first address
00 00
Register first address
00 04
01
Number of
Bytes of data
coils
00 00
Register address
05 78
Register first
Number of registers read
address
02
Bytes of data
ME31-XXXA0006_UserManual_EN
FF 00
Continuity: FF 00
CRC check code
Close: 00 00
FF 00
Operation method
CRC check code
0F
Control coil data
OO O4
Number of coils
CRC check code
00 01
00 00
Returned data
CRC check code
8C 3A
8C 3A
7E 92
CRC check
code
54 08
04 DF
CRC check code
B8 44
21

Advertisement

Table of Contents
loading

Table of Contents