Digital Input Alarm(S) - ADEUNIS ARF8283A Guide Utilisateur

Table des Matières

Publicité

Les langues disponibles

Les langues disponibles

LoRaWAN DELTA P - Guide utilisateur / User guide version V1.0.0

2.1.7 Digital Input alarm(s)

The device incorporate two digital inputs/outputs via a terminal block, allowing to detect a change a change in up and down state.
The device allows the sending of a frame following a change of state on one of its inputs according to the following diagram:
FR
Product in standby
State change
EN
on digital
input (s)?
Send frame 0x51
Product in standby
State
change
on digital
input(s)?
Yes
Number of
occurrences
reached?
Send frame 0x51 or
0x52
Example :
No
Yes
* Debounce time: minimum time to take account of a change of state. For example, if this period is
ou 0x52
10 ms all pulses (high or low level) whose duration is less than 10 ms will not be considered. This
technique avoids potential rebounds during a change of state.
In this example the device:
• The device has a debounce time of 100ms and the digital input 1 alarm is enabled
(register 382).
• The device sends a frame for each detection of an event (register 381)
• The alarm via the terminal block is disabled (register 382)
NOTE: It is possible to program the sending of a frame only after a certain number of edge
detections (S381/S383).
Example :
Register Value code
S382
No
S383
* Debounce time: minimum time to take account of a change of state. For example, if this period is
10 ms all pulses (high or low level) whose duration is less than 10 ms will not be considered. This
technique avoids potential rebounds during a change of state.
No
In this example the device:
• The device has a debounce time of 100 ms and an alarm is enabled on the digital input 2
(register 383).
• The device sends a frame as soon as it has detected 5 high edges on its digital input per
terminal block (register S382)
The digital inputs operate only in event mode (no periodic sending).
Register
Value encod-
ing
S380
Hexadecimal
S381
Decimal
S382
Hexadecimal
Value
Hexadecimal 0x41
Decimal
5
Value
Result
0x41
Configuration of the Digital Input/Output 1:
• Detection of declining fronts
• Debounce time* 100ms
1
The device sends a frame every event detect
on digital input/output 1
0x0
Configuration of the Digital Input/Output 2:
• Disabled
• No debounce time
Result
Configuration of the Digital Input/Output 2:
• Detection of high edges
• Debounce time* 100ms
The device sends a frame after detection of 5
declining fronts (event ON)
Page
64
of 88

Publicité

Table des Matières
loading

Table des Matières