EXAMPLE 1 |
||
Alla fine di ogni settimana invia un SMS con i conteggi accumulati ed azzera il contatore per la settimana successiva. |
||
|
|
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 |
||
At the end of each counting period, for example set at 1440 minutes (24 hours), store the accumulated count value in a file. If in this period no count has been detected, send an SMS to report a possible anomaly. |
||
|
|
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. |