
5.MACRO VARIABLES B-63943EN-2/01
- 94 -
5.4 P-CODE VARIABLES (#10000 TO #19999)
P-CODE variables can be used in P-CODE macros.
P-CODE variables start with #10000, and the number of P-CODE
variables that can be used is determined using the appropriate
parameter.
It is possible to specify whether to use P-CODE variables as floating-
point data variables or integer data variables, using the appropriate
parameter.
Setting
1. Set the variable type for bit 3 (EV2) of parameter (No. 9033).
2. Set the number of variables for parameter (No. 9053).
When 1 is set in the parameter, one variable can be used.
The maximum value that can be set for this parameter is 10000.
If this parameter is 0, no P-CODE variables can be used.
- Caution on setting
The maximum value that can be set for parameter (No. 9053) is 10000.
The actual maximum value that can be set, however, depends on the
free space of the backup memory.
The relationship between the setting of parameter (No. 9053) and the
size used is as follows:
For integer data :
Compile parameter (No.9053) × 8 bytes
For floating-point data :
Compile parameter (No.9053) × 2 bytes
The backup memory is controlled in groups of 512 bytes.
Caution
CAUTION
The free space of the backup memory must not be
exceeded.
Otherwise, "FILE ALLOCATION ERROR" is
displayed when the power is turned on, and the
system stops.
If "FILE ALLOCATION ERROR" is displayed, use
either of the following recovery methods:
<1> Register a P-CODE macro that does not cause
the free space to be exceeded.
<2> Delete the P-CODE macro.