Galil Motion Control optcom Page 189
Optima DMC-1xxx and DMC-18x2 Command Reference
@SQR[n]
i
178
@SQR[n]
FUNCTION: Square Root
DESCRIPTION:
Takes the square root of the given number. If the number is negative, the absolute value is
taken first.
ARGUMENTS: @SQR[n] where
n is a signed number 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:
@ABS
Absolute
value
EXAMPLES:
:MG @SQR[2]
1.4142
:MG @SQR[-2]
1.4142
: