
13. Program Support Functions
13.5 User Macro Specifications
302
(2) Argument designation II
Format : A__ B__ C__ I__ J__ K__ I__ J__ K__• • • •
Detailed description
(a) In addition to address A, B and C, up to 10 groups of arguments with I, J, K serving as 1
group can be designated.
(b) When the same address is duplicated, designate the addresses in the specified order.
(c) Addresses which do not need to be designated can be omitted.
(d) The following table shows the correspondence between the addresses which can be
designated by argument designation II
and the variable numbers in the user macro main
body.
Argument
designation II
address
Variable within
macro
Argument
designation II
address
Variable within
macro
A #
1
J5 #17
B #
2
K5 #18
C #
3
I6 #19
I1 #
4
J6 #20
J1 #
5
K6 #21
K1 #
6
I7 #22
I2 #
7
J7 #23
J2 #
8
K7 #24
K2 #
9
I8 #25
I3 #10
J8 #26
J3 #11
K8 #27
K3 #12
I9 #28
I4 #13
J9 #29
J4 #14
K9 #30
K4 #15
I10 #31
I5 #16
J10 #32
K10 #33
(Note 1)
The numbers 1 through 10 accompanying I, J and K denote the sequence of the
commanded groups and they are not required for the actual instructions.
(Note 2)
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.
(3) Using arguments designations I and II together
If addresses corresponding to the same variable are commanded when both types I and
II are used to designate arguments, the latter address is valid.
(Example 1)
Call instruction G65 A1.1 B-2.2 D3.3 I4.4 I7.7 ;
Variable
#1 :
1.1
#2 :
–2.2
#4 :
4.4
#5 :
#6 :
#7 :
3.3
7.7
In the above example, the last I7.7 argument is valid when both arguments D3.3 and I7.7
are commanded for the #7 variable.