Galil Motion Control manc 18x 6 Page 74
DMC-18x6 Command Reference
66
DM
FUNCTION: Dimension
DESCRIPTION:
The DM command defines a single dimensional array with a name and the number of elements in
the array. The first element of the defined array starts with element number 0 and the last
element is at n-1.
ARGUMENTS: DM c[n]
where
c is a name of up to eight characters, starting with an alphabetic character. n specifies the size of
the array (number of array elements).
n = ? Returns the number of array elements available.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
---
In a Program
Yes
Default Format
---
Command Line
Yes
Controller Usage ALL CONTROLLERS
OPERAND USAGE:
_DM contains the available array space. For example, before any arrays have been defined, the
operand _DM will return 16000. If an array of 100 elements is defined, the operand _DM
will return 15900.
RELATED COMMANDS:
Deallocate Array
EXAMPLES:
DM Pets[5],Dogs[2],Cats[3] Define dimension of arrays, pets with 5 elements; Dogs with 2
elements; Cats with 3 elements
DM Tests[1600]
Define dimension of array Tests with 1600 elements