Tag Alarm Status

If I have a Level tag and I create High and Low alarms for the tag, is there a way to get the status of those alarms, i.e. Level.High or Level.Low?

In an expression, you can use the [tt]isAlarmActive(tagPath, [alarmName])[/tt] function. For example:

isAlarmActive("Level", "High")

In the client, the signature is “tagPath, [alarmName], [pollRate]”, so that it can poll and fire changes to other bindings.

If you leave the alarm name off, you would get whether or not there are any alarms active for the tag.

We intend to make it possible to address the alarm state directly in the future, but for now that’s not possible.


Is this a scripting function? I don’t see it listed in the manual for 7.6.2-rc4

It’s an expression function. For scripting, you would use queryAlarmStatus and the like. Looks like it’s not showing up in the manual, I’ll have to look into it…


Use system.alarm.queryStatus

Forum: http://forum.inductiveautomation.com/t/system-alarm-querystatus-on-associated-data/15360/2

Docs: https://docs.inductiveautomation.com/display/DOC79/system.alarm.queryStatus