Galil Motion Control manc 18x 6 Page 18
DMC-18x6 Command Reference
10
[ ]
FUNCTION: Square Brackets (Array Index Operator)
DESCRIPTION:
The square brackets are used to denote the array index for an array, or to denote an array name.
(They are also used to designate the argument to a function, such as @ABS[n].)
ARGUMENTS: mmmmmmmm[n] where
mmmmmmmm is the array name
n is the array index and is an integer between 0 and 15999
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Controller Usage
ALL
RELATED COMMANDS:
Array
Array
EXAMPLES:
DM A[100]
;'define a 100 element array
A[0] = 3
;'set first element to 3
MG A[0]
;'print element 0
QU A[]
;'print entire array