How CNC Machines Work PDF: A Working Guide for Engineers
This page explains how a CNC machine turns a CAD file into a finished part, and how to read the PDF or printed setup sheet that comes with a job. It is written for design engineers, manufacturing engineers and buyers who need to check a program or a setup before the first cut. By the end you can follow a G-code block, verify a work offset, and tell whether a feed and speed pair is safe.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
What matters before you press cycle start
What a how cnc machines work PDF actually contains
A CNC machine does not read a drawing. It reads a program, and the program only makes sense inside a setup. That is why a how cnc machines work PDF is not a textbook chapter. It is a package of four linked documents: the part drawing with tolerances, the setup sheet, the tool list, and the G-code listing with a program number. Read them in that order.
The setup sheet is the part engineers skip and then regret. It names the fixture, the zero point for X, Y and Z, the work offset number (G54 to G59), and the stock size. If the drawing says the datum is the bottom face and the setup sheet says Z0 is the top face, the part will be produced 12 mm short and every feature will shift.
The tool list gives each cutter a station number, a diameter, a corner radius and a length offset (H value). A 6 mm end mill with a 0.5 mm corner radius is not the same as a square 6 mm end mill, even if both sit in the same holder. The radius shows up on every internal corner, and it is the usual reason a mating part will not seat.
Finally, the G-code listing. You do not need to read all 4,000 lines. Read the header, the first approach move, and the tool change blocks. Those three places carry most of the risk. The rest is repetition you can scan.
One more thing about the PDF itself. Treat it as a living file. When a machinist swaps a tool or shifts an offset to hold a tight bore, that change belongs in the document. On a 10,000-part run, an undocumented offset shift is how a batch drifts out of tolerance around part 600.
- 1DrawingGeometry, datums and tolerance callouts such as ±0.005 mm.
- 2Setup sheetFixture, work offset number, Z zero face and stock size.
- 3Tool listStation, diameter, corner radius and length offset for each cutter.
- 4Program listingHeader, approach moves and tool changes are the parts worth reading.
How the machine turns code into a cut
The controller reads the program one block at a time and converts each block into axis motion and switch commands. On a three-axis mill, X, Y and Z move the tool relative to a fixed table. On a five-axis machine, two rotary axes tilt either the tool or the work, so the cutter can reach a face that would need a second fixture on a three-axis machine.
The order inside a block matters. A typical line reads G01 X50.0 Y25.0 Z-3.0 F400. The G01 sets the mode, the X, Y and Z values are the endpoint, and F400 sets the feed in millimeters per minute. The machine interpolates a straight line from the current position to that endpoint. It does not know or care where the material is.
Compensation happens in the controller, not in the geometry. G41 and G42 offset the path left or right by the cutter radius stored in the offset table. If the operator measures the tool and enters 5.98 mm instead of 6.00 mm, the finished slot will be 0.02 mm oversize. The program text is identical. The part is not.
Rapid moves are where crashes live. G00 moves at the machine's maximum rate and ignores the feed value. A G00 Z10.0 written before the tool clears the vise jaw will drive the holder straight down into steel. Every safe program lifts Z first, then moves in X and Y.
Spindle speed and feed are linked through chip load. Feed in mm per minute equals spindle rpm times number of teeth times chip load per tooth. For a 10 mm three-flute carbide cutter in 6061-T6 at 8,000 rpm and 0.05 mm per tooth, that is 1,200 mm/min. Push the chip load past 0.1 mm per tooth in aluminium and the cutter will chatter; drop below 0.02 mm and it will rub and work-harden the surface.
Choosing the right cutting conditions for the material
Aluminium is the forgiving case. 6061-T6 cuts clean at 300–500 m/min surface speed with uncoated or ZrN-coated carbide and generous coolant. 7075 is stronger and gummier; drop the surface speed about 20% and keep the chip load up so the tool does not rub. Thin walls below 1.5 mm need a lighter radial depth of cut, usually 5–10% of the cutter diameter, or the wall will deflect and spring back undersize.
Stainless 304 and 316 work-harden quickly. Keep the cutter engaged, never let it dwell, and use a feed high enough to stay under the hardened layer. A 6 mm cutter at 0.03 mm per tooth and 2,500 rpm is a reasonable starting point, with flood coolant. 17-4PH in the H900 condition is harder again; expect shorter tool life and check the first article for size before running the batch.
Titanium Ti-6Al-4V and Inconel sit at the other end. Surface speed drops to 30–60 m/min, coolant must reach the cutting edge, and a rigid setup matters more than a fast one. If you hear a high-pitched squeal, the tool is rubbing, not cutting. Stop and adjust the feed before the insert fails.
Plastics behave differently again. POM and ABS cut fast but melt if the chip cannot clear. Use sharp two-flute cutters, high spindle speed, and air blast instead of flood coolant. PEEK and carbon fibre are abrasive; carbide with a diamond coating lasts noticeably longer than plain carbide on carbon fibre laminates.
Reading tolerances, finishes and datums on the drawing
A tolerance without a datum is a guess. When a drawing calls out a bore at Ø20.00 +0.02/0 mm, it also has to say which face the bore is measured from. GD&T callouts solve this with a datum reference frame, usually three faces marked A, B and C. In the setup, those three faces become the work offset and the fixture stops.
Finish callouts follow the same logic. Ra 0.8–1.6 μm is a standard machined finish from a sharp cutter at a moderate feed. Ra 0.2–0.8 μm needs a finer stepover, a smaller chip load, or a finishing pass with a dedicated tool. On a deep pocket, a long reach cutter will chatter before it reaches that finish, so the geometry may need a design change rather than a process change.
Position tolerance is where most arguments start. A hole pattern at true position Ø0.1 mm is achievable on a rigid three-axis machine with a good fixture. Tighten it below Ø0.05 mm and you are into five-axis territory with in-process probing, because thermal growth over a 4,000 mm part will eat the budget on its own.
The practical check is simple: can the machine reach the tolerance over the full part length? GreatLight holds ±0.005 mm on parts within the machine envelope, and every shipment gets 100% inspection with reports available on request. If a feature sits beyond the envelope, the part is split into two setups, and the second setup adds its own stack-up.
Where a setup goes wrong and how to catch it early
Most scrap is not caused by a bad program. It is caused by a setup that changed after the program was proven. The vise jaw gets replaced, the fixture gets re-clamped, or a new operator loads the wrong tool. That is why the first article matters more than the tenth.
Measure the first article against every callout, not just the tight one. A part that holds the Ø20 mm bore but misses the 50 mm bolt spacing will not assemble. Record the measured values on the setup sheet so the next operator starts from a known baseline rather than an assumption.
Watch for tool wear on long runs. A 10,000-part order will outlast several inserts. If the operator only checks the last part of each shift, the batch can drift 0.03 mm before anyone notices. In-process monitoring catches the trend, not just the endpoint.
Thermal drift is the quiet one. A spindle running at 12,000 rpm for six hours grows, and Z moves with it. On tight work, let the machine warm up with a 10–15 minute spin cycle, then set offsets. If the shop is not temperature controlled, plan the tightest features for the first hours of the shift.
How to read and verify a CNC setup PDF
- 11. Open the drawing firstFind the three datum faces and the tightest tolerance on the part. Write down the tolerance value and which feature carries it. If the drawing has no datum frame, ask for one before quoting or programming.
- 22. Match the setup sheet to the drawingCheck that Z0 on the setup sheet is the same face as datum A on the drawing. Confirm the stock size leaves 0.5–1.0 mm on faces that need a clean-up pass.
- 33. Verify the work offset numberG54 is the default. If the job uses G55 or G56, confirm the operator loaded the right offset. A wrong offset shifts every feature by the same amount, which is easy to see on the first article.
- 44. Walk the tool list against the carouselStation 3 must hold the 6 mm end mill with the 0.5 mm corner radius. Check the length offset H value matches the tool that is actually loaded. A 0.1 mm error here appears as a 0.1 mm depth error.
- 55. Read the program header and first approachConfirm the program number, the units (G21 for millimeters, G20 for inches), and that the first move lifts Z before any X or Y travel. A program that moves X or Y before clearing Z is not ready to run.
- 66. Check the cutting conditions against the materialFor 6061-T6, expect 300–500 m/min surface speed and 0.03–0.08 mm per tooth. For 304 stainless, expect 80–150 m/min and 0.02–0.04 mm per tooth. If the numbers are far off, stop and ask.
- 77. Dry run, then cut the first articleRun the program with the tool 50 mm above the stock. On a five-axis job, verify the rotary table clears the fixture through the full tilt. Then cut one part and measure every callout before starting the batch.
- 88. Record what changedNote any offset shift, tool swap or feed change on the setup sheet and reissue the PDF. An undocumented change is a change that disappears when the shift ends.
Cutting conditions and setup checks by material
Starting points only. Confirm against your tool supplier data and the first article.
| Material | Surface speed | Chip load (per tooth) | Setup watch point |
|---|---|---|---|
| 6061-T6 aluminium | 300–500 m/min | 0.03–0.08 mm | Thin walls below 1.5 mm deflect; lighten radial cut |
| 7075 aluminium | 240–400 m/min | 0.03–0.07 mm | Gummy chips; keep feed up, never dwell |
| 304 / 316 stainless | 80–150 m/min | 0.02–0.04 mm | Work-hardens; never let the cutter rub |
| 17-4PH (H900) | 50–90 m/min | 0.02–0.03 mm | Short tool life; check first article for size |
| Ti-6Al-4V | 30–60 m/min | 0.02–0.05 mm | Heat stays in the cut; coolant must reach the edge |
| POM / ABS | 300–600 m/min | 0.05–0.12 mm | Chip evacuation; use air blast, not flood coolant |
| Carbon fibre | 150–300 m/min | 0.02–0.05 mm | Abrasive; diamond-coated carbide lasts longer |
If the setup sheet and the program disagree, stop
A program is only as good as the setup around it. Match the datums, verify the offsets, and cut one part before you commit the batch. Send us the drawing and we will return a quotation plus a free DFM analysis within 12 hours.
Questions engineers ask after reading the setup sheet
What does G54 mean on a setup sheet?
G54 is the first work coordinate system stored in the controller. It tells the machine where the part zero sits relative to machine home. Other offsets, G55 to G59, hold additional zeros for other vises or fixtures.
If the setup sheet says G55 and the operator runs G54, every feature shifts by the difference between the two zeros. The program itself is unchanged.
Can I read G-code without a machine background?
Yes, if you read it structurally. Look at the header for units and the program number, then find the first approach move and each tool change. Those blocks carry the setup risk.
The middle of the program is mostly repeated passes. You can scan it for feed values and spindle speeds without reading every coordinate.
How tight a tolerance can a three-axis machine hold?
On a rigid setup with a temperature-stable shop, ±0.01 mm is routine on a three-axis machine for features within the envelope. GreatLight holds ±0.005 mm on qualified work, with 100% inspection before shipment.
Below that, thermal drift and fixture compliance start to dominate. Five-axis with in-process probing is the more reliable route for position tolerances under Ø0.05 mm.
What is the maximum part size you can machine?
The largest travel on our machines is 4,000 × 400 × 150 mm. Medium machines cover 750 × 1,150 × 550 mm and 600 × 600 × 600 mm.
Larger parts are split across setups, which adds a second datum and its own stack-up. Plan for that in the drawing review.
Do you provide inspection reports with the parts?
Yes. Every shipment gets 100% inspection, covering raw material check, in-process monitoring and final inspection. Dimensional reports are available on request.
Send the drawing with the RFQ and tell us which callouts matter most. The quotation and a free DFM analysis come back within 12 hours.
How do I keep the program and the PDF in sync?
Give the setup sheet a revision number and a date. Any offset shift, tool swap or feed change on the floor gets written down and the sheet is reissued.
On a long run, review the sheet at each shift handover. A 0.03 mm drift found at part 300 is cheaper than one found at part 3,000.
Send the drawing, get a manufacturable answer
Upload your CAD files and tolerances. We review the setup, flag features that cannot hold tolerance, and quote from one prototype to a 10,000+ part run.
12-hour quoteNo MOQ100% inspectionNDA on request