Function Code 0Fh: Write Multiple Coils; Function Code 02H: Read Discrete Input - Ebyte E90-DTU User Manual

Low-power digital radio
Hide thumbs Also See for E90-DTU:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
Coil address
control method
CRC check
The slave returns the same as the master request;

6.1.7 Function code 0FH: write multiple coils

For example: if the host wants to control 4 coil states whose slave address is 01H and the starting coil address
is 00H, the host sends:
Start coil address
Number of coils
CRC check
Function code 0FH operate, slave return:
Start coil address
Number of coils

6.1.8 Function code 02H: read discrete input

For example: the host wants to read 4 input states whose slave address is 01H and the starting discrete address
is 00H, host sends:
Copyright ©2012–2021, Chengdu Ebyte Electronic Technology Co., Ltd.
address code
function code
high byte
low byte
high byte
low byte
low byte
high byte
Host sends
address code
function code
high byte
low byte
high byte
low byte
number of bytes written
control method
low byte
high byte
Slave return
address code
function code
high byte
low byte
high byte
low byte
low byte
CRC check
high byte
E90-DTU(400SL30L)_UserManual_EN
01
01
00
00
00 (open), FF (close)
01
XX
XX
Send data (HEX)
01
0F
00
00
00
04
01
00 (all open), 0F (all closed)
XX
XX
Send data (HEX)
01
0F
00
00
00
04
54
08
28

Advertisement

Table of Contents
loading

This manual is also suitable for:

400sl30l

Table of Contents