How to Use CNC Machine Step by Step
This guide walks through how to use CNC machine step by step, from reading the drawing to handing off a first article. It is written for engineers and shop leads who need the setup sequence, the parameters that matter, and the mistakes that scrap parts.

Key takeaways
What the machine actually controls
A CNC machine moves a cutting tool along programmed coordinates. The controller reads G-code, converts each line into axis motion and spindle commands, and keeps the tool on the path the CAM system calculated. Everything else, fixturing, tool choice, offsets, is decided by the person setting up the job.
The axes are labeled X, Y and Z. X and Y position the tool in the horizontal plane, Z controls depth. A mill-turn center adds a spindle that can rotate the part, so the tool no longer needs to reach every face. That is what makes complex parts possible on a single setup.
The controller also tracks offsets, tool length and cutter radius. These values shift the programmed path to match the real part. Get one wrong and the machine will cut exactly where you told it to, which is the wrong place.
- 1G-codeThe instruction list the controller executes.
- 2Work offsetWhere the part sits in machine coordinates.
- 3Tool offsetLength and radius of each tool in the turret or carousel.
Reading the drawing before you touch the machine
Start with the drawing, not the machine. Identify the datums, the tightest tolerance, and any feature that cannot be reached from one direction. A bore with a ±0.005 mm tolerance needs a different strategy than a clearance hole with a ±0.1 mm tolerance.
Check the material next. Aluminum 6061 cuts freely at high spindle speeds. Stainless 316 work-hardens if the feed is too light, so you need a heavier chip load. Titanium Ti-6Al-4V runs hot and needs coolant and lower surface speed.
Decide the setup count before you write any code. Every extra setup adds a chance for offset error. If a feature needs four sides, a 5-axis center or a tombstone fixture may save two setups and a lot of scrap.
- 1Tightest toleranceSets the inspection plan and the machine choice.
- 2MaterialSets speeds, feeds and coolant.
- 3Setup countEach one adds offset risk.
Turning a model into a toolpath
CAM software converts the solid model into toolpaths. The operator sets the stock size, the work coordinate system, and the tool library. A mismatch between the modeled stock and the real blank is one of the most common causes of a crash.
Roughing removes most of the material. A 12 mm carbide end mill in aluminum 6061 can run at 8,000 rpm with a feed of 3,000 mm/min and a 6 mm depth of cut. In 4140 steel, drop to 2,500 rpm and 800 mm/min with a 2 mm depth of cut.
Finishing follows with a smaller stepover. A 0.2 mm stepover on a 10 mm ball nose tool leaves a surface around Ra 0.8–1.6 μm. If the drawing calls for Ra 0.2–0.8 μm, plan a separate finishing pass or a secondary operation.
- 1Stock modelMust match the real blank size.
- 2RoughingHeavy depth, moderate feed.
- 3FinishingSmall stepover, higher spindle speed.
Measuring the first part correctly
Measure the first part before you deburr it. A chamfer can hide a burr that only shows on the sharp edge, and it can also mask a size error if you measure across the chamfer instead of the flat.
Use the same datum the drawing uses. If the drawing calls out datum A as the bottom face, indicate that face on the granite plate. Measuring from a convenient edge instead introduces a cosine error that grows with distance.
Record every dimension you check, along with the tool number and offset value used. When the second part drifts, the log tells you whether the tool wore or the offset moved. Without it, you are guessing.
- 1Datum firstMatch the drawing, not the setup.
- 2Log offsetsTool number, offset value, measured size.
- 3Check before deburrDeburring can hide size errors.
How to use CNC machine step by step: the setup sequence
- 11. Inspect the blank and the fixtureCheck the blank size against the stock model. A 2 mm oversize blank can leave the first roughing pass cutting air on one side. Clean the vise jaws and the table. A chip under the jaw tilts the part and ruins parallelism.
- 22. Load the program and verify the tool listCompare the tool numbers in the program against the physical carousel. A T07 in the code that is actually T09 in the machine will crash the holder into the part. Check the tool length offset for each tool.
- 33. Touch off the work offsetUse an edge finder or a probe to set X and Y. Set Z with the tool that will cut the first feature. Confirm the offset by moving to a known point and reading the position screen. A 0.1 mm error here shows up on every feature.
- 44. Run a dry run with the tool clearRaise Z by 50 mm above the highest point of the part. Run the program at rapid override and watch the distance-to-go display. Any rapid move that drops below the part envelope is a crash waiting to happen.
- 55. Cut air on the first passStart the spindle and run the first tool with the feed override at 25%. Listen for chatter and watch the load meter. If the load spikes above 70% on a roughing pass, stop and reduce the depth of cut.
- 66. Cut the first feature and measureLet the first pocket or hole complete. Stop the program. Measure the feature against the drawing. If it is off by more than 0.05 mm, adjust the offset before running the rest of the part.
- 77. Run the full part, then the second partComplete the cycle and inspect all critical dimensions. Run a second part without changing anything. If the second part drifts, the issue is tool wear or thermal growth, not the offset.
Which setup is right for the part
Match the part geometry to the machine before you write the program.
| Part feature | Best setup | Why | Watch out |
|---|---|---|---|
| Flat plate, holes on one face | 3-axis mill | Fastest cycle, simple fixture | Thin plate may lift |
| Undercut or side slot | 4-axis or 5-axis | Tool reaches without a second setup | Check tool holder clearance |
| Five-sided part | 5-axis simultaneous | One setup, no re-fixturing error | Programming time is longer |
| Shaft with cross holes | Mill-turn center | Turning and milling in one cycle | Bar puller setup takes time |
| Thin wall under 1 mm | 3-axis with light passes | Low radial load keeps the wall straight | Chatter shows on the finish |
| Deep pocket, depth over 5× diameter | 3-axis with a long reach tool | Reach beats speed here | Tool deflection grows with depth |
| Tight bore, ±0.005 mm | 5-axis or jig borer | Rigid setup holds the size | Warm spindle changes size |
| Prototype, one piece | 3-axis or 5-axis | No fixture cost, quick turnaround | Manual deburr required |
The setup decides the part, not the spindle speed
Get the offset, the fixture and the dry run right, and the cutting parameters become a tuning exercise. Skip them and no feed rate will save the part.
Common questions
How long does it take to learn how to use CNC machine step by step?
An operator can run a proven program after a few days of supervised setup. Writing safe G-code and choosing speeds and feeds for a new material takes months of practice.
The fastest path is to run one part family many times. Repetition teaches you what a good cut sounds and looks like.
What is the most common cause of a CNC crash?
A wrong work offset or a wrong tool length offset. The machine follows the program exactly, so a 10 mm error in Z drives the tool 10 mm too deep.
A dry run with the tool raised 50 mm above the part catches most of these errors before the spindle turns.
Do I need 5-axis for a simple part?
No. A 3-axis mill handles flat plates, pockets and through holes faster and cheaper. Keep 5-axis for undercuts, five-sided features and tight bores that need one setup.
Adding axes adds programming time and fixture complexity. Use them only when the geometry demands it.
How do I choose feeds and speeds for a new material?
Start from the tool maker's surface speed for that material, then adjust for rigidity. Aluminum 6061 tolerates high speed. Stainless 316 and titanium need lower surface speed and a heavier chip load.
Increase the feed until the chip looks like a comma, not dust. Dust means the tool is rubbing and will wear fast.
When should I stop and re-fixture instead of pushing the cut?
When the load meter stays above 70%, when the finish shows chatter, or when the part moves in the vise. A stalled tool or a shifted part costs more than a second setup.
If the tool deflects more than 0.02 mm, the bore will not be round. Re-fixture with more support.
Send us your drawing and get a setup plan
We review your part, pick the right machine and quote within 12 hours. Uploads stay confidential, and an NDA is available on request.
12-hour quoteNo minimum order quantity100% inspection