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 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

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:

  • It automatically logs the total Period Counts (P13) accumulated over the past 24 hours into a local CSV file.
  • If the partial counter reads exactly 0 (meaning no flow, utility consumption, or machine cycles were detected the entire day), it instantly dispatches an anomaly alert via SMS to a technician to report a potential system failure or broken sensor wire.


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.