GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

CNC fundamentals

Definition and Structure of the CNC System

A CNC system is a closed control loop: program, controller, drives, feedback and machine frame. This page breaks the structure of the CNC system into its five parts and shows where accuracy, surface finish and cycle time are actually decided. Written for engineers and buyers who need to read a machine spec and know what it means.

±0.005 mm tolerance5-axis and mill-turn4,000 mm max sizeISO 9001 / IATF 16949
CNC machine definition diagram showing the structure of the CNC system
Definition

What the structure of the CNC system actually contains

Computer numerical control means a machine tool is driven by numbers rather than by a handwheel. The operator does not cut the part. A program does, and the machine executes that program axis by axis. That is the whole idea. Everything else in the structure of the CNC system exists to make those numbers land in the right place at the right speed.

A working CNC system has five parts: the controller (the CNC), the servo drives and motors, the feedback devices, the machine frame with its slides and spindle, and the part program itself. Remove any one and the loop opens. An open loop runs blind and drifts. A closed loop measures what it did and corrects on the next block.

People often say CNC is 'a computer controlling a machine'. That is close, but it hides the important part. The computer does not control the tool directly. It issues a position command, the drive follows it, and a scale or encoder reports back. The gap between command and report is where accuracy lives. When a shop says it holds ±0.005 mm, it is describing how small that gap stays over a full shift.

This matters commercially. Two machines with the same travel and spindle speed can differ by a factor of two in scrap rate, because one closes the loop properly and the other fights thermal growth all day. Reading the structure tells you which one you are buying.

  • 1
    ControllerReads G-code, plans motion, closes the loop
  • 2
    DrivesServo amplifiers and motors that move each axis
  • 3
    FeedbackEncoders or linear scales that report real position
  • 4
    MachineBase, ways, ballscrews and spindle that carry the cut
Controller layer

The controller: where the program becomes motion

The controller is the top of the structure of the CNC system. It parses the G-code, looks ahead through the coming blocks, and decides how fast each axis can accelerate without overshooting a corner. Look-ahead depth is a real specification. A controller that reads 20 blocks ahead can run a contoured path faster than one that reads 3, because it slows down before the tight radius instead of after.

Inside the controller, interpolation is the core job. For a straight line it splits the move into many small increments and sends a position command to each axis at a fixed cycle time, often 1 ms or faster. For an arc it solves the same problem along a circle. Circular interpolation error is one reason a machine can hold a straight tolerance but show a blend mark on a radius.

Block processing time sets the floor on how fine the increments can be. A common figure is 0.5 to 2 ms per block. If your CAM output posts a smooth curve as thousands of tiny line segments, the controller has to chew through all of them. That is why high-speed machining options exist: they fit a spline through the points instead of stopping at each node.

Practical consequence for a buyer: if your parts are mostly prismatic plates and pockets, a mid-range controller is fine. If you cut 3D contoured molds or impellers with tight blend tolerances, look-ahead depth and NURBS support are the numbers to ask about, not spindle rpm.

Drive and feedback

Servo drives, feedback and the closed loop

Below the controller sit the drives. Each axis has a servo motor, an amplifier, and usually a ballscrew or linear motor that turns rotation into travel. The drive compares the commanded position with the actual position thousands of times per second and applies current to close the gap. That is the loop, and it is the part of the structure of the CNC system that turns code into metal.

Feedback comes in two grades. A rotary encoder on the motor shaft measures motor rotation; it cannot see backlash in the screw, thermal growth of the screw, or wear in the thrust bearing. A linear scale mounted on the slide measures the table itself. Scale feedback costs more and needs a cleaner environment, but it removes screw error from the chain.

This is the difference between 'positioning accuracy' and 'repeatability'. Repeatability is how tightly the machine returns to the same spot; accuracy is whether that spot is where the drawing says. A machine can repeat to ±0.002 mm while sitting 0.02 mm off nominal, and a simple pitch-error compensation table usually fixes it. Ask for both numbers, not one.

