1 basic mathematical operators – Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual
Page 646

Paramacros
Chapter 20
20-2
This subsection covers the basic mathematical operators that are available
on the control. Use these operators to accomplish mathematical operations
necessary to evaluate basic mathematical equations, such as addition,
multiplication, etc. Table 20.A lists the basic mathematical operators and
their meanings.
Table 20.A
Mathematical Operators
Operator
Meaning
+
Addition
-
Subtraction
*
Multiplication
/
Division
[ ]
Brackets
OR
Logical OR
XOR
Logical Exclusive OR
AND
Logical AND
MOD
Modulus
The order of execution for the above operations is:
1.
The control evaluates any part of the expression that is between the
brackets [].
2.
The control evaluates multiplication, division, and MOD.
3.
The control evaluates all other operations.
If you perform the same level of evaluation, the left-most operation takes
priority. Example 20.1 illustrates the order of execution for the operators
found in Table 20.A.
Example 20.1
Mathematical Operations
Expression entered
Result
12/4*3
9
12/[4*3]
1
12+2/2
13
[12+2]/2
7
12-4+3
11
12-[4+3]
5
20.1.1
Basic Mathematical
Operators