Dm (dimension array), General – Yaskawa SMC–4000 User Manual

Page 100

Advertising
background image

90

SMC–4000 User Manual

DM (Dimension Array)

[General]

DESCRIPTION:

The DM command defines a single dimensional array with a name and total elements. The first element of
the defined array starts with element number 0 and the last element is at n-1.

Note: If an array is already defined and a new size is required, first use the DA command to

de-allocate the array.

ARGUMENTS: DM c[n]

where

c is a name of up to eight alphanumeric characters, starting with an uppercase alphabetic character.

n is the number of entries from 1 to 15000.

USAGE:

OPERAND USAGE:

_DM contains the available array space. For example, before any arrays have been defined, the operand
_DM will return 15000. If an array of 100 elements is defined, the operand _DM will return 14900.

RELATED COMMANDS:

DA (De-allocate Variables)

EXAMPLES:

While Moving

Yes

Default Value

---

In a Program

Yes

Default Format

---

Command Line

Yes

Can be Interrogated

Yes

Used as an Operand

Yes

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[1000]

Define dimension of array called Tests with

1000 elements

Advertising