PROGRAMMING15. CUSTOM MACRO
B–63844EN/02
322
Argument specification II
Argument specification II uses A, B, and C once each and uses I, J, and
K up to ten times. Argument specification II is used to pass values such
as three–dimensional coordinates as arguments.
A
B
C
I
1
J
1
K
1
I
2
J
2
K
2
I
3
J
3
#1
#2
#3
#4
#5
#6
#7
#8
#9
#10
#11
K
3
I
4
J
4
K
4
I
5
J
5
K
5
I
6
J
6
K
6
I
7
#12
#13
#14
#15
#16
#17
#18
#19
#20
#21
#22
J
7
K
7
I
8
J
8
K
8
I
9
J
9
K
9
I
10
J
10
K
10
#23
#24
#25
#26
#27
#28
#29
#30
#31
#32
#33
Address Variable
number
Address Variable
number
Address Variable
number
S Subscripts of I, J, and K for indicating the order of argument
specification are not written in the actual program.
G65 must be specified before any argument.
The CNC internally identifies argument specification I and argument
specification II. If a mixture of argument specification I and argument
specification II is specified, the type of argument specification specified
later takes precedence.
Example
G65 A1.0 B2.0 I–3.0 I4.0 D5.0 P1000;
<Variables>
#1:1.0
#2:2.0
#3:
#4:–3.0
#5:
#6:
#7:
When both the I4.0 and D5.0 arguments are commanded for
variable #7 in this example, the latter, D5.0, is valid.
5.0
The units used for argument data passed without a decimal point
correspond to the least input increment of each address. The value of an
argument passed without a decimal point may vary according to the
system configuration of the machine. It is good practice to use decimal
points in macro call arguments to maintain program compatibility.
Calls can be nested to a depth of four levels including simple calls (G65)
and modal calls (G66). This does not include subprogram calls (M98).
S Local variables from level 0 to 4 are provided for nesting.
Limitations
D Format
D Mixture of argument
specifications I and II
D Position of the decimal
point
D Call nesting
D Local variable levels