Backlash and lost motion show up as a step at every reversal. On a circular interpolation test, that step becomes an oval or a flat on the quadrant. If a shop quotes ±0.005 mm on a part with many direction changes, backlash compensation and a warm-up routine are part of how they get there.

Mechanical layer

Machine frame, spindle and thermal behavior

The mechanical layer is the least glamorous and the most decisive. A cast iron or polymer-concrete base damps vibration. Linear guides or hand-scraped box ways carry the load. Ballscrews convert motor torque into thrust. The spindle puts the tool in contact with the material at the right speed and runout.

Stiffness decides how deep you can cut without chatter. A light 3-axis mill with 500 × 500 × 450 mm travel and a 12,000 rpm spindle is a fine machine for aluminum brackets. Push a 50 mm face mill through 4140 steel on it and the frame will sing. A heavier 5-axis center with a Ø400 mm rotary table can hold the same cut because the mass and the bearing size absorb the force.

Thermal growth is the slow error that nobody sees at 8 a.m. and everybody sees at 2 p.m. A spindle that warms 10 °C can grow tens of microns along Z. Ballscrews grow with ambient temperature. Shops that hold tight tolerances run a warm-up cycle, keep the coolant at a set temperature, and sometimes measure a master part between batches.

Spindle runout and toolholder quality set the floor on surface finish. A 0.005 mm runout on a small end mill produces a visible witness mark and shortens tool life. That is why a good shop cares more about the holder, the pull stud torque and the taper cleanliness than about the spindle badge.

  • 1
    Rigid frameDamps chatter, holds depth of cut
  • 2
    Warm-up routineBrings spindle and screws to steady state
  • 3
    Clean taperProtects runout and tool life
Program layer

G-code, CAM output and where the chain breaks

The program is the top of the chain and the easiest place to lose accuracy before the machine even moves. CAM software decides toolpath strategy, stepover, lead-in, and how a curved surface gets approximated. Post-processor settings decide whether that toolpath arrives as clean arcs or as a long string of short lines.

A common failure is tolerance mismatch. The CAM system is set to 0.05 mm chord tolerance for a smooth blend, but the drawing calls for a 0.01 mm profile. The machine holds exactly what it was told, and the part is out of spec. No amount of machine accuracy fixes a toolpath that was never asked for the right shape.

The other frequent break is workholding. A part that deflects 0.03 mm under clamping pressure will spring back after the vise opens. The structure of the CNC system includes the fixture in a practical sense, because the loop cannot control a workpiece that moves. Thin walls, long shafts and unsupported floors need support, reduction of radial engagement, or a finishing pass at low load.

Feed and speed choices then set surface finish. On aluminum 6061, a sharp 3-flute cutter at the right chipload leaves Ra 0.8–1.6 μm without any extra operation. On 316L stainless, the same geometry work-hardens the surface if the chipload is too light, and the next pass cuts through a hardened skin. That is a program decision, not a machine decision.

Method

How to check a CNC system before you trust it with a part

Five checks that take an afternoon and save a batch.

  • 1
    Run a warm-up cycleSpindle and axes for 20–30 minutes at working speed, then measure a master part. Cold measurements flatter the machine.
  • 2
    Cut a circular interpolation testA 100 mm circle in aluminum at moderate feed. Measure roundness; a flat at each quadrant points to backlash or reversal error.
  • 3
    Measure repeatability and accuracy separatelyReturn to the same point 20 times, then compare against nominal. Repeatability is the tight number; accuracy may need pitch compensation.
  • 4
    Check spindle runout at the taperUnder 0.005 mm is a reasonable target for a production spindle. Wipe the taper first; chips and oil film fake the reading.
  • 5
    Watch thermal drift over four hoursMeasure a feature every hour. Growth beyond your tolerance band means the process needs coolant control or mid-batch compensation.
