Understand CNC machining operations
This page explains how a CNC machine actually removes metal: how it reads a program, moves its axes, and picks a cutting operation. It is written for design engineers and buyers who need to judge whether a part suits milling, turning, drilling, or a grinder. After reading it, you can match a feature on your drawing to the operation that can produce it, and spot the features that no single setup can hold.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
Key takeaways
What happens inside a CNC machine during cutting
A CNC machine does not think about the part. It executes a list of coordinates and switching commands. The chain starts with a 3D model, usually STEP or IGES. CAM software reads that model, lets a programmer choose tools and passes, then writes G-code. The post-processor is the part that matters: it translates the generic toolpath into the exact dialect your controller understands, including arc formats, tool-change sequences, and work offsets.
Once the file is loaded, the controller reads it line by line and commands the servo motors. Each linear axis has a ball screw and a feedback scale or encoder. The controller compares commanded position with actual position thousands of times per second and corrects the difference. That closed loop is why a machine can hold ±0.005 mm on a good day and still drift when the room warms up by 5 °C.
The spindle is the second half of the story. It holds the tool and spins it at a set speed, while the feed rate decides how fast the tool travels through the material. Cutting speed and chip load are chosen from the material, the tool diameter, and the tool coating. Run a 6 mm carbide end mill in 6061 aluminium at 12,000 rpm and 2,500 mm/min and the chips fly clear. Run the same tool in 316 stainless and those numbers become a broken tool.
Coolant, rigidity, and workholding decide whether the numbers on paper survive contact with metal. A thin wall will deflect under cutting force no matter how accurate the axis is. A part held in a vise on one side only will move when the second side is cut. Understanding CNC machining operations means understanding these limits before blaming the machine.
- 1Model to G-codeSTEP or IGES in, post-processed code out.
- 2Closed-loop controlPosition is measured and corrected continuously.
- 3Cutting dataSpeed and feed depend on material and tool.
- 4RigidityWorkholding and wall thickness set the real limit.
How many axes a CNC machining operation needs
A 3-axis machine moves the tool in X, Y, and Z only. The part stays in one orientation. This covers a large share of real work: plates, brackets, housings with features on one face, and any part you can reach from a single direction. It is also the cheapest and fastest option, because setup is simple and the machine is rigid.
A 4-axis machine adds rotation, usually around the X axis. The part can be indexed to a new face without being unclamped. This is how you drill a ring of holes around a shaft or cut flats on a cylinder. Indexing is a discrete move: the table rotates, locks, then cuts. It is not the same as continuous motion.
A 5-axis machine moves the tool and the part at the same time, tilting the tool relative to the surface. That lets a short, stiff tool reach deep pockets and cut complex curved surfaces in one setup. It also lets the machine keep the tool perpendicular to a sloped face, which improves finish and tool life. The trade-off is programming time and a machine that is more sensitive to thermal drift.
For parts with features on four or five faces, one 5-axis setup often beats three 3-axis setups. Each re-clamp in a 3-axis process adds a datum error, and those errors stack. For a simple plate, the opposite is true: 5-axis adds cost with no benefit.
- 13-axisBest for flat parts and single-face features.
- 24-axisIndexed rotation for holes around a shaft.
- 35-axisContinuous tilt for deep pockets and curved faces.
- 4Setup countFewer setups usually means tighter true position.
Milling, turning, drilling, and grinding compared
In milling, the tool rotates and the workpiece is usually fixed. A multi-flute end mill sweeps sideways through the material, leaving a flat floor or a vertical wall. Face milling squares up a top surface. Pocket milling clears a cavity with a series of offset passes. The tool is slender relative to its length, so deep pockets need a larger tool or a reduced depth of cut to avoid chatter.
In turning, the workpiece rotates and a single-point insert moves along the axis. This is the natural process for round parts: shafts, bushings, pins, and fittings. Turning holds diameter very well, often better than milling holds a width, because the cutting force is steady and the tool is supported close to the cut. A mill-turn center combines both, so a part can be turned and then milled without a second machine.
Drilling plunges a rotating tool straight into the material. A standard twist drill makes a hole with a 118° or 135° point and a tolerance that is looser than most engineers expect. If the hole is a bearing seat or a dowel fit, drill undersize and then bore or ream it. Reaming removes a few hundredths of a millimeter and produces a round, straight hole with a fine finish.
Grinding uses an abrasive wheel rather than a toothed cutter. It removes very little material but holds tight size and low roughness, often Ra 0.2–0.8 μm. It is the operation you add after heat treatment, when the part is too hard to cut with carbide. It is slow and it needs a dedicated machine, so it is used only where the drawing demands it.
- 1MillingTool spins; good for pockets, slots, and faces.
- 2TurningPart spins; best for round diameters.
- 3Drilling and reamingReam after drilling when the hole must fit.
- 4GrindingFor hard material and Ra below 0.8 μm.
How tolerance and surface finish are actually held
Tolerance and finish come from different sources. Size accuracy depends on machine geometry, thermal stability, and tool wear. Surface finish depends on feed per tooth, tool nose radius, spindle speed, and whether the tool is chattering. A part can be dead on size with a rough surface, or smooth and slightly oversize. Treat them as two separate requirements on the drawing.
In-process measurement catches drift before it becomes scrap. A probe can touch off a datum after roughing and shift the work offset before finishing. For long runs, the operator checks a first article, then samples at set intervals. At GreatLight, every part is inspected before shipment, and reports are available on request. Raw material certificates are checked when the bar stock arrives.
Thermal growth is the quiet source of error. A spindle that has run for two hours is longer than a cold one. A 1,000 mm aluminium part grows about 0.023 mm per 1 °C, so a shop that swings 8 °C between morning and afternoon will see the part move more than the tolerance. That is why tight work is often scheduled after the machine has warmed up, and why the inspection room is kept at 20 °C.
Tool wear moves the cut in a predictable direction. On a turning insert, the nose wears back and the diameter grows. On an end mill, flank wear increases cutting force and pushes the wall. Keeping a tool-life log and replacing tools on a count, not on a hunch, is what keeps a 10,000-part run inside ±0.005 mm from the first piece to the last.
- 1Probe for datumsRe-zero after roughing, before finishing.
- 2Thermal controlWarm-up cycles and a 20 °C inspection room.
- 3Tool-life countingReplace on count, not on feel.
- 4Reports on requestDimensional and material documentation.
How material choice changes the operation
Aluminium is the easy case. Grades such as 6061-T6, 7075, and 6082 cut fast, throw chips cleanly, and take a fine finish without much effort. Cutting speeds are high, so cycle times are short. The catch is that aluminium is soft and gummy at low speed, so a tool that rubs instead of cuts will weld material to the edge and tear the surface.
Stainless steel behaves differently. Grades 303, 304, 316, and 17-4PH work-harden at the cut. If the tool pauses in the cut, the surface gets harder and the next pass is worse. The fix is a constant feed, a sharp tool, and enough coolant. 316L and 17-4PH are common in medical and marine parts, and both reward a rigid setup more than a fast one.
Titanium and Inconel sit at the hard end. Ti-6Al-4V (TC4) has low thermal conductivity, so heat stays in the tool edge. Cutting speeds drop to a fraction of aluminium values and tool life is measured in minutes. Inconel is worse. These materials are machined with high-pressure coolant, conservative depths of cut, and frequent tool changes. They are also where a 5-axis machine earns its cost, because fewer setups mean fewer chances to scrap an expensive part.
Plastics such as POM, PEEK, ABS, and PC machine quickly but behave unlike metal. They expand with heat, so a heavy cut can leave an oversize part that shrinks back. PEEK and carbon fibre are abrasive and wear tools fast. Sharp, polished tooling and air blast instead of flood coolant usually give the best result.
- 1AluminiumFast, clean cuts; avoid rubbing at low speed.
- 2StainlessWork-hardens; keep the feed constant.
- 3Titanium and InconelHeat stays in the edge; slow down and cool hard.
- 4PlasticsThermal growth and abrasive fillers dominate.
Step by step: how a part moves through the shop
- 1Review the drawingCheck datums, tolerances, and finishes. Flag any feature that needs a second setup. A DFM review usually turns up one or two changes that save a setup.
- 2Choose the stockPick bar, plate, or near-net forging. Leave 0.5–1 mm per side for finishing on small parts, more on large ones, so the part can be squared up and re-datumed.
- 3Rough the partRemove most of the material with a large tool and a heavy depth of cut. Leave 0.3–0.5 mm on surfaces that will be finished, so the finishing pass cuts cleanly.
- 4Stress relieve if neededThin or asymmetric parts can move after roughing. A stress-relief cycle between roughing and finishing keeps flatness in check.
- 5Finish and re-datumProbe the part, shift the work offset, and cut the finishing passes. This is where tolerance is actually set, not during roughing.
- 6Deburr and finishRemove sharp edges, then apply anodizing, plating, bead blasting, or laser marking. Marking needs a character height of at least 1.5 mm.
- 7Inspect and shipMeasure the critical dimensions against the drawing, record the results, and pack the parts. Reports are available when the drawing calls for them.
Which CNC machining operation fits which feature
Match the feature on the drawing to the process that can hold it.
| Feature on the drawing | Typical operation | Holds well | Watch out for |
|---|---|---|---|
| Flat face, open pocket | 3-axis milling | ±0.02 mm, Ra 1.6 μm | Deep pockets need a long, thin tool |
| Round shaft or bushing | CNC turning | ±0.01 mm on diameter | Slender parts deflect; use a steady rest |
| Hole for a dowel pin | Drill then ream | H7 fit, Ra 0.8 μm | Drilling alone is too loose for a fit |
| Holes around a cylinder | 4-axis indexed milling | ±0.02 mm true position | Each index adds a small angular error |
| Curved, sloped surface | 5-axis simultaneous milling | ±0.005 mm, Ra 0.8 μm | Programming and verification take time |
| Hardened part after heat treat | Grinding | ±0.005 mm, Ra 0.2–0.8 μm | Slow; needs a dedicated machine |
The rule we use when quoting
If a part has features on one or two faces and a tolerance looser than ±0.02 mm, a 3-axis mill or a lathe is the right answer. If it has features on four or five faces, curved surfaces, or a tolerance near ±0.005 mm, spend the money on 5-axis and one setup. Fewer setups beat a faster spindle almost every time.
Questions engineers ask about CNC machining operations
Can one CNC machine do milling and turning?
A mill-turn center can do both on the same part without unclamping it. It holds a rotating spindle for milling and a turret for turning. This is useful for parts that have a turned body with milled flats or cross-holes.
A standard milling machine cannot turn, and a standard lathe cannot mill a pocket. If your part needs both, either use a mill-turn center or plan for two setups and accept the extra datum error.
How tight a tolerance can CNC machining hold in production?
For most materials and part sizes, ±0.005 mm is achievable on critical dimensions with the right machine and a controlled shop temperature. That is roughly ±0.0002 in.
Not every dimension needs that. Applying a tight tolerance to a non-critical feature adds cost and inspection time without improving the part. Mark only the dimensions that matter.
Why does my part come back with a rough surface when the size is right?
Size and finish come from different variables. A tool can cut to the right dimension while chattering, which leaves a rough surface. Feed per tooth, tool nose radius, and tool overhang are the usual causes.
If the drawing calls for Ra 0.8–1.6 μm, that is a standard machined finish. Anything below Ra 0.8 μm usually needs a finishing pass with a smaller stepover or a grinding operation.
When should I choose grinding instead of milling?
Choose grinding when the part is hardened after heat treatment, or when the drawing asks for Ra below 0.8 μm, or when flatness and parallelism must be very close.
Grinding removes very little material per pass and needs a dedicated machine, so it is slower and costs more. For soft material and normal tolerances, milling or turning is the better choice.
Does a 5-axis machine always give a better part?
No. For a simple plate with holes on one face, a 3-axis machine is faster and just as accurate. The advantage of 5-axis shows up when the part has features on several faces, deep pockets, or curved surfaces.
The real gain is setup reduction. Going from three fixtures to one removes two chances to misalign the part, and that is often worth more than any improvement in spindle speed.
What do you need to quote a CNC machining job?
A 3D model in STEP or IGES plus a 2D drawing with tolerances, material, finish, and quantity. The drawing tells us which dimensions are critical; the model tells us the geometry.
We return a quotation and a free DFM analysis within 12 hours. There is no minimum order quantity, so a single prototype and a 10,000-part run are both fine. Uploads stay confidential, and an NDA is available on request.
Send us your drawing and we will tell you which operation it needs
Upload a STEP file and a drawing. You get a quotation and a free DFM analysis within 12 hours, with a note on which operations we would use and why.
12-hour quoteNo minimum order quantity100% inspection before shipmentNDA on request