Chengdu Ebyte Electronic Technology Co.,Ltd.
E78-470LN22S User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
20
Receive
00 01
00 00
00 07
01
03
04
00 10
00 03
Transport
ID
Protocol
ID
length
Unit ID
Function
code
returns
the
number
of
bytes
DI1 count
value
DI2
count
value
Clear pulse count value
Function code: 06, write holding register
Address range: 40065 (0x0040)
Description: The lower six bits of the register value represent the counts of DI6, DI5, DI4, DI3, DI2, and DI1
respectively. Writing "1" means the count is cleared and the pulse count is restarted. example:
Clear the pulse count value of DI2, DI4, keep the pulse count value of DI1, DI3, D5, D6. The write value should be 0x0a,
the corresponding binary value is 0000 1010, the pulse count value of Modbus RTU protocol clear
Send
01
06
00 40
00 0a
08 19
Device
ModBus
address
function code
address
write value
CRC check code
Receive
01
06
00 40
00 0a
08 19
Device ModBus address function code
address
write value
CRC check code
Modbus TCP protocol clear pulse count value:
Send
00 01
00 00
00 06
01
06
00 40
00 0a
Transport
ID
Protocol ID
length
Unit ID
Function
code
address
write value
Receive
00 01
00 00
00 06
01
06
00 40
00 0a
Transport
ID
Protocol ID
length
Unit ID
Function
code
address
write value
4.3.2 Automatic reporting of digital input DI:
The automatic reporting function of digital input is to transmit the change value when the digital 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 switch value is 40082 (0x0051), and the
value corresponds to the function:
Turn off the automatic reporting function of the switch value
The switch value is automatically reported and transmitted through RS485
The switch value is automatically reported and transmitted through the GPRS network
The switch value change upload protocol is listed in the following table, in which the frame header 0xAA and 0xBB are
fixed, and the value range of DI1, DI2, DI3, DI4, DI5, DI6 is 0x00, 0x01, 0xFF, among which
0x00 means the digital input is disconnected,
0x01 means the switch input is closed,