Ebyte E831-RTU(6060-4G) Manual page 17

Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Device ModBus address
Modbus TCP protocol to read digital output:
00 01
send
Transport
ID
00 01
receive
Transport
ID
Control switch DO output
Function code: 05, write single coil state; 0F, write multiple coil states
Address range: 00017(0x0010)~ 00022(0x0015)
Description: The device relay is passively output, the coil is not energized, the relay NC port and COM port are closed,
and the NO port and COM port are disconnected; the coil is energized, the relay NC port and COM port are disconnected,
and the NO port and COM port are closed. Control relay state by command.
example:
Function code 0x05 Write DO2 digital output, make NC2, COM2 open, NO2, COM2 close, the write value is FF 00;
make NC2, COM2 close, NO2, COM2 open, write the value 00 00.
Modbus RTU protocol write switch output:
send
DeviceModBus address function code
receive
Device ModBus address function code
Modbus TCP protocol write switch output:
00 01
send
Transport
ID
00 01
receive
Transport
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
function
code
00 00
00 06
Protocol ID
length
00 00
00 04
Protocol
length
ID
01
05
01
05
00 00
00 06
Protocol
length
ID
00 00
00 06
Protocol
length
returns
the
Switch
number of bytes
value
01
01
Unit ID
function
code
01
01
function
Unit ID
code
00 11
switch address
00 11
switch address
01
Unit ID
function code
01
05
Unit ID
function code
17
E78-470LN22S User Manual
output
CRC
code
00 10
Switch
start
address
01
returns
the
number of bytes
FF 00
write value
CRC check code
FF 00
write value
CRC check code
05
00 11
switch address
00 11
switch address
check
00 06
Number of read
switches
03
Number of read
switches
DC 3F
DC 3F
FF 00
write value
FF 00
write value

Advertisement

Table of Contents
loading

Table of Contents