HAI Timers

broconne

Active Member
Somewhat new to HAI programming here, I have done a few simple things - but I seem to be struggling with something that I think should be simple. Essentially, what I want to do is the following:
Whenever zone not secure for one minute, beep console 5 times. Continue to beep 5 times every minute zone is not secure.

I imagine I do this somehow with flags and counting down.. But been looking at it for a bit and just can't seem to get all the pieces to fit correctly.
 
You can turn a FLAG on when the zone goes NOT READY and then if you are using at least 3.0 firmware, you can use the EVERY command and the FLAG status as the AND IF condition.
 
This may help:

Code:
216.	//    repeated alert message
217.	WHEN Front Door NOT READY
			THEN fRepeatAlert ON FOR 1 MINUTE
218.	WHEN Front Door SECURE
			THEN fRepeatAlert OFF
219.	WHEN fRepeatAlert OFF
		AND IF Front Door NOT READY
			THEN SAY FRONT DOOR OPEN
			THEN fRepeatAlert ON FOR 1 MINUTE
 
Back
Top