Beginner CNC Slot Milling Program: Simple Example & Step‑by‑Step Guide
A very simple cnc milling program example which shows how a simple slot can be machined.
Another such program example which mills a pocket the same way but in a taper is here CNC Milling Machine Programming Example for Beginners.
Slot Milling Program Example

Slot Milling Sample CNC Program
N10 G00 G90 X70 Y25 Z1 S800 M3 N20 Z-5 N30 G01 X20 F150 N40 G00 Z100 N50 X-25 Y50 N60 M30
N10 Spindle on clockwise rotation at 800 rev/min, tool rapid traverse to P01.
N20 Infeed in Z.
N30 Tool traverse P01 to P02, feedrate 150 mm/min.
N40/N50 Rapid traverse retraction.
N60 End of program.
CNC Machine
- CNC Milling Example: Mastering the G81 Drilling Canned Cycle
- Comprehensive CNC Milling Sample Program – G-Code Tutorial & Explanation
- CNC G02 Clockwise Circular Interpolation: Beginner‑Friendly Sample Program
- Siemens Sinumerik 4‑Axis Milling Program: A Practical CNC Example
- CNC Milling Arc Example: Using G2 with I & J Parameters
- Heidenhain CNC Milling Program: Precision Toolpath for Efficient Manufacturing
- Heidenhain CNC: Simple Slot Milling Program Demo
- Heidenhain CNC Milling Program Example – Step-by-Step Guide
- Sample Heidenhain CNC Program for Slot Milling
- CNC Pocket Milling Example: Peck Milling Tutorial