Galil Motion Control manc 18x 6 Page 16
DMC-18x6 Command Reference
8
( )
FUNCTION: Parentheses (order of operations)
DESCRIPTION:
The parentheses denote the order of math and logical operations. Note that the controller DOES
NOT OBEY STANDARD OPERATOR PRECEDENCE. For example, multiplication is
NOT evaluated before addition. Instead, the controller follows left-to-right precedence.
Therefore, it is recommended to use parenthesis as much as possible.
ARGUMENTS: (n) where
n is a math (+ - * /) or logical (& |) expression
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Controller Usage
ALL
RELATED COMMANDS:
Math Operators
Logical Operators
EXAMPLES:
:MG 1 + 2 * 3
9.0000
:MG 1 + (2 * 3)
7.0000
: