Write Multiple Do Coil States - Ebyte 8DO User Manual

Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
20
Device Modbus
The function
address
When the above command is sent to the device via the 485 bus, the device returns the following values:
20
Device Modbus
The function
address
DO1 coil on.

7.2.6 Write multiple DO coil states

Use the 0F function code to write a single command, for example, set do1 to pulse mode
20
The
Device Modbus
function
address
code
When the above command is sent to the device via the 485 bus, the device returns the following values:
20
The
Device Modbus
function
address
code
DO2, DO3 coil on.
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
05
00 00
Register address
code
05
00 00
Register address
code
0F
00 00
The starting
The number of
address
0F
00 00
Register address
【8DO】MA01 -XXCX0080 User Manual
FF 00
Write the value
Coil action: On
FF 00
Write the value
00 04
01
The number
of bytes of
coils
the data
OO O4
The number of coils
XX XX
CRC check code
XX XX
CRC check code
06
XX XX
Control the
data for the
CRC check
coil
code
(bit operation)
XX XX
CRC check
code
33

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents