How to Operate CNC Machines
A shop-floor walkthrough of how to operate CNC machines, from reading the drawing to cutting the first good part. Written for engineers and buyers who need to judge whether a supplier's process is under control, not just whether a spindle turns.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
What matters most
What to prepare before you operate a CNC machine
Operating a CNC machine starts at the drawing, not the control panel. Read the part print and confirm which dimensions are toleranced, which surfaces are datums, and where the critical fit is. A bracket with a ±0.1 mm bolt hole is a different job from a housing with a ±0.005 mm bore. That difference changes fixture choice, tool list, and how many checks you run during the cycle.
Check the material and stock size before clamping anything. Aluminum 6061 cuts clean at high spindle speed, while 17-4PH stainless work-hardens if the tool rubs instead of bites. If the stock is a casting or forging, the first operation has to establish a clean datum from rough surfaces, so leave 1.5–3 mm on faces that will be machined.
Confirm the machine is level, warmed up, and the coolant is at the right concentration. A cold machine grows as the spindle warms, which shows up as drift on tight bores. On a job held to ±0.005 mm, ten to fifteen minutes of warm-up running before the first cut is normal practice, and we schedule it that way rather than chase the number afterward.
- 1Read the tolerance stackKnow which features are truly critical before choosing the setup.
- 2Match stock to processCastings and forgings need a roughing pass that establishes a datum.
- 3Warm up the spindleThermal growth moves tight tolerances more than most operators expect.
Workholding and datum setup
Clamp the part so the cutting force pushes it into the fixture, not away from it. For a vise setup, seat the stock on parallels and tap it down before tightening, or the part lifts and your Z zero moves. For thin plates, support under the cut area; unsupported material will chatter and the finish will fail even if the dimensions hold.
Pick datums that will still exist after the first operation. If you face off the surface you touched off on, the second operation has nothing reliable to locate from. This is why shops machine a datum face and two edges in op one, then flip and locate on those faces in op two. On five-axis work, one setup can reach five faces, but the same rule applies to the rotary table center and the fixture bore.
For round parts on a mill-turn center, indicate the bore or the OD to within 0.01 mm before clamping. A three-jaw chuck with worn jaws can hold 0.05 mm runout, which is fine for a bushing blank and fatal for a bearing seat. Soft jaws bored in place on the machine hold far better concentricity than hard jaws on a rough casting.
- 1Push into the fixtureTool force should press the part against a solid stop.
- 2Keep datums aliveNever machine away the surface you located from.
- 3Indicate round partsBored soft jaws beat hard jaws when runout matters.
Work offsets and tool length setting
Set the work offset (G54 through G59) by touching off a known datum face and entering the machine position into the controller. Use a 3D taster or an edge finder for X and Y, and a gauge block or tool setter for Z. Write the numbers down. If the operator changes shift and the numbers are only in the control, nobody can verify them.
Tool length offsets matter as much as work offsets. Set every tool against the same reference, usually the table or a preset block, and let the control do the math. Mixing a probe-set length with a hand-set length is one of the most common causes of a tool driving into the table on the first rapid move.
After setting offsets, move to the safe Z position and step through the first few lines in single block with the feed override low. Watch the distance-to-go display. If the machine is heading somewhere unexpected, stop before it gets there. We treat the first approach of every new setup as a checkpoint, not a formality, and the same habit is worth building on any machine.
- 1Record offsetsPaper or digital log, but make it shareable across shifts.
- 2One reference for all toolsMixing preset methods causes crashes.
- 3Watch distance-to-goThe display tells you where the tool is going before it arrives.
Speeds, feeds, and depth of cut
Start from surface speed and chip load, not from a guess. For aluminum 6061, 300–500 m/min surface speed with a two-flute carbide cutter and 0.05–0.15 mm per tooth feed is a normal range. For 304 stainless, drop to 80–150 m/min and keep the feed per tooth high enough that the tool cuts instead of rubbing. Rubbing work-hardens stainless and dulls the edge fast.
Depth of cut depends on rigidity. On a small three-axis machine with a 500 × 500 × 450 mm envelope, a 6 mm end mill might take 1–2 mm axial depth. On a 16,000 rpm five-axis center with a shrink-fit holder, the same tool can take more, but only if the fixture is stiff. If you hear chatter, reduce radial engagement before you slow the spindle.
Coolant choice follows the material and the operation. Flood coolant controls heat on stainless and titanium. Aluminum often cuts better with high-pressure through-tool coolant or mist. Cast iron is frequently cut dry, because the chips are easier to manage and the dust is a health issue. Whatever you choose, keep it consistent through the run so thermal conditions do not change mid-job.
- 1Chip load over spindle speedToo light a feed rubs the edge and shortens tool life.
- 2Rigidity limits depthSmall machines and tall fixtures need lighter axial cuts.
- 3Match coolant to materialFlood for stainless, mist for aluminum, dry for cast iron.
Common operating problems and what causes them
A part comes out oversize on every feature. That usually points to a work offset or tool length error, not a worn tool. Check the offset against the setup sheet first, then check whether the tool pulled out of the holder. If the error is uniform and the offsets are right, re-measure the tool and reset the length.
A bore tapers or goes out of round. Look at fixture support and cutting force. A thin wall deflects under a heavy radial cut, so take a lighter roughing pass and leave 0.2–0.3 mm for a finishing pass at a lower feed. If the taper persists, check spindle runout and whether the tool holder is seated cleanly.
The finish is torn or smeared. On aluminum, that is often built-up edge from too low a speed or too little coolant. On stainless, it is usually work hardening from a dull or rubbing tool. Change the insert, increase feed per tooth, and confirm the tool is not dwelling in the cut.
Dimensions drift over a long run. Heat is the usual answer. Spindle and ball screw growth moves the tool relative to the part as the morning goes on. Log the first part and a mid-run part, and if the drift is consistent, add a warm-up cycle or adjust the offset mid-run rather than accepting the spread.
- 1Uniform size errorCheck offsets and tool pull-out before blaming the cutter.
- 2Taper or out-of-roundFixture support and cutting force, then spindle condition.
- 3Thermal driftMeasure early and mid-run, then compensate deliberately.
Step by step: running the first part
Follow this order on every new setup.
- 1Verify the program matches the partCheck program number, revision, and the setup sheet against the drawing. Confirm the work offset called in the program is the one you set.
- 2Simulate or dry run above the stockRun with rapids at 25–50% and single block on, or use the control's simulation. Look for wrong Z depths, missing tool changes, and moves that cross the fixture.
- 3Cut air at the first toolZero the Z offset 20–50 mm above the stock and let the first tool trace its path. Listen for abnormal load and watch the load meter.
- 4Take a light first cutRun a 0.5–1.0 mm depth pass, then stop and measure. Adjust the offset only if the measured size is outside the tolerance band.
- 5Measure and log the resultCheck the critical feature with the right instrument: calipers for ±0.1 mm, micrometers for ±0.01 mm, bore gauges or CMM for tighter work.
- 6Run the full cycle with checksCut the first complete part, then inspect before releasing the run. On tight work, re-check after the machine has been cutting for an hour.
- 7Confirm in-process monitoringSet tool wear offsets and a check interval so drift is caught on part 20, not part 200.
When to choose each setup approach
Use the narrowest setup that still holds the tolerance.
| Setup | Best for | Avoid when | Typical holding |
|---|---|---|---|
| 3-axis vise | Prismatic parts, one or two faces | Five faces needed in one op | ±0.02 mm |
| 4-axis with rotary | Parts with features on four sides | Heavy interrupted cuts | ±0.01 mm |
| 5-axis simultaneous | Complex contours, deep pockets | Simple flat plate work | ±0.005 mm |
| Mill-turn center | Shafts and round parts with flats | Large plate geometry | ±0.01 mm |
| Soft jaws, bored in place | Bearing seats, round bores | One-off rough blanks | ±0.005 mm |
| Vacuum or magnetic plate | Thin plates, low clamping force | Non-ferrous thin stock on magnet | ±0.02 mm |
Operate the setup, not just the control
If you want a supplier judged on setup discipline, offsets logs, and in-process checks rather than on machine count, send the drawing and we will return a quote with DFM feedback within 12 hours.
Questions engineers ask before running the job
How long does it take to learn to operate a CNC machine?
Loading a proven program, setting offsets, and running a simple job safely takes a few weeks of supervised practice on the same machine family. Programming toolpaths and choosing feeds and speeds for a new material takes longer, often months of varied work.
Do you need a license to operate a CNC machine?
In most countries there is no government license. Employers require demonstrated competence, and safety training is specific to the machine and the shop. The real gate is whether the operator can set offsets correctly and react when a cut sounds wrong.
Can you run a CNC machine from a DXF file?
A DXF gives geometry, not a toolpath. It has to be converted into a CAM program with tool selection, stepover, depth, and lead-in moves, then post-processed into G-code for the specific controller. Sending only a DXF leaves the machining decisions to the shop.
What should be checked before pressing cycle start on a new program?
Confirm the work offset and tool lengths, verify the program revision, run the simulation or a rapid-override dry run, and check that the first rapid move clears the fixture. Most crashes happen in the first thirty seconds of a new setup.
How do you hold ±0.005 mm on a production run?
You control heat, fixture stiffness, and tool wear. Warm the machine, keep the fixture rigid, take light finishing passes, and monitor the critical feature at a fixed interval. The tolerance comes from the whole system, not the control alone.
When should a job be moved from a three-axis to a five-axis machine?
When the part needs features on more than two faces, or when multiple setups would stack too much error. Five-axis also helps when a contour needs a constant tool axis to reach a deep pocket without a long, flexible tool.
Send the drawing, get a process plan
Upload your files and we will review tolerances, fixturing, and tool access before quoting. Uploads stay confidential and an NDA is available on request.
12-hour quote100% inspectionNo minimum order quantity