How to Set Up a CNC Milling Machine
This guide shows how to set up a CNC milling machine for a first run that holds tolerance. You will learn the order of work: clean and inspect, clamp the blank, load tools and offsets, zero the work coordinate system, then cut a first article before the run. Written for machinists and process engineers working to ±0.005 mm.

Key takeaways
What It Means to Set Up a CNC Milling Machine
To set up a CNC milling machine is to prepare everything the control needs before the first chip: a clean machine, a located blank, known tool geometry, a defined work coordinate system, and a proven program. The cutting itself is the fast part. Setup is where most scrap is created.
A typical 3-axis setup on a 500 × 500 × 450 mm machine takes 30 to 90 minutes for a simple vise job. A 5-axis job with a tombstone, multiple work offsets, and a probe routine can take 3 to 6 hours. The spread comes from workholding and verification, not from touching off tools.
The order matters. Cleaning, blank preparation, and program checks come first because they are cheap. Tool offsets and coordinate zeroing come next because they depend on the fixture. The first-article cut comes last because it validates everything above it.
If you skip a step, the error usually shows up later and costs more. A chip under a vise jaw shows up as a taper in the part. A wrong tool offset shows up as a crash. A stale program revision shows up as a feature cut in the wrong place.
- 1Machine and tableWipe the table, stone any burrs, and check the vise jaws for dents.
- 2BlankDeburr all edges and check stock size against the drawing before clamping.
- 3ProgramConfirm the revision number on the control matches the released drawing.
- 4ToolsVerify each tool number, geometry, and holder against the tool list.
Choosing Workholding for the Setup
Workholding decides how much of your tolerance budget is left for cutting. A machined soft jaw in a 150 mm vise holds most prismatic parts under 200 mm well. It gives you a repeatable stop, good access to five faces, and a clamping force you can control with a torque wrench.
Thin walls and long parts need support, not more clamp pressure. Vacuum chucks and fixture plates with M6 or M8 grid holes work better for plate work under 6 mm thick. For anything long and slender, support the underside with adjustable jacks and clamp over the strongest section, not the middle of a thin web.
A 5-axis job usually runs on a tombstone or a Ø400 mm rotary table. Here the blank must be located relative to the rotary centerline, not just to a vise jaw. Measure the blank position in the machine and record it. If the part comes off for deburring, you need that record to put it back.
Avoid clamping on a finished surface. It marks the part and it loads the feature you just cut. Plan the setup so the clamping area becomes a face that gets machined later, or use a fixture that locates on a datum hole instead.
- 1Vise with soft jawsBest for prismatic parts under 200 mm with parallel sides.
- 2Fixture plateBest for thin plates and parts with hole patterns to locate on.
- 3Tombstone or rotaryBest for 4- and 5-axis work with multiple faces.
- 4Vacuum chuckBest for thin, flat parts that cannot take clamp marks.
Tool Offsets and the Work Coordinate System
Tool length offsets tell the control where each tip sits relative to the spindle gauge line. Set them on a presetter if you have one, or touch off on a known surface in the machine. For a 10 mm end mill in aluminium, a 0.01 mm error in length changes the floor height by 0.01 mm. That is inside a ±0.005 mm callout, so touch off carefully and re-check.
Diameter offsets matter for cutter compensation. Measure the actual cutting diameter, not the nominal size. A 6 mm end mill that cuts 5.97 mm will leave a 0.03 mm error on a contour if you use the nominal value. For finishing passes, enter the measured value and let the control compensate.
The work coordinate system defines where the part sits in machine space. Touch off X, Y, and Z on a known datum, then verify with a probe or an indicator. On a vise job, set Z on the top of the blank and record the actual stock thickness. If the blank is 0.2 mm over nominal, the program will cut 0.2 mm more from the top.
Write the offset numbers down. On a 5-axis job with four work offsets, a single transposed digit will send the tool into the fixture. A paper or digital setup sheet also lets the next operator repeat the job without re-deriving every number.
- 1Length offsetsSet every tool before zeroing the part. Re-check the first tool after the run.
- 2Diameter offsetsUse measured values, especially for finishing and cutter compensation.
- 3Work coordinate systemTouch off on a clean datum and verify with a probe or indicator.
- 4Setup sheetRecord offsets, stock size, and fixture position for the next run.
Dry Run and First-Article Checks
A dry run is not optional on a new setup. Raise Z by 50 to 100 mm, run the program with rapid override at 25 percent, and watch the distance-to-go readout. This catches wrong offsets, wrong tool numbers, and a program that reaches outside the part envelope. It takes five minutes and prevents most crashes.
After the dry run, cut the first part with a conservative feed and speed. Then measure the features that matter: datums, hole positions, wall thickness, and any tight tolerance. Use the same measurement method the drawing calls out. A caliper reading is not the same as a CMM reading on a position tolerance.
If the first part is out, decide whether the error is constant or variable. A constant offset means the work coordinate system or tool offset is wrong. A variable error across the part means the fixture moved or the part deflected. Fix the cause, not the number, before you run the batch.
For production runs, keep the first-article report with the setup sheet. At GreatLight, every job runs a raw material check, in-process monitoring, and final inspection, and reports are available on request. That is how a 99.99 percent qualification rate is held across prototype and 10,000+ part runs.
How to Set Up a CNC Milling Machine, Step by Step
Follow the order. Each step assumes the one before it is done.
- 1Clean and inspect the machineWipe the table and vise with a lint-free cloth. Stone any burrs on the table surface. Check the spindle taper for chips and the jaws for dents. A 0.01 mm chip under a jaw becomes a 0.01 mm taper in the part.
- 2Prepare and measure the blankDeburr all edges. Measure stock thickness and width, and record the values. If the blank is 0.2 mm over nominal, adjust the program or the Z zero before cutting.
- 3Confirm the program and tool listMatch the program revision to the released drawing. Check every tool number, holder, and geometry against the tool list. Load tools in the order the program calls them.
- 4Mount and locate the workholdingClamp the vise or fixture, indicate it to within 0.01 mm, and set the stop. For a rotary job, locate the blank relative to the rotary centerline and record the position.
- 5Set tool length and diameter offsetsTouch off or use a presetter. Enter measured diameters, not nominal. Re-check the first tool after the run. Keep every offset in the setup sheet.
- 6Zero the work coordinate systemTouch off X, Y, and Z on a known datum. Verify with a probe or indicator. For multiple offsets on a tombstone, verify each one before running.
- 7Dry-run the programRaise Z by 50 to 100 mm, set rapid override to 25 percent, and watch distance-to-go. Look for travel outside the part envelope and wrong tool changes.
- 8Cut and measure the first articleCut with conservative feed and speed. Measure datums, hole positions, and tight features. If the error is constant, fix the offset. If it varies, fix the fixture.
CNC Milling Machine Setup Checklist by Job Type
Use the column that matches your job. Each row is a setup action.
| Setup action | 3-axis vise job | 5-axis rotary job |
|---|---|---|
| Clean table and jaws | Required | Required |
| Indicate fixture | Vise within 0.01 mm | Rotary centerline within 0.01 mm |
| Blank prep | Deburr, measure stock | Deburr, measure, mark datum |
| Tool offsets | Length and diameter per tool | Length, diameter, and orientation |
| Work offsets | One G54 set | Multiple offsets, all verified |
| Dry run | Z +50 mm, 25% rapid | Z +100 mm, 25% rapid, check rotation |
| First article | Measure datums and walls | Measure datums, walls, and rotary features |
| Setup sheet | Record offsets and stock size | Record offsets, stock, and rotary position |
A setup is only as good as its first part
Get the order right, verify every offset, and measure the first article before the batch. If the part needs 5-axis access or tolerances below what your machine holds, send the file out and let the setup run on the right equipment.
Setup Questions Engineers Ask
How long does it take to set up a CNC milling machine?
A simple 3-axis vise job on a 500 × 500 × 450 mm machine takes 30 to 90 minutes, including tool offsets and a first-article check. That assumes the fixture and program already exist.
A 5-axis job with a tombstone, multiple work offsets, and a probe routine takes 3 to 6 hours. If the fixture has to be built or the program has to be proven, add days, not hours.
Do I need special training to set up a CNC milling machine?
You need to read a drawing, use a micrometer and indicator, and understand G54-style work offsets and tool length offsets. Those are the core skills. Machine-specific training covers the control panel and the probe routines.
The risky part is not the control. It is deciding whether a fixture is rigid enough and whether the first part is right. That judgment comes from running jobs and measuring the results.
What is the difference between 3-axis and 5-axis setup?
A 3-axis setup locates the part in one orientation against a vise or plate. A 5-axis setup locates the part relative to a rotary centerline and often uses several work offsets in one program.
Five-axis work adds two checks: the rotary centerline position and the tool orientation. Both must be verified before the first cut. The payoff is fewer setups and better access to angled faces.
Can a beginner set up a CNC milling machine alone?
A beginner can handle a simple vise job in aluminium with a proven program, a clear tool list, and a first-article check. Start there and keep the dry run in the routine.
Do not start with a 5-axis job, a thin-wall part, or a hard material. Those setups punish small errors with scrap or a crash, and the feedback is expensive.
How do you keep setup accuracy repeatable across a batch?
Write a setup sheet with every offset, the stock size, the fixture position, and the measurement method. The next operator repeats the numbers instead of re-deriving them.
Check the first part of every run against the sheet. If a dimension drifts, the sheet tells you whether the offset moved or the fixture did.
When should the setup be done by the machine shop instead of in-house?
If the part needs 5-axis access, tight position tolerances, or a fixture you do not have, send it out. Setup time and fixture cost are then spread across the shop's existing capability.
At GreatLight, quoting and DFM analysis come back within 12 hours, production can start within 24 hours, and parts ship in 3 to 5 days. No minimum order quantity, from one prototype to 10,000+ parts.
Send us the drawing, get a quote in 12 hours
Upload your CAD file and we return a quote plus a free DFM analysis within 12 hours. Uploads stay secure and confidential, and an NDA is available on request.
12-hour quoteNo minimum order quantity100% inspection