Chengdu Ebyte Electronic Technology Co.,Ltd E851-RTU(4440-ETH) User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
Function code 0x0F writes DO2, DO3 switch output, making NC2, COM2 disconnected, NO2, COM2 closed; NC3,
COM3 disconnected, NO3, COM3 closed. Write value should be 0x03, corresponding to binary bit 0000 0011
Modbus RTU protocol write switch output:
Modbus TCP Write Switch Output:
4.2.2. Read switch DI input
Function Code: 02, Read (Switch) Input Status
Address range: 10017 (0x0010) ~10020 (0x0013)
Description: Default Dry Contact Input for Device, when DI and COM are short connected, the read value should be 1;
when DI and COM are not short connected, the read value should be 0.
Example:
Read 4 way switch input value, In DI input terminal, DI1, COM1 short connection, DI2, COM2 are not short connection,
DI3, COM3 short connection, DI4, COM4 are not short connection. The input digital input value is 0x05, corresponding
to the binary bit 0000 0101, and the four bits of the lower four bits represent the digital input value, which are in turn DI4,
DI3, DI2, DI1.
Modbus RTU protocol reads switching input:
Read the quantity of
switches