Fanuc Series 15i/150i-MA (Programming) Operators Manual

B-63324EN/03 PROGRAMMING 17.CUSTOM MACRO
- 629 -
17.6.1 Simple Call (G65)
When G65 is specified, the custom macro specified at address P is
called. Data (argument) can be passed to the custom macro program.
Explanation
- Call
- After G65, specify at address P the program number of the custom
macro to call
- When a number of repetitions is required, specify a number from
1 to 99999999 after address L. When L is omitted, 1 is assumed.
- By using argument specification, values are assigned to
corresponding local variables.
- Argument specification
Two types of argument specification are available. Argument
specification I uses letters other than G, L, O, N, and P once each.
Argument specification U uses A, B, and C once each and also uses I, J,
and K up to ten times. The type of argument specification is
determined automatically according to the letters used.
- Argument specificationI
Address
Variable
number
Address
Variable
number
Address
Variable
number
A
B
C
D
E
F
H
#1
#2
#3
#7
#8
#9
#11
I
J
K
M
Q
R
S
#4
#5
#6
#13
#17
#18
#19
T
U
V
W
X
Y
Z
#20
#21
#22
#23
#24
#25
#26
- Addresses G, L, N, O, and P cannot be used in arguments.
- Addresses that need not be specified can be omitted. Local
variables corresponding to an omitted address are set to null.
- Argument specificationII
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.
P : Number of the program to call
Lambda : Repetition count (1 by default)
Argument : Data passed to the macro
O0001 ;
@:
G65 P9010 L2 A1.0 B2.0 ;
@:
M30 ;
O9010 ;
#3=#1+#2 ;
IF [#3 GT 360] GOTO 9 ;
G00 G91 X#3 ;
N9 M99 ;
G65 Pp L Lambda < argument-specification > ;

Leave a Reply

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