Layer by layer

What each layer of the structure controls

Use this to trace an accuracy problem back to its source.

LayerWhat it setsTypical numbersFails as
ControllerLook-ahead, interpolation, block rate0.5–2 ms per blockCorner overshoot, slow contouring
Servo driveFollowing error, acceleration limitsCurrent loop in µs rangeLag marks, axis alarms
FeedbackPosition accuracy vs repeatabilityEncoder or linear scaleStep at each reversal
MechanicalStiffness, damping, thermal stabilityTravel 500–4,000 mmChatter, drift over a shift
ProgramShape definition, load on the toolChord tolerance 0.01–0.05 mmOut-of-spec profile, poor finish

When the structure is good enough, and when it is not

If your parts are prismatic with tolerances looser than ±0.02 mm, a well-maintained 3-axis machine with encoder feedback will do the job and cost less per hour. If you need tight blends on contoured surfaces, one-setup 5-sided work, or ±0.005 mm on a part that also needs a fine finish, the controller, feedback and frame all have to be at the higher grade. Buying a fast spindle on a light frame does not get you there.

FAQs

Questions engineers ask about CNC system structure

Is a CNC system open loop or closed loop?

Most production CNC machines are closed loop on at least the position level: the drive compares commanded position with feedback and corrects continuously.

True open-loop machines, usually stepper-driven, exist in light hobby and some routing equipment. They have no position feedback, so a missed step is never corrected. For metal cutting at ±0.005 mm, closed loop is the baseline.

Do linear scales really improve accuracy over motor encoders?

Yes, for the errors that live between the motor and the table: screw pitch error, thermal growth of the screw, and thrust-bearing wear. A linear scale measures the slide directly, so those errors do not reach the part.

The trade-off is environment. Scales need clean air or sealed covers, and they add cost. On a machine cutting aluminum brackets to ±0.05 mm, motor encoders with pitch compensation are usually enough.

What travel size can a single CNC system handle?

It depends on the frame, not the controller. Large gantry and bridge mills reach 4,000 mm and beyond on the long axis. Compact machining centers sit around 500 × 500 × 450 mm.

For long parts, the question is not only travel but how the machine holds alignment along that length. Thermal growth scales with length, so a 4,000 mm part needs a process plan for temperature, not just a big machine.

Why does surface finish change between the first and last part of a batch?

Usually tool wear plus thermal drift. The cutter edge dulls, raising cutting forces and rubbing instead of shearing. At the same time the spindle and screws have grown, shifting depth of cut slightly.

The fix is process control: tool-life limits based on cut time or part count, a warm-up cycle before the first part, and coolant temperature held steady. Verify with a finish measurement at the start and end of the run.

Can a 3-axis machine hold the same tolerance as a 5-axis machine?

On a simple part, yes. The number of axes does not by itself set accuracy. A well-kept 3-axis mill can hold ±0.005 mm on a flat plate just as a 5-axis can.

The difference shows on complex parts. A 5-axis machine reaches features in one setup, so it avoids the stack-up error of three separate fixtures. It also keeps the tool at a better angle for the surface, which helps finish on contoured geometry.

How much does the fixture affect the structure of the CNC system?

More than most people expect. The loop controls the tool position, not the workpiece. If the part deflects under clamping or lifts during a heavy cut, the machine is accurate and the part is still wrong.

Support the workpiece under the cutting zone, keep clamping pressure consistent, and use a light finishing pass where walls are thin. On parts with thin floors, a sacrificial support or a soft-jaw setup often decides whether the tolerance holds.

Send the drawing and we will tell you what the part needs

Upload your files for a quotation and a free DFM analysis within 12 hours. We machine from one prototype to 10,000+ part runs, with 100% inspection before shipment.

12-hour quote±0.005 mm toleranceNDA on requestNo minimum order quantity

Follow

More from the shop floor

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC