CNC Milling Program Tutorial: G01, G02, G03, G90, G91 Commands Explained
A cnc mill program for cnc machinists programmers, who have started to learning basic cnc programming techniques.
CNC Mill Example Program

CNC Program
N40 G90 G00 X0 Y0 N50 G01 X-10 Y-20 R8 (P1) N60 G01 X-50 R10 (P2) N70 Y10 (P3) N80 X-19.97 Y25.01 (P4) N90 G03 X7.97 Y38.99 R18 (P5) N100 G01 X30 Y50 (P6) N110 G91 X10.1 Y-10.1 (P7) N120 G90 G02 X59.9 Y20.1 R14 (P8) N130 G01 X70 Y10 (P9) N140 Y-20 R10 (P10) N150 X50 (P11) N160 G03 X30 R10 (P12) N170 G01 X10 R8 (P13) N180 X0 Y0
G M S T Codes Explanation
| Code | Description |
|---|---|
| G00 | Rapid traverse |
| G01 | Linear interpolation |
| G02 | Circular interpolation CW |
| G03 | Circular interpolation CCW |
| G90 | Absolute command |
| G91 | Increment command |
CNC Machine
- Fanuc CNC Programming Guide: A Simple, Feature‑Rich Example
- CNC Milling Example: G90 Absolute, G91 Incremental, and Circular G02/G03 Interpolation
- CNC Milling Circular Interpolation: Practical G02/G03 G‑Code Program Example
- Master CNC Arc Programming: G02 & G03 Joint Arc Example
- Master CNC Milling: G02 & G03 Circular Interpolation Programming Guide
- CNC Milling Program Tutorial: G01, G02, G03, G90, G91 Commands Explained
- Master G02 & G03 Circular Interpolation: CNC Mill Example Program
- Mastering CNC Milling: G91, G41, G43 Code Usage Explained
- CNC Milling Program: Converting G90 Absolute to G91 Incremental Mode with G03 Example
- CNC Lathe Programming: Arc Radius Example Using G02 & G03 Codes