Download User's Guide

Transcript
Creating expressions
This function
Returns
ALM_SUPPRESS(tag)
or
ALM_SUPPRESS(tag*)
1 (true) if the tag’s alarms are suppressed.
ALM_FAULT(tag)
or
ALM_FAULT(tag*)
1 (true) if there has been an alarm fault for the specified tag.
COMM_ERR(tag)
1 (true) if the last read or write operation for the specified
tag indicated a communication failure.
If examining multiple tags, 1 (true) if one or more of the tags’
alarms are suppressed.
If examining multiple tags, 1 (true) if there has been an alarm
fault for one or more of the tags.
Note that you can examine the status of only one tag with this
function.
To examine multiple tags at once, use a wildcard in the expression
argument.
This wildcard
Does this
*
Matches any number of characters, including the backslash (\)
character.
?
Matches any single character.
Example: Tag functions
ALM_IN_ALARM(vessel3\TIC3\pv*)
Returns 1 (true) if one or more tags in the specified folder have a
name beginning with the letters “pv” and are in alarm. Returns 0
(false) if none of the specified tags are in alarm.
1
1
14-15 1