For the purpose of our example, we will be creating programming based on the desired effect of providing a distinctly audible notification when a particular zone trips five (5) times and ten (10) times. Additionally, we will want this to occur only at night, although other conditions may be desired. With the above stated, we will create the following programming:
SUNSET MTWTFSS: SET TRIP 5 TO 5
SUNSET MTWTFSS: SET TRIP 10 TO 10
WHEN MOTION NOT READY &IF DARK: DECREMENT TRIP 5
WHEN MOTION NOT READY &IF DARK: DECREMENT TRIP 10
WHEN TRIP 5 OFF &IF DARK: BUZZER ON FOR 5 SECONDS
WHEN TRIP 5 OF &IF DARK: SET TRIP 5 TO 5
WHEN TRIP 10 NOT READY &IF DARK: BUZZER ON FOR 10 SECONDS
WHEN TRIP 10 OFF &IF DARK: SET TRIP 10 TO 10
SUNRISE MTWTFSS: SET TRIP 5 TO 0
SUNRISE MTWTFSS: SET TRIP 10 TO 0
How it works:
Lines 1 & 2 set you counter flags each evening, at sunset (dark).
Lines 3 & 4 decrement your flags each time the zone trips.
Lines 5(6) and 7(8) sound the buzzer respectively and reset the counters as they turn off.
Lines 9 & 10 set the counters to 0 each morning, to ensure there is no confusion during the day.