DMC-100/1500 Command Reference
DA
•
35
DMC-1000
DMC-1500
DA
FUNCTION:
Deallocate the Variables & Arrays
DESCRIPTION:
The DA command frees the array and/or variable memory space. In this command, more
than one array or variable can be specified for deallocation of memories. Different
arrays and variables are separated by comma when specified in one command. The
argument * deallocates all the variables, and *[0] deallocates all the arrays.
ARGUMENTS:
DA c[0],variable-name
where
c[0] = Defined array name
variable-name = Defined variable name
* - Deallocates all the variables
*[0] - Deallocates all the arrays
DA ? returns the number of arrays available on the controller.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
In a Program
Yes
Default Format
Command Line
Yes
Can be Interrogated
Yes
Used as an Operand
Yes
OPERAND USAGE:
_DA contains the total number of arrays available. For example, before any arrays have been
defined. If an array is defined, the operand _DA will return 13.
CONTROLLER
NUMBER OF AVAILABLE ARRAYS
DMC-1500 30
DMC-1010 thru DMC-1040
14
DMC-1050 thru DMC-1080
30
DMC-1010-MX thru DMC-1040-MX
30
RELATED COMMANDS:
DM Dimension
Array
EXAMPLES:
‘Cars’ and ‘Sales’ are arrays and ‘Total’ is a variable.
DM Cars[400],Sales[50]
Dimension 2 arrays
Total=70
Assign 70 to the variable Total
DA Cars[0],Sales[0],Total Deallocate the 2 arrays & variables
DA*[0]
Deallocate all arrays
DA *,*[0]
Deallocate all variables and all arrays
Note: Since this command deallocates the spaces and compacts the array spaces in the memory, it is
possible that execution of this command may take longer time than 2 ms.