Execute Script on Alarm isActive

I have an analog tag with 4 levels of alarming configured. My ideal end result would be at each level, I execute system.util.execute(['C:\path\LowLow.bat']).

if Tag.LowLowAlarm isActive, Do A, LowAlarm, isActive, Do B etc..

At the tag scripting level, how do I create unique actions for the invidual alarm.isactive and not the overall Alarm HasActive state?

(we are executing an external application, different actions for different alarm levels).

The Alarm Active tag change event can do this:

Check the alarmName variable within the event handler function for the alarm that changed

1 Like