Basic Functions Of Io; Digital Do Output - Ebyte E831-RTU(6060-4G) Manual

Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
This function of the host mode can realize the device cascading function and the data transmission between the 485 bus
and the network.

4.2 Basic functions of IO

4.2.1 Digital DO output

Read digital DO output
Function code: 01, read coil status
Address range: 00017(0x0010)~00022(0x0015)
Description: The equipment relay is passively output. When the coil is not energized, the relay NC port and COM port
are normally closed, and the NO port and COM port are normally open, and the value is 0; when the coil is energized, the
phenomenon is opposite, the relay NC port and COM port are disconnected Open, NO port and COM port are closed, the
value is 1. Query the relay status by command.
example:
Read the 6-channel switching output status, assuming the return value is 03, corresponding to the binary bit 0000 0011,
the lower six bits represent the switching output status, which are DO6, DO5, DO4, DO3, DO2, DO1 in sequence.
Modbus RTU protocol to read digital output:
01
send
Device ModBus address
01
receive
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
01
00 10
function
Switch start address
code
01
01
16
E78-470LN22S User Manual
00 06
Number of read
CRC
switches
code
03
BD CD
check
11 89

Advertisement

Table of Contents
loading

Table of Contents