Organizing Tags
Chapter 2
Table 7 - Format Expressions
If the operator requires
One value (tag or expression)
Two values (tags, constants, or expressions)
You can use these operators to specify the subscript of an array.
Operator
Description
+
Add
-
Subtract/negate
*
Multiply
/
Divide
ABS
Absolute value
AND
AND
FRD
BCD to integer
Format your expressions as follows.
Use this format
operator(value)
value_a operator value_b
Rockwell Automation Publication 1756-PM004D-EN-P - September 2012
Operator
Description
MOD
Modulo
NOT
Complement
OR
OR
SQR
Square root
TOD
Integer to BCD
TRN
Truncate
XOR
Exclusive OR
Example
ABS(tag_a)
·tag_b + 5
·tag_c AND tag_d
·(tag_e ** 2) MOD (tag_f / tag_g)
53