← Back to Home

🔩 CNC Milling Program Builder

Build milling programs for 3-axis, 4th axis & 5-axis machines

Workpiece & Material Setup
Step 1: Workpiece Dimensions

Enter the dimensions of your workpiece stock material.

Step 2: Origin Reference (Work Zero)

Select where the machine origin (X0, Y0, Z0) is located on the workpiece. All tool movements are relative to this point.

Step 3: Safe Distances (from Origin)

Rapid: Tool moves at G0 to safe position. Approach: Tool moves at G1 from safe to clearance before cutting.

Preview Illustration
Click illustration to expand
Material
SFM: 300-500 Feed/Tooth: 0.10-0.20 mm DOC: Up to 1×D
Select Operation
Drilling
2D Milling
4th Axis 4-AXIS
5-Axis 5-AXIS
Generated G-Code
; Select an operation to generate G-code
Program Settings
Operations
Click an operation button to add it to your program
Generated Program
; Add operations to generate program

Milling Operations Overview

OperationG-CodeDescriptionKey Parameters
Spot DrillG81Create starting point for drillingDepth, Feed
DrillG81Standard drilling cycleDepth, Feed, Retract
Peck DrillG83Deep hole drilling with retractTotal depth, Peck depth, Dwell
TapG84Threading with tapPitch, Depth, Speed sync
Rigid TapG84.2Synchronized spindle tappingPitch, Depth
BoreG85/G86Precision boring cycleDepth, Feed, Dwell
ReamG85Hole finishing with reamerDepth, Feed
Face MillG01Surface facing operationWidth, Stepover, Depth
PocketG12/G13Material removal from cavityDimensions, Depth, Stepover
ContourG41/G42Profile milling with compensationProfile path, Offset
Thread MillG02/G03Helical thread millingDiameter, Pitch, Depth

End Mill Types

Square End Mill

  • Sharp 90° corners
  • Slotting, profiling, pocketing
  • 2-4 flutes common

Ball Nose End Mill

  • Hemispherical tip
  • 3D contouring, finishing
  • Scallop height control

Bull Nose (Corner Radius)

  • Rounded corners
  • Stronger than square
  • Better surface finish

Roughing End Mill

  • Serrated flutes
  • High MRR
  • Chip breaking geometry

End Mill Specifications

ParameterDescriptionCommon Values
DiameterCutting diameter3mm - 50mm
FlutesNumber of cutting edges2, 3, 4, 6, 8
LOCLength of cut1×D to 4×D
OALOverall length38mm - 150mm
Helix AngleSpiral angle of flutes30°, 35°, 45°
ShankHolder interfaceWeldon, ER collet

Drilling Tools

Tool TypeApplicationSpeed RangeNotes
HSS Twist DrillGeneral purpose15-30 m/minLower cost, regrindable
Carbide DrillProduction drilling60-120 m/minHigher speed, longer life
Indexable DrillLarge holes, high MRR80-150 m/minReplaceable inserts
Center DrillStarting holes20-40 m/min60° or 90° point
Spot DrillPrecise start point30-50 m/min90°, 120°, 142° points
ReamerHole finishing8-15 m/minH7 tolerance capable
Tap (Cut)Thread cutting5-15 m/minRequires chip clearance
Tap (Form)Thread forming10-25 m/minNo chips, stronger threads

Speeds & Feeds

Surface Speed by Material

MaterialHSS (m/min)Carbide (m/min)Feed/Tooth (mm)
Aluminum 6061150-300300-10000.10-0.25
Mild Steel25-40100-2000.08-0.15
Stainless 30415-2560-1200.05-0.12
Tool Steel10-2050-1000.05-0.10
Cast Iron20-3580-1500.10-0.20
Titanium10-2030-600.05-0.10
Brass80-150200-4000.10-0.20
Plastic100-300200-5000.15-0.30
RPM Formula: RPM = (SFM × 1000) / (π × D)
Feed Rate: F = RPM × Flutes × Feed/Tooth

Workholding

Machine Vise

  • Standard 4", 6", 8" widths
  • Precision ground jaws
  • Kurt-style most common

Toe Clamps

  • Direct table clamping
  • Flexible positioning
  • For large/odd shapes

Rotary Table (4th Axis)

  • A-axis rotation
  • Indexing or continuous
  • Horizontal or tilting

5-Axis Workholding

  • Dovetail fixtures
  • 5-axis vises
  • Minimal obstruction

5-Axis Programming

RTCP / TCPM

Rotary Tool Center Point (RTCP) or Tool Center Point Management (TCPM) maintains the tool tip position as rotary axes move.

ControllerRTCP/TCPM CodeCancel Code
FANUCG43.4 Hxx or G43.5 HxxG49
SiemensTRAORI / TCARRTRAFOOF
HaasG234 (TCPC)G49
HeidenhainM128M129

Tilted Work Plane (G68.2)

G68.2 rotates the coordinate system to machine at an angle.

FANUC Format:
G68.2 X0 Y0 Z0 I_angle J_angle K_angle
Where I = rotation around X, J = around Y, K = around Z

Safe Distances Preview