Ebyte E831-RTU User Manual page 17

Wireless data transceiver
Hide thumbs Also See for E831-RTU:
Table of Contents

Advertisement

01
Receivi
Device ModBus
ng
Address
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 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, 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.
03
04
Return
Function
bytes
code
numbers
06
00 40
Function
Address
code
06
00 40
Function
Address
code
00 10
00 03
DI1 count
DI2 count
value
value
00 0a
Write value
00 0a
Write value
BB F7
CRC parity
code
08 19
CRC parity code
08 19
CRC parity
code

Advertisement

Table of Contents
loading

This manual is also suitable for:

4040r-485

Table of Contents