Function Code 01H: Read Coil; Function Code 05H: Write Single Coil - 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.
function code
01H
05H
0FH
02H
04H
03H
06H
10H

6.1.5 Function code 01H: read coil

For example: if the host wants to read a coil state whose slave address is 01H and the starting coil address is
00H, the host sends:
Start coil address
Number of coils
CRC check
If the slave register 00H coil is closed, the slave returns:
CRC check code

6.1.6 Function code 05H: write single coil

For example: if the host wants to control the coil state with the slave address of 01H and the coil address of
0000H, the host sends:
Copyright ©2012–2021, Chengdu Ebyte Electronic Technology Co., Ltd.
definition
read coil
write a single coil
write multiple coils
Read discrete input
read input register
read holding register
Write a single holding
register
Write to multiple
holding registers
Host sends
address code
function code
high byte
low byte
high byte
low byte
low byte
high byte
Slave return
address code
function code
number of bytes
Coil Status
low byte
high byte
Host sends
E90-DTU(400SL30L)_UserManual_EN
operation
Read one or more consecutive coil states
Manipulate the status of the coil at the specified position
Manipulate multiple consecutive coil states
Read one or more consecutive discrete input states
Read one or more consecutive input register data
Read data from one or more holding registers
Write two hexadecimal data to the corresponding location
Write 4*N hexadecimal data to N consecutive holding
registers
Send data (HEX)
01
01
00
00
00
01
FD
CA
Send data (HEX)
01
01
01
01
90
48
Send data (HEX)
27

Advertisement

Table of Contents
loading

This manual is also suitable for:

400sl30l

Table of Contents