Ebyte E851-RTU User Manual page 18

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

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd
Modbus TCP protocol reads switching output:
00 01
Transmit
Transmission
identifier
00 01
Receive
Transmission
identifier
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:
01
Transmit
Device ModBus address
01
Receive
Device ModBus address
Modbus TCP protocol write switch output:
00 01
Transmit
Transmission
identifier
00 01
Receive
Transmission
identifier
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
00 00
00 06
Protocol
length
identifier
00 00
00 04
Protocol
length
identifier
05
Function code
05
Function code
00 00
00 06
Protocol
length
element ID
identifier
00 00
00 06
Protocol
length
element ID
identifier
01
01
Unit
Function
identification
code
01
01
Unit
Function
identification
code
00 11
Switching address
00 11
Switching address
01
05
Function code
01
05
Function code
E851-RTU(4440-ETH) User Manual
00 10
Switch start
Read switch
address
quantity
01
Switch Output
Return bytes
FF 00
DC 3F
Write value
CRC check code
FF 00
DC 3F
Write value
CRC check code
00 11
Switching address
Write value
00 11
Switching address
Write value
00 04
03
Value
FF 00
FF 00
17

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

4440-eth

Table of Contents