
Chengdu Ebyte Electronic Technology Co., Ltd.
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
24
4.3.2 DI automatic reporting of Switch quantity input
The automatic reporting function of Switch quantity input is to transmit the change value when the Switch quantity
input changes. You can choose to transfer through RS485 or ETH, or you can turn off the automatic reporting function.
The corresponding Modbus register is set to 40082 (0x0051) for automatic Switch quantity amount reporting. The
value corresponding function is:
Turn off switch automatic reporting function 0x00
Switch quantity Automatic Reporting Transfer 0x01 Through RS485
Switch quantity Automatic Reporting Transfer 0x02 Through ETH Network
Switch quantity change upload protocol is entered into the following table, in which frame headers 0xAA and 0xBB
are fixed and the values of DI1, DI2, DI3, DI4, DI5 and DI6 are in the range of 0x00, 0x01 and 0xFF.
0x00 represents the switch quantity input disconnection.
0x01 represents the switch quantity input closed.
0xFF represents that the switch quantity input has not changed.
The values of DI1, DI2, DI3, DI4, DI5 and DI6 in the table represent that the state of DI1 and DI2 is updated to be
disconnected, the state of DI3 is updated to be closed, and the state of DI4, DI5 and DI6 is unchanged. The last two bytes
are Modbus CRC16 calculated values.
Frame
head
DI1
DI2
DI3
DI4
DI5
DI6
Modbus
CRC
AA BB
00
00
01
FF
FF
FF
F1 7B
4.3.3 DO Time Settings for Switch quantity Output
The setting of switch quantity output time is to set the switch quantity output time (relay NO, COM closing time).
The corresponding Modbus register is 40083 (0x0052). Its value range is 300-65535 Ms. If the value is less than 300 ms,
the default switch quantity output is closed to hold state, that is, the switch quantity output is kept after closing. If it is set
to 300 ms or more, such as 500 ms, after sending the closing command, the closing of the switch quantity will be
maintained 500 ms, and then it will be automatically disconnected after 500 ms.
4.3.4 Restart Switch quantity Output State Settings
Whether the device is powered off and restarted to maintain the state before the power is turned off or restarted to
maintain the setting of the specific output state. This function is valid only when the device switch quantity output time
setting register value is less than 300ms.
The Modbus register corresponding to the switch quantity restart output status setting is 40085 (0x0054), and its
value range is 0x00-0x40. When the value of this register is 0x40, the last switch quantity output state is maintained after
power-off restart; when the value of this register is 0x00-0x3F, the device determines the device to restart the switch
quantity output state by the lower six bits, bit6 corresponds to DO6, bit5 corresponds DO5, bit4 corresponds to DO4, bit3
corresponds to DO3, bit2 corresponds to DO2, bit1 corresponds to DO1. For example, when power is on, DO6, DO5,
DO4, DO2 are in closed state (relay NO, COM is closed) DO3, DO1 are in the off state (relay) NO, COM disconnected),
the corresponding register value is 0011 1010, that is, 0x3A, "1" is closed state, and "0" is off state.