View single post by slychiu | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Posted: Wednesday Aug 8th, 2018 11:51 am |
|
||||||||||||
slychiu
|
The Vibration Analyser Response works as below; 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 To add the condition if security is armed then activate the analyser; If SecurityMode <> SecurityOff 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 End if Last edited on Wednesday Aug 8th, 2018 11:52 am by slychiu |
||||||||||||
|