CNC Milling Basics for Students

From nervous to productive: how a CNC mill thinks (G54, G-code), workholding that doesn't ruin parts, tool selection, speeds-and-feeds math with a worked aluminium example, the setup sequence in order, and the safety rules that matter.

Written by Projectech7 min readPublished
For B.E./B.Tech Mechanical students using a CNC mill for the first time in the college workshop or for a project Topics: CNC, Milling, Machining
Illustration of a CNC milling machine cutting an aluminium part held in a vice, with callouts for work coordinates, spindle speed, feed rate and cutting tools.
Illustration generated for this guide.
In this guide

The CNC mill in your college workshop looks intimidating — an enclosure, a control covered in buttons, and a general understanding that mistakes cost tools and workpieces. But a CNC mill is just a very obedient, very literal machine: it does exactly what the program says, including the mistakes. Students who learn the fundamentals — coordinate systems, workholding, speeds and feeds, and safe setup — go from nervous to productive in a few sessions.

This guide covers the basics you need before your first supervised cut: how the machine thinks, how to hold work, how to choose tools and cutting parameters, and the safety discipline that keeps all ten fingers.

How a CNC mill thinks: axes, coordinates, G-code

A 3-axis mill moves in X (left-right), Y (front-back) and Z (up-down, with Z+ moving the spindle up, away from the part). Two coordinate ideas run everything:

  • Machine coordinates (G53): the machine's own absolute reference, set by homing. You rarely program in these.
  • Work coordinates (G54–G59): offsets you set to define your part's zero — typically a corner or center of the stock. All your programming happens in work coordinates. Touching off (finding the stock edges with an edge finder or probe and setting G54) is the fundamental setup skill.

G-code is the language: G0 (rapid move), G1 (linear feed move), G2/G3 (arcs), M3/M5 (spindle on/off), M8/M9 (coolant). A simple facing pass looks like:

G54 G90 G21 (work offset, absolute, metric)
M3 S2500 (spindle on, 2500 RPM)
G0 X-5 Y-5 Z5 (rapid to start)
G1 Z0 F200 (feed down to surface)
G1 X55 F400 (cut across)
G0 Z5 (retract)
M5 (spindle off)

