Manual

Paramacros
Chapter 28
28-2
It may be necessary for mathematical expressions to be evaluated in a
complex paramacro. This requires that some form of mathematical
equation be written in a paramacro block. The following is a discussion of
the operators and function commands available for use on the control.
These operators and function commands are valid in any block within a
program, subprogram, paramacro, or MDI program.
This subsection lists the mathematical operators that are available on the
9/Series controller. Use these operators to accomplish mathematical
operations that are necessary to evaluate the basic mathematical equation
such as addition, multiplication, etc. Table 18.A lists the operators and
their meanings.
Table 28.A
Mathematical Operators
Operator Meaning
+ Addition
- Subtraction
* Multiplication
/ Division
[ ] Brackets
OR Logical OR
XOR Logical ExclusiveOR
AND Logical AND
MOD Modulus
The control executes a mathematical operation in this order:
1. Any part of the expression between the brackets [] is evaluated first.
2. Multiplication, division, and MOD are evaluated second.
3. All other operations are evaluated third.
If the same level of evaluation is performed, the left-most operation takes priority.
28.1
Parametric Expressions
28.1.1
Basic Mathematical
Operators