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 TAG $P12 will be replaced by the current value of parameter P12 (total counts).

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:
TAG $D14 which is the current day
TAG $D15 which is the current time
TAG $P13 or counts accumulated in the last measurement period
TAG $P15 that is the unit of measure for the pulse counter input 1
The contents of the file will be something like this:
182050: 585 l/day
182050: 421 l/day
182050: 332 l/day


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.