
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 225 -
6.10 ARRAY-TYPE PROCESSING AND REFERENCING OF P-
CODE VARIABLES
Array-type processing of P-CODE variables
This function controls processing of array-type macro variables or a
sequence of macro variables.
1) Clearing array-type variables and a sequence of variables
(continuous writing of specified data)
2) Transferring from array-type variables or a sequence of variable
to a sequence of variables
Each type of processing is performed by first defining an array, a
sequence of variables, or data in each of the following control
variables, then issuing control code G315.
#8511: Source data
#8512: Source two-dimensional array number or the start
variable number of a sequence of variables
#8513: Source three-dimensional array number
#8514: Destination two-dimensional array number or the start
variable number of a sequence of variables
#8515: Destination three-dimensional array number
- Format
G315 P (processing code) K (number of data items to be
processed);
P001
(P1)
: Stores data from #8511 to K consecutive variables
starting at the one specified in #8514.
P002
(P2)
: Transfers data from K consecutive variables starting at
the one specified in #8512 to K consecutive variables
starting at the one specified in #8514 (transfer in
ascending order).
P003
(P3)
: Transfers data from K consecutive variables starting at
the one specified in #8512 to K consecutive variables
starting at the one specified in #8514 (transfer in
descending order).
P101 : Stores data from #8511 to K consecutive array variables
starting at array variable #1 specified in #8514 and
#8515.
P102 : Transfers data from K consecutive array variables
starting at array variable #1 specified in #8512 and
#8513 to K consecutive array variables starting at array
variable #1 specified in #8514 and #8515 (ascending
order).
P103 : Transfers data from K consecutive array variables
starting at array variable #1 specified in #8512 and
#8513 to K consecutive array variables starting at array
variable #1 specified in #8514 and #8515 (descending
order).