Io Basic Functions - Ebyte E851-RTU Series User Manual

Hide thumbs Also See for E851-RTU Series:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
the data from the 485 bus will be transmitted to the network The data from the network will be transmitted to the 485 bus.
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 IO basic functions

4.2.1 Digital DO output
4.2.1.1 Read switch DO output
Function code: 01, read coil status
Address range: 00017(0x0010)~00020(0x0013)
Explanation: When the device relay is passive output, when the coil is not powered, the NC port and COM port of the relay are
normally closed, and the NO port and COM port are normally open, and the value is 0; when the coil is powered on, the phenomenon
is opposite, and the relay NC port and COM port are disconnected. Open, the NO port and the COM port are closed, and the value is 1.
Query the status of the relay through the command.
example:
Read the 4-way switching output status, assuming the return value is 03, corresponding to the binary digits 0000 0011, the lower
four bits represent the switching output status, which are DO4, DO3, DO2, DO1 in sequence.
Modbus RTU protocol to read switch output:
01
send
Device ModBus address
Copyright © 2012, Chengdu Ebyte Electronic Technology Co., Ltd.
01
00 10
function
switch start address
code
E851-RTU(4440-ETH) User Manual
00 04
Read switch quantity
CRC check code
3C 0C
18

Advertisement

Table of Contents
loading

Table of Contents