Example: hmi tag alarm functions, Security functions, Security functions – 17 – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual
Page 563
20
•
C
REATING
EXPRESSIONS
20–17
•
•
•
• •
20
•
Pla
ceho
lde
r
In a network distributed application, you can specify an absolute or a relative reference to
a tag. For more information, see “About tag references” on page 10-6.
To examine multiple tags at once, use a wildcard character in the expression argument.
Example: HMI tag alarm functions
ALM_IN_ALARM(/Ingredients::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.
In this example, the tags are in the area called Ingredients.
Security functions
Use the built-in security functions to control access to an application, based on a user’s
identity or security permissions.
This wildcard character
Does this
?
Matches any single character.
*
Matches any number of characters, including the
backslash (\) character.
This function
Returns this value
Example
CurrentUserHasCode
1 (true) if the user
possesses any of the
specified security codes.
If checking multiple
security codes, do not
type a space between the
security code letters.
CurrentUserHasCode(ABP)
Returns 1 if the current user has been
assigned one or more of the specified codes.
If not, returns 0.
CurrentUserHasGroup
1 (True) if the current
user is assigned to the
specified group.
The group name must be
enclosed in double
quotes (“ ”).
CurrentUserHasGroup("Group A")
Returns 1 if the current user is assigned to the
group Group A.
If not, returns 0.
CurrentUserName
The name of the current
user. The user’s domain
is not included.
CurrentUserName()
Returns the name of the current user.