How Did the Machine Work: A Step-by-Step Look at CNC Motion
This page explains how did the machine work inside a CNC mill or lathe, from the moment a program loads to the moment a finished surface leaves the work zone. It is written for engineers and buyers who need to judge a process, a quote or a tolerance claim, not for operators learning a control panel.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
Key takeaways
How Did the Machine Work From Code to Cut
A CNC machine does not see the part. It sees coordinates. When a program runs, the controller reads one block at a time, for example G01 X40.0 Y12.5 F800. That single line means: move in a straight line to this point, at 800 mm/min. The controller checks the requested position against the axis position feedback, calculates the difference, and sends a command to the servo drive. Then it reads the next block.
That loop runs many times per second, on every axis at once. On a three-axis mill the X, Y and Z screws each hold a position; on a simultaneous 5-axis center, two rotary axes join the same loop, so the tool tip stays normal to a curved surface while the table tilts. The machine is not following a drawing. It is chasing a stream of coordinates and correcting itself in real time.
Cutting happens because the spindle turns a tool that has edges, and the table feeds the workpiece into those edges. In aluminum 6061, a 10 mm three-flute carbide end mill commonly runs at 8,000–12,000 rpm and 1,500–3,000 mm/min, with 0.5–1.5 mm radial engagement. Those numbers are not fixed rules. They are the range where the edge slices material instead of rubbing it.
When the loop is healthy, the chips look like short curls and the sound is steady. When the loop is fighting something, the sound changes first and the surface finish changes second. Engineers reading a first article report should look at the finish and the chip shape before trusting the dimensional numbers, because they tell you how the machine actually behaved.
What Changes Between a 3-Axis Mill, a 5-Axis Center and a Lathe
On a three-axis machine the tool moves in X, Y and Z and the part stays still. Setup is simple and rigid, which is why three-axis work still holds most flat plates, brackets and housings. The limit is reach: a undercut, a deep side wall at an angle, or a port on the side of a part needs either a second setup or a different machine.
A simultaneous 5-axis center adds two rotary axes. The tool can stay perpendicular to a sloped face and cut it in one pass, so a contoured aerospace bracket or a medical implant keeps one datum through the whole operation. The trade is that the machine has more moving mass, so rigidity per axis drops, and programming must keep the tool and holder clear of the part.
A lathe works differently. The part rotates and a single-point tool feeds along X and Z. Round parts, shafts, bushings and threaded connectors belong here. A mill-turn center combines both: it turns the outside, then mills flats, slots or cross holes without moving the part to another machine. GreatLight runs 16 mill-turn centers and 16 simultaneous 5-axis machining centers among 127 CNC machines, so the choice is made by geometry, not by what is free.
A useful rule: if the part is round and mostly turned, start with a lathe. If it is boxy with flat faces, start with a three-axis mill. If it has free-form surfaces or features on several sides that must stay aligned, a 5-axis center usually removes a setup and a stack of error.
What the Machine Needs Before It Can Work
Before the first chip, three things must be true. The workpiece must be held so it cannot move. The tool must be measured so the controller knows its length and diameter. The work coordinate system must place the part in the machine envelope, usually by touching off a corner or a datum bore with a probe or an edge finder.
Workholding is where most first-article problems start. A vise on a 100 mm square block is rigid. The same vise on a 300 mm long, 6 mm thick plate lets the middle ring like a bell. For thin parts, support the underside with a matched fixture or leave tabs and cut them last. For a part with a 4,000 mm envelope, like a long extrusion or a frame rail, the fixture must be leveled along its whole length, not just at two points.
Tool measurement matters more than most people expect. A 0.02 mm error in tool length shows up directly in the Z position of a floor or a pocket depth. Thermal growth adds to it: a spindle that has run for two hours is longer than a cold one. Shops that hold ±0.005 mm routinely warm up spindles and re-check the first part after the machine reaches steady temperature.
Coolant and chip evacuation belong in the same list. Aluminum can be cut dry with air blast, but deep pockets in 316 stainless need flood coolant and a peck cycle so chips leave the hole. Recutting a chip is one of the fastest ways to break a small tool.
How Did the Machine Work When the Cut Looks Wrong
Chatter is a vibration, not a control fault. It appears as a rippled surface and a loud, varying tone. The cause is usually a long tool, a thin wall or a loose clamp. Fix the stiffness first: shorten the tool gauge length, add a support under the part, or reduce radial engagement to 30–50 percent of the tool diameter. Raising the feed per tooth can also help by moving the edge out of the resonance band.
Taper in a deep pocket means the tool is deflecting. A 6 mm end mill cutting 40 mm deep will bend, so the bottom of the wall measures wider than the top. Rough with a larger tool, leave 0.3–0.5 mm for a finishing pass, and use a tool with the shortest flute length that reaches the depth. If the tolerance is tight, a finishing pass at full depth with light radial load is more accurate than many shallow passes on a flexible tool.
Dimensional drift over a long run points elsewhere. A part that measures well at 09:00 and low at 15:00 is telling you about temperature. The shop, the coolant and the part all expand. On a 300 mm aluminum part, a 10 °C rise moves the length by roughly 0.07 mm, which is larger than the tolerance. Climate control, in-process gauging, or cutting the critical feature after a cool-down all address it.
A sudden position error, a following error alarm or a surface that steps at a block boundary points to the control loop: a loose coupling, a dirty scale or a servo that cannot keep up with the commanded feed. That is a maintenance issue, and the machine should stop until it is checked.
7 Steps to Verify How Did the Machine Work on a New Part
- 1Read the setup sheet against the drawingConfirm which datum the program uses, how many setups are planned, and which tolerances are called out. If a ±0.005 mm bore sits on a face that is cut in setup two, ask how the datum is re-established.
- 2Check workholding rigidityPush the part by hand before the cycle. Any movement you can feel will be larger under cutting load. Add a jack, a toe clamp or a matched fixture block.
- 3Verify tool length and diameter offsetsMeasure every tool on the presetter or in the machine. Log the values. A 0.02 mm length error lands directly in floor and pocket depths.
- 4Warm up the spindle and confirm temperatureRun a 15–30 minute warm-up cycle, then re-check the first part. On tight work, keep the coolant chiller on and record the shop temperature at the start of the run.
- 5Cut a test feature and measure itMachine one pocket or one bore, measure it, and compare with the commanded size. This tells you the real radial and axial deflection before you cut the whole part.
- 6Watch the first three partsCheck chip shape, sound and surface finish. Short curls and a steady tone mean the feed and speed are in range. Long stringy chips or a squeal mean the parameters or the tool geometry need a change.
- 7Record what changedWrite down the offset adjustments and the reason. The next run of the same part should start from those numbers instead of from scratch.
Which Machine Setup Fits the Feature
| Feature | Best setup | Watch for |
|---|---|---|
| Flat plate with pockets and holes | 3-axis mill, one setup | Thin plate lifting in the vise |
| Round shaft with a thread | CNC lathe or mill-turn center | Taper from tool push-off |
| Contoured surface, five sides | Simultaneous 5-axis center | Holder collision near the tilt limit |
| Deep bore in stainless | Mill with through-coolant | Chip recutting at the bottom |
| Cross holes in a turned part | Mill-turn center | Lost datum after transfer |
| Long frame, 4,000 mm | Large-travel mill, leveled fixture | Sag along the length |
| Prototype, one piece | 3-axis mill plus hand work | Chasing tolerance too early |
Frequently Asked Questions
How did the machine work without a drawing in front of it?
The drawing becomes a program before the machine runs. A CAM system converts the model into toolpaths, and the post-processor turns those into G-code blocks the controller understands. The machine only ever sees coordinates, feed rates and spindle speeds.
That is why the setup sheet matters: it tells the operator which datum the coordinates were written against, so the physical part and the program agree.
Does a higher spindle speed always give a better finish?
No. Finish depends on the feed per tooth and the stiffness of the whole system. A small cutter at very high rpm with a low feed rubs the surface and work-hardens stainless. A moderate speed with the right chip load cuts cleanly.
On aluminum, a light finishing pass at Ra 0.8–1.6 μm is normal. Getting to Ra 0.2–0.8 μm usually needs a dedicated finishing tool and a rigid setup, not just more rpm.
Why does the same program produce a different size on a second machine?
Each machine has its own geometric error, spindle growth and thermal history. A program is portable; the setup is not. Re-check the first part on every machine and adjust the offsets locally.
That is also why moving a job between plants needs a fresh first-article inspection, even when the code is identical.
What does the machine do when the tool breaks?
Most controllers only notice through the spindle load or a following error, so a broken small tool can keep running. Shops that cut expensive parts use tool-life monitoring or in-process probing to catch it earlier.
If a tool breaks in a deep pocket, stop, clear the fragments and re-measure the tool before restarting. Restarting mid-pocket with a new tool usually leaves a visible step.
Can the machine hold ±0.005 mm on every part?
It can hold that on a stable setup with the right machine, a controlled temperature and a capable gauge. It is not automatic. A long, thin part, a hot shop or a dull tool will move the result.
We inspect 100 percent of parts before shipment and provide reports on request, so the number is verified rather than assumed.
How long does it take to get a quote and start cutting?
We return a quotation and a free DFM analysis within 12 hours, and production can start within 24 hours after the order is confirmed. Parts typically ship in 3–5 days.
There is no minimum order quantity, so a single prototype and a 10,000-part run go through the same setup discipline.
Send a Part and We Will Tell You How the Machine Will Cut It
Upload a model or drawing and our engineers will return a quotation, a DFM analysis and the setup plan within 12 hours.
12-hour quoteFree DFM analysisNo minimum order quantity