
Parker Hannifin
60 Programmer’s Guide
Parametric Evaluation
Most commands take arguments. Often, those command-line
arguments are literals—values that are interpreted as they are
written. For example, axis numbers, bit index numbers, acceleration
or deceleration speeds, or positional values.
In addition to literals, you can use expressions (also called formulas).
The ACR controller can solve complex integer or floating point math.
To use expressions, you must enclose them in parentheses.
Expressions can use the following:
• Constants
• Variables
• Parameters
• Bits
• Aliases
An expression is comprised of at least one operand and one or more
operators. Operands are values, whether numerals or variables.
Operators are symbols that represent specific actions. For example,
the plus sign (+) represents addition, and the forward slash (/)
represents division. In the expression
A + 7
A and 7 are operands, and + is an operator.
NOTE: For a complete list of operators available, see the Expression
Reference section of the ACR Command Language
Reference.
Operations are performed in the following order:
• Powers
• Multiplication and division
• Addition and subtraction
• Relational operations (such as greater than, less than, not
equal to)
The hyperbolic (sine, cosine, tangent, etc.) and miscellaneous
operators (absolute value, natural log, square root, etc.) require
parentheses around their own expressions. The order of operations
with such operators begins with the deepest nested parentheses.
Commentaires sur ces manuels