Galil Motion Control optcom Page 18
Optima DMC-1xxx and DMC-18x2 Command Reference
+ - * /
i
7
+ - * /
FUNCTION: Math Operators
DESCRIPTION:
The addition, subtraction, multiplication, and division operators are binary operators (they
take two arguments and return one value) used to perform mathematical operations on
variables, constants, and operands.
ARGUMENTS: (n + m) or (n m) or (n * m) or (n / m) where
n and m are signed numbers in the range -2147483648 to 2147483647
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Controller Usage
ALL
RELATED COMMANDS:
( )
Parenthesis
EXAMPLES:
x = ((1 + (2 * 3)) / 7) - 2
;'assign -1 to x