13. Program Support Functions
13.5 User Macro Specifications
315
13.5.5 Types of Variables
Common variables
Common variables can be used commonly from any position. Number of the common variables
sets depends on the specifications. Refer to "13.4 Variable commands" for details.
Local variables (#1 to #33)
These can be defined as an <argument> when a macro subprogram is called or used locally within
main programs and subprograms. They can be duplicated regardless of the relationship existing
between macros (up to 4 levels).
G65 L__ P__
<argument> ;
L
: Program number
P
: Number of repetitions
The <argument> is assumed to be Aa1 Bb1 Cc1 .............. Zz1.
The following table shows the correspondences between the addresses designated by
<argument> and the local variable numbers used in the user macro main bodies.
[Argument specification I]
Call command
Call command
G65
G66
G66.1
Argument
address
Local
variable
number
G65
G66
G66.1
Argument
address
Local
variable
number
A #1
Q #17
B #2
R #18
C #3
S #19
D #7
T #20
E #8
U #21
F #9
V #22
∗
G #10
W #23
H #11
X #24
I #4
Y #25
J #5
Z #26
K #6
- #27
∗
L #12
- #28
M #13
- #29
∗
N #14
- #30
O #15
- #31
∗
P #16
- #32
-
#33
" " in the above table denotes an argument address which cannot be used. However, provided
that the G66.1 mode has been established, an argument address denoted by the asterisk can be
added for use.
"
−
" denotes that a corresponding address is not available.
(Note)
With the M2/M0 format-label O type, the address "A" is used as the address for subprogram
No., thus, "A" can not be used as the local variable No.