Galil Motion Control optcom Page 74
Optima DMC-1xxx and DMC-18x2 Command Reference
DM
i
63
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 uppercase 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 8000. If an array of 100 elements is defined, the operand
_DM will return 7900.
RELATED COMMANDS:
"DA"
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