Control Coil Status - Ebyte E150-400T30S User Manual

400m frequency band 1w lora wireless acquisition control module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Remote wireless reception return value: 01 01 01 0f 11 8C

5.2 Control coil status

Support the operation of single coil (05) and multiple coils (0f) function codes.
use 05 command to write a single coil, for example: do1 outputs high level
01
Device MODBUS
address
Note: the CRC check code of the last two bytes of the sending instruction needs to be calculated by
the user.
Serial port sending: 01 05 00 00 FF 00 8C 3A
Remote wireless transmission: 01 05 00 00 FF 00 8C 3A
After sending the above command to the device via serial port or wireless, the device will return the
following values to the serial port or wireless:
01
Device MODBUS
address
Phenomenon: DO1 output high level。
Serial port receiving return value: 01 05 00 00 FF 00 8C 3A
 Remote wireless reception return value: 01 01 01 0f 11 8C
use the 0f function code to write commands for multiple coils, for example: do1 ~ do4 output high level
01
Device MODBUS
Functio
address
n code
Note: the CRC check code of the last two bytes of the sending instruction needs to be calculated by the user.
Serial port sending: 01 0f 00 00 04 01 0f 7e 92
Remote wireless transmission: 01 0f 00 00 00 04 01 0f 7e 92
After sending the above command to the device via serial port or wireless, the device will return the following
values to the serial port or wireless:
01
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd.
05
Function
Register
code
address
05
Function
Register
code
head address
0F
00 00
Starting
address:
0F
00 00
Conduction: FF 00
Close: 00 00
head
00 00
Operation mode
00 04
01
Number of
Data bytes
coils
00 00
E150-400T30S user manual
FF 00
CRC check
FF 00
CRC check
0F
Number of
control coils
Data (bit
operation)
00 04
11
8C 3A
code
8C 3A
code
7E 92
CRC check
code
C8 3F

Advertisement

Table of Contents
loading

Table of Contents