Tag functions, Tag functions -15 – Rockwell Automation 9301 Series RSView32 Users Guide User Manual
Page 528
![background image](/manuals/581578/528/background.png)
Creating expressions
14–15
Many functions check for specific true and false conditions. They
return 1 if the condition is true, and 0 if the condition is false.
Tag functions
The following built–in functions examine the status of a tag (tag) or
multiple tags (tag*).
This function
Returns
ALM_IN_ALARM(tag) or
ALM_IN_ALARM(tag*)
1 (true) if the tag or alarm event is in alarm.
If examining multiple tags, 1 (true) if one or more of the tags or alarm
events are in alarm.
ALM_ACK(tag)
or
ALM_ACK(tag*)
1 (true) if the tag or alarm event’s alarm has been acknowledged.
If examining multiple tags or alarm events, 1 (true) if one or more of the
tags’ or alarm events’ alarms have been acknowledged.
ALM_ALLACKED(tag) or
ALM_ALLACKED(tag*)
1 (true) if the tag’s alarm has been acknowledged.
If examining multiple tags, 1 (true) if all of the tags’ alarms have been
acknowledged.
ALM_SEVERITY(tag)
or
ALM_SEVERITY(tag*)
The severity of the alarm—a value between 1 and 8, or 0 if the tag or
alarm event is not in alarm.
If examining multiple tags or alarm events, the highest severity of the
tags or alarm events that are in alarm. For example, if the current alarms
have severities of 1, 3, and 6, this function returns the value 1.
ALM_LEVEL(tag)
or
ALM_LEVEL(tag*)
The alarm level or threshold for an analog tag: a value between 1 and 8,
or 0 if the tag is not in alarm.
If examining multiple tags, the highest level of the tags that are in alarm.
For example, if the current alarms are levels 2, 6, and 8, this function
returns the value 8.
ALM_SUPPRESS(tag)
or
ALM_SUPPRESS(tag*)
1 (true) if the tag’s alarms are suppressed.
If examining multiple tags, 1 (true) if one or more of the tags’ alarms are
suppressed.