CNC machining is subtractive manufacturing: a computer-controlled machine tool removes material from a solid block or bar with cutting tools, following a coded program (G-code) to produce a part to precise dimensions. CNC stands for computer numerical control, the machine's motions are driven by numbers in a program, not by a person's hands on handwheels.

Where 3D printing adds material and molding forms it, machining cuts it away. That makes CNC the default route to tight tolerances, hard metals, and low-to-mid volumes without tooling investment. This post explains the machine types, how a part actually gets made, what G-code is, and how to think about tolerances, plus where machining fits in the wider world of metal fabrication.

What Is the Difference Between a CNC Mill, a Lathe, and a Multi-Axis Machine?

The difference is what spins: on a mill the tool spins and the part holds still; on a lathe the part spins and the tool holds still; multi-axis machines add rotations so complex parts can be finished in one setup.

3-axis vs. 5-axis machining, in concept3-axis vs. 5-axis: how many directions can the tool approach from?3-AXIS: X, Y, ZWORKPIECEZX / YTool always points straight down, undercuts need refixturing5-AXIS: X, Y, Z + A, B (rotary)WORKPIECEtool tiltstable rotates, compound angles in one setupFewer setups = fewer refixturing errors = tighter stack-up on complex parts
3-axis machines move the tool in three straight lines. 5-axis machines add two rotations, reaching compound angles without refixturing the part.

The practical reason multi-axis matters is not exotic geometry, it is setups. Every time a part comes out of a fixture and goes back in, you add a chance for error and a tolerance stack-up. One setup instead of three is often the difference between a part that inspects clean and one that does not.

What Is G-code?

G-code is the programming language that tells a CNC machine where to move, how fast, and what to do, line by line. A line like G01 X50.0 Y25.0 F200 means: move in a straight line (G01) to coordinates X=50 mm, Y=25 mm at feed rate 200 mm/min. G-codes command motion and machine modes; M-codes handle auxiliary functions like starting the spindle or changing tools.

Almost nobody writes production G-code by hand anymore. The normal chain is CAD (the part model) to CAM (software that generates toolpaths from the model) to a post-processor that outputs G-code dialect for the specific control. But machinists still read and edit G-code daily, tweaking a feed rate, adjusting a tool offset, because the program is where the process actually lives.

How Does a Part Get Made? The CNC Workflow

Every machined part follows the same four-step loop, whether it is one prototype or a 10,000-piece order.

  1. Program. Engineering releases a model and drawing; CAM generates toolpaths; the programmer picks tools, feeds, and speeds for the material. Output: a proven program and a setup sheet.
  2. Set up. The operator fixtures the stock, loads tools, sets work and tool offsets, and touches off the part zero. Setup is where most nonconformances are born, which is why disciplined shops standardize it like a pit stop.
  3. Cut. Prove out the first part slow, single block, feed override down, then run. Monitor tool wear; a worn tool drifts dimensions long before it breaks.
  4. Inspect. The first part off a new setup gets measured against the print, formally, a first article inspection then in-process checks at a defined sampling frequency keep the run honest. Out-of-tolerance results feed back into offsets or the program, and the correction gets logged.
The CNC workflow: program, set up, cut, inspectFrom file to first good part1 · PROGRAMCAD → CAM → G-codetoolpaths + feeds/speeds2 · SET UPfixture + workholdingtools, offsets, zero3 · CUTprove-out, then runmonitor tool wear4 · INSPECTfirst article vs. printthen sample in-processout of tolerance? adjust offsets or program, never the storyThe loop closes on data: measured dimensions drive corrections, and corrections get logged
The CNC loop: program, set up, cut, inspect. Inspection results feed corrections back into offsets and programs, and every correction should be logged.

How Precise Is CNC Machining? Tolerances, Honestly

Machining is the precision workhorse of manufacturing, but precision costs money non-linearly. General machining commonly holds dimensions within a few hundredths of a millimeter (roughly ±0.01–0.05 mm, or about ±0.0005–0.002 in) without heroics; tighter than that means better machines, temperature control, and more inspection time, and the cost curve bends upward fast. Standards bodies formalize this: general tolerance standards such as ISO 2768 define default tolerance classes for dimensions without individual callouts, so drawings do not need a tolerance on every line.

Three honest rules about tolerances:

Who Runs These Machines? The Numbers

Machining is skilled work, and the workforce data is public. Per the U.S. Bureau of Labor Statistics' Occupational Outlook Handbook the median annual wage for machinists was $56,150 in May 2024, and $63,180 for tool and die makers. BLS projects roughly 34,200 openings per year for machinists and tool and die makers over 2024–2034, nearly all replacement demand as experienced machinists retire, since overall employment is projected to decline slightly. That replacement wave is exactly why shops worry about tribal knowledge walking out the door: thirty years of feeds-and-speeds judgment rarely lives in the CAM library.

Where Does CNC Data Fit in a Connected Plant?

CNC machines are dense data sources: spindle load, alarms, cycle counts, program numbers. Most shops still reconcile that against paper travelers and whiteboard schedules. Connecting machines and digitizing the paperwork around them, job status, inspection results, downtime reasons, is a straightforward early win in a smart factory program, because true utilization is usually far below what everyone believes until it is measured. Harmony's approach is to connect the machines and systems a shop already runs and compute utilization and OEE from source signals rather than estimates, no rip-and-replace (see how the platform works). CLS took this route for production logging and daily reporting; the CLS case study shows what replacing paper with live data looks like in practice.