
B-63943EN-2/01 5.MACRO VARIABLES
- 105 -
5.9 DIFFERENCES FROM THE Series 16i
Function
Series 16i Series 30i
- Local variables can be used with an
execution macro only.
- If array-type variables are invalid
(#8518=0), local variables can be used
even with conversational/auxiliary
macros.
Local variables
- The local variables used are different from
those used with custom macros. So,
even when an execution macro is called
as a subprogram from a user program, the
local variable level changes, and the
calling local variable is not passed.
- Local variables are assigned separately
to execution/conversational/auxiliary
macros. However, they are common to
execution and custom macros. So,
when a subprogram is called, the local
variable level does not change, and the
calling local variable is passed.
(However, if bit 3 (LCLLV) of compile
parameter (No. 9163) is set to 1, the local
variable level changes and the calling
local variable is not passed as with the
Series 16i when an execution macro is
called as a subprogram from a user
program.)
- Common variables are shared among
execution/conversational/auxiliary
macros, but are not shared with custom
macros.
- Whether common variables are shared
among execution/conversational/auxiliary
macros, whether common variables are
P-CODE macro common variables
independent of custom macros, and
whether common variables are custom
macro common variables can be chosen
using bits 0 to 7 (MV0 to MV7) of
parameter (No. 9034)
Common variables
- Common variables cannot be protected. - As with custom macros, multiple common
variables can be protected.
- P-CODE variables are used as variables
for floating-point data.
- Whether P-CODE variables are used as
variables for floating-point data or for
integer data can be chosen.
P-CODE variables
- The number of variables is set in a
compile parameter. When 1 is set, 100
variables can be used.
- The number of variables is set in
parameter (No. 9053). When 1 is set, 100
variables can be used.
Extended P-CODE
variables
The number of variables is set in a compile
parameter. When 1 is set, 12 variables for
floating-point data or 30 variables for integer
data can be used.
The number of variables is set in parameter
(No. 9054), regardless of the data format.
When 1 is set, one variable can be used.