beautypg.com

Rockwell Automation 9301 Series RSView32 Users Guide User Manual

Page 536

background image

Creating expressions

14–23

Operators are evaluated in the following order:

Example: Evaluation order

For these examples, tag1 = 5, tag2 = 7, and tag3 =10.

_____________________________

(tag1 > tag2) AND (tag1 < tag3)

is evaluated in this sequence:

Evaluation order

Symbols

1 (highest)

( )

2

NOT
~

3

*
/
MOD, %
**
AND, &&
&
>>
<<

4

+
-
OR, ||
|
^

5 (lowest)

EQ, =
NE, <>
LT, <
GT, >
LE, <=
GE, >=