beautypg.com

Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual

Page 562

background image

F

ACTORY

T

ALK

V

IEW

S

ITE

E

DITION

U

SER

S

G

UIDE

20–16

• •

alm_in_alarm(tag or alarm event)
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_level(tag or alarm event)
or

alm_level(tag*)

The alarm level or threshold for an analog tag or
alarm event. This can be value between 1 and 8,
or 0 if the tag is not in alarm.

If examining multiple tags, the highest level of the
tags in alarm. For example, if the current alarms
are levels 2, 6, and 8, this function returns the
value 8.

alm_severity(tag or alarm event)
or

alm_severity(tag*)

The severity of the alarm or alarm event. This can
be a value between 1 and 8, or 0 if the tag or alarm
event is not in alarm.

If examining multiple tags, 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_suppress(tag or alarm event)
or

alm_suppress(tag*)

1 (true) if the tag’s alarms are suppressed.

For multiple tags, 1 (true) if one or more of the
tags’ alarms are suppressed.

alm_tags_inalm(tag or alarm event)
or
alm_tags_inalm(tag*)

1 (true) if the tag or alarm event is in alarm.

If examining multiple tags, the number of tags or
events in the query that are in alarm, or 0 if none
are in alarm.

alm_tags_inalm_unack(tag or alarm
event)
or
alm_tags_inalm_unack(tag*)

1 (true) if the tag or event is in alarm and
unacknowledged.

If examining multiple tags, the number of tags or
events in the query that are both in alarm and
unacknowledged, or 0 if none are in alarm and
unacknowledged.

alm_tags_unack(tag or alarm event)
or

alm_tags_unack(tag*)

1 (true) if the tag or alarm event is
unacknowledged; 0 if the tag or event is
acknowledged.

If examining multiple tags, the number of tags or
alarm events in the query that are unacknowledged,
or 0 if all are acknowledged.

comm_err(tag)

1 (true) if the last read or write operation for the
specified tag indicated a communication failure.

You can examine the status of only one tag with
this function.

This function

Returns this value