Chengdu Ebyte Electronic Technology Co.,Ltd E851-RTU(4440-ETH) User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
Modbus TCP protocol reads switching output:
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:
Modbus TCP protocol write switch output: