View single post by slychiu
 Posted: Sunday Dec 4th, 2016 06:35 am
 PM  Quote  Reply  Full Topic 
slychiu



Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

You can modify  the response below as the PIR Zone Response

This is similar to  the Default Response Vibration Analyser

Timer 8 is for timing and counter 7 for counting

If at least  2 counts are detected within 30 seconds, the alarm is triggered

you can change the timer setting of 30 seconds and the count of 2 as you need


If Timer Timer08 = 0 Then
    Do NullResponse After 30 Seconds Using Timer08
    Set Counter007 = 0
End If
Increment Counter007
If Counter Counter007 >= 2 Then
    Stop Timer Timer08
Else
    Skip Alarm
End If


At each zone trigger, the timer 8 is started and count is reset if timer 8  was not running
The counter is incremented. If the value < 2 the a;arm is skipped
If the value is >=2 the timer is stopped and the alarm is not skipped, ie alarm is activated



 Close Window