|
EXAMPLE 1 |
||
|
This example illustrates how to set up an automated weekly log report using Pulse Counter Input 1 (e.g., connected to a water or energy meter). At the end of each week (specifically on Sunday night at midnight, before the start of the new week), the device automatically transmits an SMS report with the cumulative Total Counts (P12) recorded during that week. Immediately after dispatching the message, the system resets the total counter registry back to 0 to begin aggregating consumption clean for the following week. |
||
|
|
|
SCH2359 SCHEDULED AT 23:59 |
|
|
$D16=7 WEEKDAY = 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AT+SMS=+391234,"Weekly counter: $P12" |
|
|
|
P12=0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger event occurs every day at 11:59 pm. The first condition checked is that the current day is Sunday (7). The first action contains the command that sends an SMS message to the number +391234 with the text "Weekly counter: $P12". The second action contains the command that sets parameter P12 (total counts) to zero. |
||
|
EXAMPLE 2 |
||
|
This configuration demonstrates how to set up an autonomous daily data logger using Pulse Counter Input 1 that simultaneously monitors your infrastructure for mechanical anomalies or sensor failures. We assume the channel's measuring period is configured for exactly one full day (P14 = 1440 minutes). At the end of each 24-hour cycle, the system performs a dual audit:
|
||
|
|
|
P1 PULSE COUNTER INPUT 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AT#AFILE=S:LOGS/log.txt,T,"$D15: $P13 $P15" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger event is the end of the measurement period of pulse counter 1. The first action contains the command that appends to the log.txt file in the LOGS folder of the S: unit (SD card) a new line: |
||
|
|
|
P1 PULSE COUNTER INPUT 1 |
|
|
$P13=0 PERIOD COUNTS = 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AT+SMS=+391234,"Pulse counter failure: $P11" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trigger event is the end of the measurement period of pulse counter 1. The first condition is that the pulses totalized in the last measurement period be zero. The first action contains the command that sends an SMS message to the number +391234 with the text "Pulse counter failure: $P11". The TAG $P11 will be replaced by the name assigned to the input. |
||
