I have looked through some older posts and managed to get a script together to list currently active alarms that match certain ‘machine area’ properties by using system.alarm.queryStatus.
But i can’t quite figure out how to get a boolean trigger when a NEW alarm is detected.
I could examine the oldCount and the newCount from when the script was run last, but that wouldn’t work if one alarm is created, and one alarm is cleared in between script calls, as the counts would be the same.
Is there Ignition in-built trigger on new alarm entering the alarm journal or something that we could use?
I imagine someone has done something similar, could someone point me in the right direction?
I’ve just tested using an Alarm Pipeline which has achieved what i wanted, but i’m not sure that will allow for the flexibility i might want in future.