Chengdu Ebyte Electronic Technology Co.,Ltd.
User Manual
Copyright ©2012–2020
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
51
Send
01
01
00 10
00 04
3C 0C
Device ModBus
address
Function
code
Analog starting
address
Number of read
switches
CRC check code
Receive
01
01
01
03
11 89
Device ModBus
address
Function
code
Returns the number
of bytes
Switch output value
CRC check code
6.1.5 Control switch DO output
Function code: 0F, write multiple coil states
Address range: 00017(0x0010)~00020(0x0013)
Description: The equipment relay is passively output, the coil is not energized, the NO port of the relay is disconnected
from the COM port; the coil is energized, the NO port and the COM port are closed. Control relay state by command.
Example:
Function code 0x0F write DO1, DO2 switch output to make NO1, COM1 closed and NO2, COM2 closed. The written
value should be 0x03, which corresponds to binary bits 0000 0011
Modbus RTU protocol write switch output:
Send
01
0F
00 10
00 04
01
03
BF 54
Device ModBus
address
Function
code
Switch
address
Number of
write switches
Number
of bytes
Write
value
CRC check
code
Receive
01
0F
00 10
00 04
55 CD
Device ModBus
address
Function
code
Switch value
address
Write value
CRC check code
VII. Precautions for use
(1) Do not operate this radio in the vicinity of some flammable places (such as coal mines, etc.) or explosive dangerous
objects (such as detonators for detonation, etc.).
(2) Do not use it in a working environment that exceeds the environmental characteristics of this product, such as high
temperature, humidity, low temperature, strong electromagnetic fields or environments with large dust.
VIII. FAQ
8.1 General question
8.1.1 How to test after getting the product?
Please see "Quick Start (Users are advised to read this chapter first)" in this manual. If the test process does not go
well, please follow the methods below to troubleshoot the issue.