Chengdu Ebyte Electronic Technology Co.,Ltd.
E831-RTU(8080T-485) User
Manual
19
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
Clear the pulse count value of DI2 and DI4, and keep the pulse count value of DI1 and DI3. The written value should be 0x0a,
the corresponding binary value is 0000 1010, the pulse count value of Modbus RTU protocol clear
sen
d
01
06
00 40
00 0a
08 19
Device
ModBus address
functi
on code
address
write value
CRC check
code
t
ake
over
01
06
00 40
00 0a
08 19
Device
ModBus address
funct
ion code
address
write value
CRC check
code
4.3.2 Automatic reporting of digital input DI
The automatic reporting function of digital input is to transmit the change value when the switch value changes. You can
choose to transmit through RS485 or GPRS, or you can turn off the automatic reporting function.
The Modbus register corresponding to the automatic reporting setting of the switching value is 40081 (0x0050), the value
corresponding to the function: 0, the automatic reporting function of the switching value is turned off
1. The switch value is automatically reported and transmitted through RS485
The switch value change upload protocol is listed in the following table, in which the frame header 0xAA and0xBB are fixed.
When the counting mode is set to level counting, the value range of DI1 ,DI2 ,DI3 , DI4 , DI5, DI6, DI7, DI8 is 0x00 , 0x01 , 0xFF,
where
0x00 means the digital input is disconnected,
0x01 means the digital input is closed,
0xff means that the digital input has not changed,
The values
of DI1 to DI8 in the table represent that the status of DI1, DI2, DI5, DI6, DI7, DI8 is updated to open, the status
of DI3 is updated to closed, and the status of DI4 has not changed. The last two bytes are the modbus CRC16 calculation value.
Note: When set to rising edge counting mode, trigger once, DI value is 00, when set to falling edge counting mode, trigger
once, DI value is 01. Also 0xff means no change.
frame
header
DI
1
DI2
DI
3
DI
4
DI5
DI6
DI7
DI8
Modbu
s CRC
0xAA
0xBB
0x
00
0x
00
0x
01
0xf
f
0x00
0x00
0x00
0x00
0x05
0x97
4.3.3 Digital output DO time setting
The switch pulse output time setting is to set the digital output time. The corresponding Modbus register is 40083 ( 0x0052 ), and its value range is
100-65535ms . If the value is lower than 100ms , the default digital output is closed to hold state, that is, the digital It remains on after the output is closed. If it is set to 100ms and
above , such as 500ms , after sending the digital output close command, the switch value will be closed for 500ms, and then automatically disconnected after 500ms.
4.3.4 Switch DO restart output state setting
Whether the device keeps the state before power off or restarts to keep the specific output state, this function is only valid when the
device digital output time setting register value is
less than 100ms .
The Modbus register corresponding to the switch restart output state setting is 40085 ( 0x0054), and its value range is 0x00-
0x100 . When the value of this register is 0x100 , the last digital output state is maintained after power off and restart; when the value
of this register is 0x00-0xFF , the lower 8 bits determine the digital output state of the device restarting, bit6 corresponds to DO6, bit5
corresponds to DO5, bit4 corresponds to DO4, bit1 corresponds to DO1, such as when the power is turned on, DO4, DO2 are in the
closed state, DO3, DO1 and other ports are in the open state, the corresponding register value is 0000 1010 , that is, 0xa0, "1" is the
closed state , "0" is disconnected.