Rockwell Automation 1775-S4B,D17756.5.3 User Manual SCANNER/MSG HND User Manual
Page 153

Report Generation Quick Reference Guide
Appendix C
CĆ3
Table C.B
Expression Operators
Operator
Order of Execution
1
Description
~ or .BNOT.
.NOT.
/
*
%
+
-
>>
<<
& or .BAND.
^ or .BXOR.
| or .BOR.
.EQ.
.GE.
.GT.
.LE.
.LT.
.NE.
.SNE.
.SEQ.
.AND.
.OR.
1
1
1
2
2
3
3
4
4
5
6
7
8
8
8
8
8
8
8
8
9
10
Bitwise 32Ćbit complement
Logical complement
Bit test
Multiply
Divide
Add
Subtract
Bit Shift right
Bit Shift left
Bitwise 32Ćbit AND
Bitwise 32Ćbit EXCLUSIVE OR
Bitwise 32Ćbit OR
Compare equal
Compare grater or equal
Compare greater
Compare less or equal
Compare less
Compare not equal
String compare not equal
String compare equal
Logical AND
Logical OR
1
Order of execution moves from 1 to 10 with 1 executing first. When operators have the same order of execution number, the
order for their execution within an expression is from left to right.
Table C.C
Assigning User Symbols
If you want to:
Then do this:
Assign a numeric value to a procedural user
symbol
Assign a numeric value to an interprocedural
user symbol
Assign a string of data to a procedural user
symbol
Assign a string of data to an interprocedural
user symbol
<user symbol> = <numeric value>
<user symbol> == <numeric value>
<user symbol> =? `<string of data>'
<user symbol> ==? `<string of data>'