Fanuc Power Mate i-D/H Operator Manual

PROGRAMMING
(Common to Power Mate i–D and –H)
B–63174EN/03
13. CUSTOM MACRO
129
The same operation as the drilling canned cycle is created using a custom
macro and the machining program makes a modal macro call. For
program simplicity, all drilling data is specified using absolute values.
Z=0
R
Z
The canned cycle consists of the follow-
ing basic operations:
Operation 1:
Positioning along the X–axis
Operation 2:
Rapid traverse to point R
Operation 3:
Cutting feed to point Z
Operation 4:
Rapid traverse to point R or I
Rapid traverse
Cutting feed
Operation 1
Position I
Operation 2
Operation 4
Position R
Operation 3
Position Z
G66 P9110 X x Z z R r F f L l ;
X: X coordinate of the hole (absolute specification only) (#24). . . . .
Z : Coordinates of position Z (absolute specification only) (#26). . . .
R: Coordinates of position R (absolute specification only) (#18). . . .
F : Cutting feedrate (#9). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
L : Repetition count
O0001;
G28 G91 X0 Z0;
G92 X0 Z50.0;
G00 G90 X100.0;
G66 P9110 Z–20.0 R5.0 F500;
G90 X20.0;
X50.0;
X70.0;
G67;
M30;
O9110;
#1=#4001; Stores G00/G01.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
#3=#4003; Stores G90/G91.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
#4=#4109; Stores the cutting feedrate.. . . . . . . . . . . . . . . . . . . . . . . .
#5=#5003; Stores the Z coordinate at the start of drilling.. . . . . . . . .
G00 G90 Z#18; Positioning at position R. . . . . . . . . . . . . . . . . . . . . .
G01 Z#26 F#9; Cutting feed to position Z. . . . . . . . . . . . . . . . . . . . . .
IF[#4010 EQ 98]GOTO 1; Return to position I. . . . . . . . . . . . . . . . . .
G00 Z#18; Positioning at position R. . . . . . . . . . . . . . . . . . . . . . . . . .
GOTO 2;
N1 G00 Z#5; Positioning at position I. . . . . . . . . . . . . . . . . . . . . . . . . .
N2 G#1 G#3 F#4; Restores modal information.. . . . . . . . . . . . . . . . . . .
M99;
Sample program
Calling format
Program that calls a
macro program
Macro program
(program called)

Leave a Reply

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