Ebyte E851-RTU Series User Manual page 19

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

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
01
take over
Device ModBus address
Modbus TCP protocol to read switch output:
00 01
send
Transmissi
on ID
00 01
take over
Transmissi
on ID
4.2.1.2 Control switch DO output
Function code: 05, write single coil status; 0F, write multiple coil status
Address range: 00017(0x0010)~00020(0x0013)
Explanation: The device relay is passively output, the coil is not powered, the NC port of the relay is closed to the COM port, and
the NO port is disconnected from the COM port; the coil is powered on, the NC port of the relay is disconnected from the COM port,
and the NO port is closed to the COM port. The state of the relay is controlled by commands.
example:
Function code 0x05 writes DO2 switching output, disconnects NC2 and COM2, closes NO2 and COM2, and writes a value of FF
00; closes NC2 and COM2, disconnects NO2 and COM2, and writes a value of 00 00.
Modbus RTU protocol write switch output:
01
send
Device ModBus
address
01
take over
Device ModBus
address
Modbus TCP protocol write switch output:
00 01
send
Transmissi
on ID
00 01
take over
Transmissi
on ID
Function code 0x0F write DO2, DO3 switch output, make NC2, COM2 open, NO2, COM2 close; make NC3, COM3 open, NO3,
COM3 close. The written value should be 0x03, corresponding to the binary bit 0000 0011
Modbus RTU protocol write switch output:
Copyright © 2012, Chengdu Ebyte Electronic Technology Co., Ltd.
01
function
returns the number of
code
00 00
00 06
Protocol
length
ID
00 00
00 04
Protocol
length
ID
05
function code
05
function code
00 00
00 06
Protocol
length
ID
00 00
00 06
Protocol
length
ID
01
Switch output value
bytes
01
01
function
Unit ID
switch start address
code
01
01
function
returns the number of
Unit ID
code
00 11
switch address
00 11
switch address
01
05
function
Unit ID
code
01
05
function
Unit ID
code
E851-RTU(4440-ETH) User Manual
03
CRC check code
00 10
Read switch
01
Switch output value
bytes
FF 00
write value
CRC check code
FF 00
write value
CRC check code
00 11
switch address
write value
00 11
switch address
write value
11 89
00 04
quantity
03
DC 3F
DC 3F
FF 00
FF 00
19

Advertisement

Table of Contents
loading

Table of Contents