FANUC Series 16/18/160/180-Model C for Lathe Operator Manual

PROGRAMMING
16. CUSTOM MACRO
B–62754EN/01
297
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
D 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.
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).
D Local variables from level 0 to 4 are provided for nesting.
D The level of the main program is 0.
D Each time a macro is called (with G65 or G66), the local variable level
is incremented by one. The values of the local variables at the previous
level are saved in the CNC.
Restrictions
D Format
D Mixture of argument
specifications I and II
D Position of the decimal
point
D Call nesting
D Local variable levels

Leave a Reply

Your email address will not be published. Required fields are marked *