Ebyte E831-RTU(8080T-485) User Manual page 20

Data acquisition module
Table of Contents

Advertisement

4.3.1.2.Manual clear pulse count value
Function code: 06, Write holding register
Address range: 40065 (0x0040)
Description: The lower four bits of the register value represent the counts of DI6, DI5, DI4, DI3, DI2
and DI1 respectively. Writing "1" means clearing the count and restarting the pulse count.
Example:
Clear the pulse count value of DI2 and DI4, and keep the pulse count value of DI1 and DI3. The
write value should be 0x0a, and the corresponding binary value is 0000 1010.
Modbus RTU protocol clear pulse count value:
01
Transmis
Device ModBus
sion
Address
01
Receivi
Device ModBus
ng
Address
4.3.2. Automatic report of digital input DI
The digital input automatic report function is to transmit the changed value when the switch value
changes. Users can choose to transmit via RS485 or GPRS, or turn off the automatic report function.
The switch value automatically reports and sets the corresponding Modbus register to 40081
(0x0050). The value corresponds to the function:
0,Turn off switch value automatic report function
1, Switch value automatic report function transmit via RS485
The uploading protocol of switch value change is entered in the following table, where the frame
headers 0xAA and 0xBB 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, of which
0x00 represents digital input is disconnected,
0x01 represents digital input is closed,
0xff represents 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 calculation value of modbus CRC16.
06
00 40
Function
Address
code
06
00 40
Function
Address
code
00 0a
08 19
Write value
CRC parity code
00 0a
08 19
CRC parity
Write value
code

Advertisement

Table of Contents
loading

Table of Contents