Io Features - Ebyte E831-RTU User Manual

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

Advertisement

01
Receivin
Device ModBus
g
Address
4.3.

IO Features

4.3.1. Pulse counting and counting clear
The device supports 3 kinds of pulse counting methods, rising edge counting, falling edge counting,
and level counting. This value can be set by writing the corresponding value to the (0x0053) register.
Writing 0 represents rising edge counting, writing 1 represents falling edge counting, writing 2
represents level counting. If users choose rising edge counting, it will only count when DI detects that
level is on the rising edge. Other functions are similar.
In addition, the device also supports the input count filtering function, and the signal must be held for
several cycles can be confirmed. The default value is 6, 6 sampling cycles can be confirmed. The range
is 1-20. This value can be set by writing the corresponding value to the (0x0054) register, the sampling
cycle is 1ms. Note that this function only supports the level counting mode. The pulse count will not be
not saved after power off.
Counting clear also supports manual clear and automatic clear functions: input count is automatically
cleared or manually cleared after reading, which can be set. If it is automatically cleared, the register
value will be cleared after each reading. If it is manually cleared, then either the maximum count of
65536 is cleared or the register is written to clear. Writing 0 to the (0x0055) register means manual
clearing, and writing 1 means automatic clearing. Note that when automatic clearing is set, manual
clearing has no effect.
4.3.1.1.Reading pulse count value
Function code: 03,Read holding register
Address range: 40049 (0x0030)~40051 (0x0033)
Description: Maximum pulse count is 65535
Example:
DI1 has detected 16 pulses currently, DI2 has detected 3 pulses currently. Read the digital input
count value of DI1 and DI2.
Modbus RTU protocol read pulse count value:
01
Transmis
Device ModBus
sion
Address
02
01
Function
Return bytes
code
numbers
03
00 30
Function
Initial address
code
05
CRC parity
Digital input value
00 02
Read numbers
CRC parity code
61 8B
code
C4 04

Advertisement

Table of Contents
loading

This manual is also suitable for:

4040r-485

Table of Contents