Can I make IVA rule toggle relay to follow alarm using Alarm Task Script?
Related Products
All IP encoders
Question
Can I make IVA rule toggle relay to follow alarm using Alarm Task Script?
Answer
Copy/Paste the selection below to your alarm task editor and save.
This script will make your encoder to toggle relay 1 only when IVA rule #1 alarm is active.
// Set TempState to monostable mode, 5 seconds OperationMode monostable := { High(50) }; TempState(1) := monostable; if (VCARule(1,1)) then TempState(1) :=true; if (TempState(1)) then Relay(1) :=true else Relay(1) :=false; |
---|