Fanuc CNC G81 Drilling Cycle Program – Step-by-Step Example
Fanuc G81 drilling cycle is used for simple drilling operations, so here is a cnc program example which demonstrates how G81 drilling cycle can be used.
CNC Program

Fanuc G81 Drilling Cycle Example Program
N1 T1 M06 N2 G90 G54 G00 X.3 Y1.2 N3 S1200 M03 N4 G43 H01 Z1. M08 N5 G81 Z-.6 R.1 F10 N6 X1.2 Y.3 N7 G80 G00 Z1. M09 N8 G28 G91 Z0. M05 N9 M30
Explanation
N1- Tool change to tool no.1
N2- Tool rapidly moves to first drilling position X0.3 Y1.2 while taking into account Zero-offset-no. 1
N3- Drill starts rotating clockwise with 1200 rpm.
N4- Drill takes depth Z1. taking into account tool length compensation (G43 H01), coolant is turned on.
N5- Drilling cycle parameters, drill depth and cutting feed are given, with this command first drill is made at current position (X0.3 Y1.2).
N6- As drilling cycle continues it’s work with every axis movement so next drill is done at X1.2 Y0.3
N7- Drilling cycle is canceled with G80 command, Coolant is turned off.
N8- As operation for this component is finished, so cutting tool is taken to reference position, and cutter rotation is stopped.
N9- CNC part-program is ended.
G & M Codes
| Code | Description |
|---|---|
| T | Tool no. used. |
| M06 | Tool change command. |
| G90 | Absolute programming |
| G54 | Zero offset no.1 |
| G00 | Rapid traverse |
| S | Cutter speed |
| M03 | Cutter rotation Clockwise |
| G43 | Tool length compensation. |
| M08 | Coolant on. |
| G81 | Fanuc drilling cycle. |
| F | Cutting feed. |
| G80 | Canned cycle cancel. |
| M09 | Coolant off. |
| G28 | Return to reference position. |
| G91 | Incremental programming. |
| M05 | Cutter rotation stop. |
| M30 | CNC part-program end with return to program-start. |
CNC Machine
- Master the Fanuc G75 Grooving Cycle: Step-by-Step CNC Program Guide
- Example Program: G81 & G83 Peck Drilling with G98/G99 Return Levels
- CNC Milling Example: Mastering the G81 Drilling Canned Cycle
- Comprehensive Fanuc G94 Facing Cycle Example for CNC Machining
- Optimizing CNC Drilling: G81 Cycle on Grid Plate – Practical Sample Program
- Master G81 Drilling Cycle with G91 Incremental Mode: Step-by-Step Example Program
- Master the G84 Tapping Cycle: Practical CNC Programming Guide
- Master G82 Drilling Cycle with Dwell – CNC Milling Example Program
- Comprehensive CNC Program: G81 Drilling & G84 Tapping Cycles Demonstrated
- CNC Lathe Drilling Cycle Example: Sinumerik CYCLE81 for Efficient Machining