
B–61803E–1/10
5. MACRO VARIABLES
PROGRAMMING
47
It is possible to use optional quantity of the P-CODE variables starting
with #10000 on 100-pc. basis.
A 100 times as many as the numerical value preset on the compiling
parameter No. 9037 will be the usable quantity of P-CODE variables.
When the value on the parameter No. 9037 is 0, P-CODE exclusive
variables are not usable.
The upper limit of the P-CODE variables is as follows.
10000 + (Value of Compiling Parameter No. 9037) 100–1
The lower limit of the P-CODE variables is 10000. For example, the
P-CODE variables can be used as follows:
#10000 to #10099 when the value of parameter No. 9037 is 1
#10000 to #10199 when the value of Parameter No. 9037 is 2
NOTE
1 For P-CODE variables, about 1.63 meter of part program
memory is consumed per 100 pieces of variables when part
program storage is 20 to 80m. The more P–CODE are
used, the more part program memory decreases.
Series 16/18-A (Part program storage memory:
Up to 80m)
Series 20 (Part program storage memory:Up to 80m)
Series 21-MB (Part program storage memory on the
D201 series:Up to 80m)
Series 21-TB (Contorl unit A)
The maximum no. of the usable P-CODE variables depends
on the capacity of the part program memory.
Part program storage memory 10 m:
Parameter on compiling No. 9037 = 6
Part program storage memory 20 m:
Parameter on compiling No. 9037 = 12
Part program storage memory 40 m:
Parameter on compiling No. 9037 = 25
Part program storage memory 80 m:
Parameter on compiling No. 9037 = 51
Part program storage memory 160 m - 1280 m:
Parameter on compiling No. 9037 = 60
When compilation paraneter No.9007#7 EXT1 = 1, the No.
of P-code variables is the above value minus 1.
2 The P–CODE variables still maintain their values after the
power is turned off.
3 Before executing the conversational macro with the
complied ROM module loaded, erase all the programs in the
part program storage memory once.
(Turn on the power while pushing key with the setting
(PWE = 1).)
With this operation all the conversational macro functions
will be initialized to be ”blank”.
Array type variables for P–CODE in conversational macro
#10000 – can be refered to in 2 to 3 dimentional array type.
(See 6.13 (1) )
DELETE
5.4
P–CODE VARIABLES
#10000–