Automatic Reporting Of Digital Input Di - Ebyte E831-RTU(6060-4G) Manual

Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
00 01
Receive
Transport
ID
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
Device
address
Receive
Device ModBus address function code
Modbus TCP protocol clear pulse count value:
00 01
Send
Transport
ID
00 01
Receive
Transport
ID

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,
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
00 00
00 07
Protocol
length
ID
01
06
ModBus
function code
01
06
00 00
00 06
Protocol ID
length
00 00
00 06
Protocol ID
length
01
03
Unit ID
Function
returns
code
number
bytes
00 40
address
00 40
address
01
06
Unit ID
Function
code
01
06
Unit ID
Function
code
20
E78-470LN22S User Manual
04
00 10
the
DI1
count
DI2
of
value
value
00 0a
08 19
write value
CRC check code
00 0a
08 19
write value
CRC check code
00 0a
00 40
address
write value
00 0a
00 40
address
write value
00 03
count

Advertisement

Table of Contents
loading

Table of Contents