
B–62093E–1/02
6. FUNCTIONS OF THE MACRO
EXECUTOR
PROGRAMMING
91
(1) Reference of array type P–CODE variables for conversational macro
In conversational macro, two or three–dimensional array type
P–CODE variables (#10000...) can be referred. Set a proper value to
the following array control variables beforehand and an array element
of P–CODE variables is referred to corresponding to the variable
number (#1 – #99).
CAUTION
Variables #1 to #99 for convesational macro are different
from local variables #1 to #33 for execution macro.
Array control variable:
#8512 Two–dimensional array number
#8513 Three–dimensional array number
#8516 Maximum value of one–dimensional array
number
#8517 Maximum value of two–dimensional array
number
#8519 Array top variable number
Specify an array type by the array control variables #8516 to #8519
and specify the array number referred to by the #8512 and #8513.
Variables #1 to #99 are used to refer the values.
The correspondence between the P–CODE variables and array
elements is as shown below:
P–CODE variable number
= #8519+((#8516+ #8517) (#8513 1))+(#8516 (#8512–1))+
(Specified variable number–1)
Example)
When the #8516, #8517, and #8519 are set to 10, 5, and 10100,
respectively:
1) When both of #8512 and #8513 are set to 1, the value for #1
corresponds to that for #10100.
2) When the #8512 and #8513 are set to 3 and 2, respectively,
the value for #10 corresponds to that for #10179.
Each variable of #8512 to #8517 and #8519 are set to 1 and 10000,
respectively when the power is turned on.
Thus, the #8513 and #8517 can be used in the case of use as the
two–dimensional array. No check is carried out on minimum value
of each variable P–CODE variable number after calculation.
Use the macro program when needed.
CAUTION
This function can be used in the conversation macro
program and auxiliary macro program.
In the execution macro, the #1 to #33 are local variables
and the #34 to #99 are variables which cannot be used and
would result in an alarm.
6.12
PROCESSING
ARRAY TYPE
P–CODE VARIABLES