
5.MACRO VARIABLES B-63943EN-2/01
- 96 -
5.5 EXTENDED P-CODE VARIABLES (#20000 TO #89999)
Extended P-CODE variables can be used in P-CODE macros.
Extended P-CODE variables start with #20000, and the number of
extended P-CODE variables that can be used is determined using the
appropriate parameter.
It is possible to specify whether to use extended P-CODE variables as
floating-point data variables or integer data variables, using the
appropriate parameter.
Setting
1. Set the variable type for bit 4 (EVF) of parameter (No. 9033).
2. Set the number of variables for parameter (No. 9054).
When 1 is set in the parameter, one variable can be used.
The maximum number that can be set for this parameter is
70000.
If this parameter is 0, no extended P-CODE variables can be
used.
- Caution on setting
The maximum value that can be set for parameter (No. 9054) is 70000.
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. 9054) and the
size used is as follows:
For floating-point data :
Compile parameter (No. 9054) × 8 bytes
For integer data :
Compile parameter (No. 9054) × 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.