13. Program Support Functions
13.5 User Macro Specifications
316
[Argument specification II]
Argument specification
II address
Variable in
macro
Argument specification II
address
Variable in
macro
A #
1
I6 #19
B #
2
J6 #20
C #
3
K6 #21
I1 #
4
I7 #22
J1 #
5
J7 #23
K1 #
6
K7 #24
I2 #
7
I8 #25
J2 #
8
J8 #26
K2 #
9
K8 #27
I3 #10
I9 #28
J3 #11
J9 #29
K3 #12
K9 #30
I4 #13
I10 #31
J4 #14
J10 #32
K4 #15
K10 #33
I5 #16
J5 #17
K5 #18
(Note 1)
Subscripts 1 to 10 for I, J, and K indicate the order of the specified command sets. They
are not required to specify instructions.
(1) Local variables in subprograms can be defined by means of the <argument> designation
during macro call.
Main program
Refer to the local
variables and control the
movement, etc.
Subprogram (L9900)
Local variables set
by argument
Local variable
data table
G65 L9900 A60. S100. F800;
M02;
To subprogram
G91 G01 X [#19
∗
COS [#1] ]
Y [#19
∗
SIN [#1] ] F#9;
G23;
A(#1)= 60.000
F(#9)= 800
S(#19)= 100.000