CNC machine operation: basic knowledge
This page explains what actually happens between a CAM file and a finished metal part. It is written for design engineers, process engineers and buyers who need to judge whether a feature is machinable, why a tolerance drifts, and when a shop should push back on a drawing. No machine experience required.

How the machine turns a program into a cut
The starting point of CNC machine operation basic knowledge is simple: the machine does not know what a part is. It only knows where the tool tip should be at a given moment. A CAM system converts the solid model into G-code, a list of coordinates plus feed, speed and auxiliary commands. The controller reads that list block by block and turns each block into motion.
Internally the controller runs a closed position loop. A servo drive compares the commanded position from the interpolator against feedback from a glass scale or encoder, and corrects the difference thousands of times per second. Accuracy depends on that loop, not on the G-code alone. Backlash, thermal growth and servo tuning all show up as real dimensional error.
The interpolator decides the path shape. G01 gives a straight line at a set feed. G02 and G03 give arcs. G00 is rapid positioning, never a cutting move. On a 3-axis machine the tool axis stays vertical, so a deep pocket with a vertical wall needs a tool long enough to reach the floor, and long tools deflect.
One consequence matters for design work: the controller only executes the geometry it is given. A CAM programmer who takes a wide stepover to save cycle time leaves scallops the controller cannot remove. The machine is accurate; the cutter path was coarse. Most surface complaints trace back to the path, not the servo.
Work coordinates, tool length and where errors enter
Machine coordinates are fixed to the machine. Work coordinates are set per job through G54 to G59 offsets, which tell the controller where the part corner sits. Get that offset wrong by 0.2 mm and every feature shifts by 0.2 mm. The part is not scrapped by the cutter; it is scrapped by the setup.
Tool length offsets matter just as much. Each tool is measured and stored, so the controller knows how far the tip sits below the spindle gauge line. A worn or wrongly measured tool changes Z depth across the whole program. Shops that re-measure tools between batches catch this early. Shops that trust a number from last month do not.
Workholding adds the third error source. A vise with 0.03 mm of jaw lift tilts a thin plate, so the top face cuts clean and the bottom face goes thin on one side. Soft jaws, vacuum plates and dedicated fixtures exist for exactly this reason. The setup is part of the process, not a preliminary step.
Rotation offsets come in on 4-axis and 5-axis work. Once a trunnion or rotary table turns, the controller must know the center of rotation in machine space. If that center is off, features machined in the rotated orientation land in the wrong place relative to features cut flat. This is why 5-axis setup takes longer and why the first article matters.
Feeds, speeds and the limits they set
Cutting speed is surface speed, expressed in m/min. Feed is the advance per tooth, expressed in mm per tooth, multiplied by the number of teeth and the spindle speed. These two numbers drive tool life and surface finish. Aluminum 6061 runs fast, often 300 to 500 m/min with a two or three flute cutter. Stainless 316 runs far slower because it work-hardens at the cut.
Rigidity decides how hard you can push. A 500 × 500 × 450 mm machine with a 40-taper spindle behaves differently from a 4,000 × 400 × 150 mm travel machine with a long reach. The long machine deflects more, so the same parameters that sing on a compact machine chatter on the big one. Chatter leaves a regular pattern on the wall and shortens tool life.
Heat is the quiet variable. Titanium and Inconel conduct heat poorly, so the cutting edge absorbs most of it. Feeds that are too light rub instead of cut, and the edge fails early. Flood coolant helps on stainless; high-pressure through-tool coolant helps on deep holes. Aluminum can run with mist or air in many cases.
Surface finish follows from the parameters plus the tool. Roughing at Ra 3.2 μm is normal. Semi-finishing gets to Ra 1.6 μm. A fine finishing pass with a sharp, balanced tool can reach Ra 0.8 μm and, on the right geometry, Ra 0.2–0.8 μm. Asking for Ra 0.2 μm on a deep cavity is a different conversation from asking for it on a flat face.
What 3, 4 and 5 axes each change
A 3-axis machine moves X, Y and Z. It is the workhorse for plates, housings, brackets and parts with features reachable from a few setups. It is fast to program and easy to inspect. Its weakness is any feature at an angle to the tool axis, because that feature needs a second or third setup with its own offset error.
A 4-axis mill adds rotation about one axis, usually A. This lets one setup cut around a cylindrical or prismatic part. Shafts, splined bodies and parts with holes on four sides become single-setup jobs. The trade-off is that the rotary center becomes a new error source, and the part must be rigid enough to hold in the rotary fixture.
Simultaneous 5-axis adds two rotary axes that move while cutting. This is what makes undercut walls, contoured impeller blades and deep pockets with drafted walls possible in one setup. Tool axis control also lets a short, stiff tool reach a deep feature by tilting. That is often the real benefit, not the geometry itself.
Positioned 5-axis, sometimes called 3+2, is different. The rotary axes index to an angle and lock, then the machine cuts a 3-axis path. It gets most of the setup reduction of full 5-axis at lower programming cost. For a part with many angled faces but no true compound curvature, 3+2 is usually the better route.
Boundaries: material, geometry and tolerance
Not every feature belongs on a milling machine. A deep slot narrower than the cutter length-to-diameter ratio allows will chatter or snap. A sharp internal corner cannot be cut by a round tool; the corner radius equals the tool radius at minimum. Drawings that call for a true sharp internal corner force a secondary operation or an EDM step.
Tolerance has a floor set by the machine, the material and the feature. ±0.005 mm is achievable on a rigid setup with a stable material and a controlled temperature. The same tolerance on a long thin wall, or on a part that moves after clamping, is not realistic. Thin walls deflect under cutting force and spring back when the vise opens.
Material behavior matters. Aluminum 6061 and 7075 cut cleanly and hold size well. Stainless 316 and 17-4PH work-harden, so light passes dull the tool. Titanium TC4 and Inconel 718 are abrasive and slow, and they need sharp edges and generous coolant. Plastics like POM and PEEK cut easily but move with heat, so roughing and finishing may need separate passes.
The practical boundary is often economics, not physics. A feature might be machinable with a 3-hour cycle and a dedicated fixture. At one prototype that is fine. At 10,000 parts a year the same feature may be better cast or formed. Knowing which side of that line a part sits on is the reason engineers learn machine operation at all.
Choosing an axis configuration and process route
Match the part geometry and volume to the setup that holds tolerance at a sane cost.
| Part characteristic | 3-axis | 4-axis / 3+2 | Simultaneous 5-axis |
|---|---|---|---|
| Flat plate, holes on one face | Best fit | Overkill | Overkill |
| Holes on four sides of a block | Needs 3+ setups | Best fit | Works, costs more |
| Cylindrical shaft with cross holes | Hard to hold | Best fit | Works, costs more |
| Impeller blade, compound curve | Not feasible | Rarely enough | Best fit |
| Deep pocket, drafted walls | Long tool, chatter | Partial reach | Short tool, tilted |
| Prototype, 1 to 5 parts | Fastest to program | Good if geometry fits | Slow setup |
| 10,000 parts per year | Check fixture cost | Good balance | Only if geometry demands |
| Sharp internal corner | Tool radius limits | Tool radius limits | Tool radius limits |
What this means for your drawing
Pick 3-axis when the geometry is reachable from a few faces and cost matters most. Move to 4-axis or 3+2 as soon as angled features would otherwise need three setups, because setup error usually costs more than cycle time. Choose simultaneous 5-axis only when the geometry or the tool reach genuinely requires it. If a feature is sharp-cornered, thin-walled or tolerance-tight beyond the process floor, change the design rather than the machine.
Questions engineers ask next
What tolerance can a CNC machine actually hold?
On a rigid setup, with a stable material and controlled temperature, ±0.005 mm is reachable on critical features. That is a process capability, not a default.
Long thin walls, deep narrow slots and parts that move after unclamping will not hold it. In those cases the realistic band may be two to five times wider, and the drawing should say so.
Why did my part come out with chatter marks?
Chatter comes from a tool that is too long for its diameter, a workpiece that is not held rigidly, or cutting parameters that are too aggressive for the setup. It shows as a regular pattern on the wall.
The fix is usually mechanical: shorten the tool overhang, add support under the part, or reduce radial engagement. Changing spindle speed alone rarely solves it.
How does G-code relate to the CAD model?
The model defines the nominal shape. CAM software generates a tool path that approximates it, then post-processing turns that path into G-code for a specific controller.
The approximation never matches the model exactly. Stepover, tolerance settings and tool radius all leave a small deviation, which is why finishing passes exist.
Why does 5-axis setup take longer?
The controller needs the center of rotation in machine coordinates, and that has to be verified. The first article then confirms that features cut from different orientations line up.
Once that is done, the payoff is real: parts with many angled faces come off in one setup instead of three or four, and each removed setup removes its own offset error.
Do I need to specify feeds and speeds on a drawing?
No. Specify the material, the tolerance, the surface finish and any functional requirements. The shop selects tooling and parameters.
If a feature is sensitive, call it out with a note, for example a sealing face that needs Ra 0.8 μm. That guides the process without over-constraining it.
When is machining the wrong process?
Very high volumes with simple geometry are usually cheaper to cast or form, with machining only on the critical faces.
Parts with deep internal cavities, undercuts that no tool can reach, or wall thickness below about 0.5 mm often need another process. A design review early is cheaper than a redesign later.
Send a drawing, get a manufacturability read
We review geometry, tolerance and material, then tell you which axis configuration fits and where the drawing fights the process. Quote and DFM feedback within 12 hours.
12-hour quote100% inspection before shipmentNo minimum order quantityNDA on request