Canned cycles turn a whole drilling move into one line. You write the cycle once and then just list the hole positions.
G81: simple drilling
Rapid to the R plane, feed to depth Z, rapid out. Good for spot drilling and shallow holes.
G81 X10. Y10. Z-8. R2. F150
X30.
X50.
G80G83: peck drilling
For holes deeper than about three times the drill diameter. The drill goes down a peck (Q), pulls out to clear the chips and goes back. Chips stay short and the drill stays cool.
G83 X10. Y10. Z-30. R2. Q4. F120
G80On many Fanuc controls a value without a decimal point is read in microns: Q4000 is 4 mm, but Q4 would be 0.004 mm. Always write the decimal point.
G84: tapping
The tap must move exactly one pitch per revolution, so the feed is locked to the spindle speed:
F = S × pitch
In feed per minute (G94). M8 × 1.25 at 500 rpm: F = 625 mm/min
M29 S500
G84 X10. Y10. Z-15. R5. F625
G80M29 turns on rigid tapping on Fanuc. Start the R plane a little higher than for drilling so the tap enters at full sync.
R, G98 and G99
- R: the plane where the feed starts, a few millimeters above the part.
- G98: return to the initial height between holes (to clear clamps).
- G99: return only to R (faster, when nothing is in the way).
- G80: cancel the cycle. Forget it and the next positioning move can drill a hole.