beautypg.com

Security function, Evaluation order of operators, Security function -22 – Rockwell Automation 9301 Series RSView32 Users Guide User Manual

Page 535

background image

14–22

RSView32 User’s Guide

Security function

The following built–in function checks if the current user has the
specified security code.

The security parameter is the security code letter, from A to P.

For more information about setting up security for your project, see
Chapter 10, Adding security.

Evaluation order of operators

Expressions with more than one operator are evaluated as follows:

4.

Operators in parentheses are evaluated first.

Therefore, to change the order of precedence, use parentheses.

The operator with the highest precedence is evaluated next.

When two operators have equal precedence, they are evaluated

from left to right.

ARCCOSD (expression)

The arc cosine of the expression in degrees

ARCTAND (expression)

The arc tangent of the expression in degrees

This function

Returns this value

Example

USER_HASPERMISSION
(security)

1 (true) if the specified
security code has been
assigned to the current
user

USER_HASPERMISSION(C)
returns 1 (true) if security code C has
been assigned to the current user,
and 0 (false) if the user does not have
access to the security code.

Use this function to control access
to your project.