Galil Motion Control manc 18x 6 Page 19
DMC-18x6 Command Reference
11
+ - * / %
FUNCTION: Math Operators
DESCRIPTION:
The addition, subtraction, multiplication, division, and modulus 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) 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
:MG 40 % 6
;'integer remainder of 40 divided by 6
4.0000
: