EasyManua.ls Logo

Galil Motion Control DMC-40x0 Series

Default Icon
280 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
76 DA DMC-40x0 Command Reference
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 memory de-allocation. 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
Controller Usage
ALL CONTROLLERS
OPERAND USAGE:
_DA contains the total number of arrays available. For example, before any arrays have been
defined, the operand _DA is 30. If one array is defined, the operand _DA will return 29.
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*[] Deallocate all arrays
DA *,*[] 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.

Related product manuals