Expression: source path of alarm

Hi!
I have perspective 8.1
I would to trigger an event when there are any active, unacked alarms and specific source path of alarm .

Blockquote
if({[System]Gateway/Alarming/Active and Unacked},
"https://192.168.2.2.1i/bernstein_greatescapemarch_clip.mp3",
"")

What is expression (Binding Type) for source path of alarms?

You can access the number of Active Unacked alarms on a specific tag from the Alarms.ActiveUnackCount property.
Ex.
[default]myFolder/myTag/Alarms/ActiveUnackCount

I cannot seem to find a way to access this property from a script. I tried system.tag.readBlocking() and system.tag.getConfiguration() to no avail.

However, you can bind it to a different object property like a label.text or a custom property on a view via a Direct or Indirect Tag Binding. From there, you can run a script that pulls in the property to which you bound the value and see if it is > 0.

I hope this gets you a little closer.

I think I would go with a script with: system.alarm.queryStatus - Ignition User Manual 8.1 - Ignition Documentation

1 Like