Chengdu Ebyte Electronic Technology Co.,Ltd
E851-RTU(4440-ETH) User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
17
Modbus TCP protocol reads switching output:
Transmit
00 01
00 00
00 06
01
01
00 10
00 04
Transmission
identifier
Protocol
identifier
length
Unit
identification
Function
code
Switch start
address
Read switch
quantity
Receive
00 01
00 00
00 04
01
01
01
03
Transmission
identifier
Protocol
identifier
length
Unit
identification
Function
code
Return bytes
Switch Output
Value
4.2.1.2. Control switch quantity DO output
Function code: 05, write single coil state; 0F, write multiple coil state
Address range: 00017 (0x0010) ~00020 (0x0013)
Description: Equipment relay passive output, coil is not energized, relay NC port and COM port are closed, NO port and
COM port are disconnected; coil is energized, relay NC port and COM port are disconnected, NO port and COM port are
closed. The state of relay is controlled by command.
Example:
Function code 0x05 write DO2 switch output, make NC2, COM2 open, NO2, COM2 close, write value is FF 00; make
NC2, COM2 close, NO2, COM2 open, write value 00 00.
Modbus RTU protocol write switch output:
Transmit
01
05
00 11
FF 00
DC 3F
Device ModBus address
Function code
Switching address
Write value
CRC check code
Receive
01
05
00 11
FF 00
DC 3F
Device ModBus address
Function code
Switching address
Write value
CRC check code
Modbus TCP protocol write switch output:
Transmit
00 01
00 00
00 06
01
05
00 11
FF 00
Transmission
identifier
Protocol
identifier
length
element ID
Function code
Switching address
Write value
Receive
00 01
00 00
00 06
01
05
00 11
FF 00
Transmission
identifier
Protocol
identifier
length
element ID
Function code
Switching address
Write value