Note: You will mostly generate G-code in CAM software (Fusion 360's Manufacture workspace is the student standard), not hand-write it. But you must be able to read it — when the machine does something unexpected, the G-code listing is the first place to look, and hand-written snippets (facing, drilling patterns) are faster than CAM for simple jobs.

Workholding: the job is won or lost here

More student parts are ruined by bad workholding than by bad programming. Options:

Method Suits Watch out for
Machine vice Rectangular stock, first ops Part must sit flat on parallels; tap down with a soft hammer; deburr the bottom face first
Parallels Raising work in the vice Chips under the part tilt it — clean everything
Clamps / step blocks on the table Large or irregular parts Clamp on solid material, not overhangs; mind the tool path vs clamp positions
Double-sided tape / superglue Thin sheet, PCBs, light cuts Light cuts only; heat releases it
Soft jaws Second ops, odd shapes Machine the jaw pocket to fit the part

Rules: the part must not move under cutting forces (if you can wiggle it by hand, the cutter will move it), must be supported against the cutting direction, and clamps must stay clear of the tool path — simulate the full program and watch for clamp collisions. For the second side (flip the part), indicate or edge-find again; never assume the flip is perfect.

Tools: what each mill does

Tool Used for Notes
Flat end mill Facing, profiling, slotting, pockets The workhorse; 2-flute for aluminium (chip clearance), 4-flute for steel
Ball nose end mill 3D contours, fillets Stepdown controls cusp height / surface finish
Drill / center drill Holes Always center-drill (spot) before drilling — twist drills walk
Chamfer mill Edge breaks, deburring Faster and cleaner than hand-deburring every edge
Face mill / fly cutter Large flat surfaces Few passes, excellent finish; watch the tram of the head

Tool holding: collets (ER32/ER16) for end mills — clean the collet and holder taper, tighten properly. A dirty collet lets the tool pull out mid-cut, which ruins the part and can throw the cutter.

Speeds and feeds: the calculation

Cutting parameters come from three numbers: spindle speed (RPM), feed rate (mm/min), and depth/width of cut. The physics starts with surface speed (how fast the cutting edge moves through material):

RPM = (Vc × 1000) / (π × D)

where Vc = cutting speed (m/min, from the tool/material tables), D = tool diameter (mm).

Feed = RPM × fz × z

where fz = feed per tooth (mm/tooth, from tables), z = number of flutes.

Starting values (carbide end mill, conservative student baselines — verify against your tool manufacturer's data):

Material Vc (m/min) fz per tooth (6mm end mill)
Aluminium (6061) 250–400 0.05–0.10mm
Mild steel (1020) 80–150 0.03–0.06mm
Stainless (304) 60–100 0.02–0.04mm (never dwell — work hardens)
Brass 200–300 0.05–0.08mm
Plastics (acrylic/Delrin) 150–250 0.05–0.10mm (watch melting — keep chips clearing)

Worked example: 6mm 2-flute carbide end mill in aluminium, Vc = 300m/min, fz = 0.07mm/tooth. RPM = 300000/(π × 6) ≈ 15,900 — but the college machine tops out at 6,000 RPM, so use 6,000. Feed = 6000 × 0.07 × 2 = 840mm/min. Depth: axial (stepdown) ≤ 1×D (6mm) roughing in aluminium, radial (stepover) ~40–60% D for slotting less (slotting is the hardest cut — full-width engagement; reduce feed ~30% in slots).

Listening to the cut: a good cut sounds steady; chattering (squealing/vibration) means too aggressive or too much stick-out — reduce depth or feed, minimize tool stick-out (the #1 chatter fix: the tool should protrude as little as possible). Rubbing (whining with no chips, work hardening, blue chips in steel) means feed too low or a dull tool — increase feed or replace the tool.

The setup sequence (do it in this order)

  1. Read the drawing; plan operations and workholding (which faces are datums?).
  2. Clean the table/vice; load and indicate the workholding.
  3. Load stock; tap down, tighten, verify it doesn't move.
  4. Load tools; set tool lengths (touch off on the part or a setter).
  5. Set work coordinates (G54) — edge-find or probe X, Y, Z.
  6. Load the program; simulate/dry-run (graphics simulation, then a slow single-block run above the part with Z offset up).
  7. Set speeds/feeds; coolant or air blast on.
  8. Run the first pass cautiously — hand on the feed override, eyes on the cut.
  9. Measure the first feature before continuing (adjust wear offsets, not the program, for small corrections).

Warning: A CNC mill can break tools, throw workpieces, and crush fingers without noticing. Non-negotiable rules: safety glasses always; no gloves near rotating spindles (gloves get caught — this is the rule students resist most, and it's the one that saves fingers); tie back hair, roll sleeves; never reach into the enclosure while the spindle turns; verify the program's first moves in single-block mode; know where the E-stop is before you press cycle start. Your workshop's safety induction overrides everything here — follow it.

Common mistakes

  1. Wrong work offset — cutting air, or cutting the vice. Touch off carefully, double-check G54, and prove the program above the part first.
  2. Too much tool stick-out — chatter, poor finish, broken tools. Choke up on the tool.
  3. No center drill before drilling — wandering holes, broken drills.
  4. Feeding stainless too slowly — work hardening ruins the tool; keep the chip load up.
  5. Climb vs conventional confusion — climb milling (cutter rotates into the feed direction) gives better finish and is standard on CNC (no backlash); conventional is for manual machines with backlash. Use climb on the CNC.
  6. Forgetting to deburr and break edges — sharp edges cut hands during assembly; a 0.5mm chamfer is a design feature.
  7. Measuring after the whole job — check critical dimensions as you go; offsets can correct drift mid-job.

Where to go from here

More project guides

More in Mechanical