Overview of CNC Computer Components
This page explains what sits behind the sheet metal of a CNC machine: the controller, the drives, the feedback scales and the I/O that link code to metal. It is written for design engineers and buyers who need to judge whether a shop's hardware can actually hold the tolerance on a drawing.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
From G-code to a finished surface
A CNC machine is a mechanical loop wrapped around a computer loop. The computer loop reads a program, works out where the tool should be in the next few milliseconds, and tells a motor to move. The mechanical loop then has to follow that command without lag, overshoot or vibration. Accuracy is set by whichever loop is weaker.
The signal path is short. A CAM post-processor writes G-code. The controller parses each block, plans look-ahead moves, and turns toolpaths into position commands at a fixed cycle time, often 1–4 ms. Servo drives convert those commands into current for the motors. Encoders report the real position back. The controller compares command against feedback and corrects.
That last comparison is where the term closed loop comes from. If the feedback device is missing, the control counts motor pulses and assumes the axis arrived. On a light cut in aluminium that assumption usually holds. On a heavy cut in 4140 steel it does not, and the error only shows up when you measure the part.
Judgement point: ask what the shop does with the feedback. A machine that logs servo error and thermal drift can hold ±0.005 mm across a long run. A machine that does not will drift after three hours of cutting and nobody will notice until the CMM report arrives.
- 1Command pathCAM post → G-code → controller look-ahead → drive current
- 2Feedback pathEncoder or glass scale → controller → position correction
- 3Weakest linkWhichever loop has less resolution or more lag sets the result
What the controller board actually decides
The controller is the machine's brain, and its specification matters more than the brand name on the cabinet. Three numbers tell you most of it: block processing speed, number of simultaneously controlled axes, and look-ahead depth. A control that processes 1,000 blocks per second with 200 blocks of look-ahead can round corners at feed rates where a slower control will stall or leave facets.
Memory and network matter for the work you send. Large 3D surfacing programs in titanium can run to hundreds of megabytes. If the control has to drip-feed over a slow serial link, the feed rate drops and the cycle time grows. Modern controls take programs over Ethernet or USB and hold them locally.
The controller also owns the compensation tables: tool length offsets, cutter radius compensation, pitch error compensation and thermal growth maps. These tables are what let a machine cut a 4,000 mm part and still land inside tolerance at both ends. They are built by the machine builder during installation and then maintained by the shop.
Practical check: ask how often the compensation tables are re-verified. On a machine running two shifts, a yearly laser interferometer check and a ballbar test is a reasonable baseline. A shop that cannot describe this process is relying on luck.
- 1Block processingSlower controls show up as faceted curves and longer cycles
- 2Look-ahead depthShallow look-ahead forces feed-rate drops at every corner
- 3Compensation tablesPitch error and thermal maps hold accuracy over long travel
Servo drives, motors and the feedback scale
Servo drives take a low-power position command and deliver high current to the motor. The drive's current loop runs far faster than the position loop, often at 8–16 kHz. That speed is what keeps the axis stiff when the cutter bites. A tired drive with a detuned current loop shows up as chatter marks spaced at the tooth-passing frequency.
Motor choice follows the load. Small linear axes use AC servo motors with ball screws. Long-travel machines and high-speed finishing spindles sometimes use linear motors, which remove the screw, the nut and the backlash with them. Linear motors cost more and generate more heat, so they need cooling and a granite or cast base that will not grow.
Feedback comes from rotary encoders on the motor shaft or from linear glass scales on the slide. Motor encoders are cheaper and measure motor rotation, so screw pitch error and thermal growth stay invisible. Linear scales measure the table itself. On a machine that must hold ±0.005 mm over a 750 mm travel, direct scale feedback is the safer design.
The trade-off is cost and fragility. Glass scales need clean air and a sealed mounting. In a shop with fine aluminium dust and no filtration, a scale will fail before a motor encoder does. That is a maintenance question, not a design question, and it should be asked before the machine is bought.
- 1Motor encoderCheaper, but screw error and thermal growth stay uncorrected
- 2Linear scaleMeasures the slide directly; needs clean, sealed mounting
- 3Linear motorNo backlash and high speed; more heat and higher cost
Spindle, tooling and why rigidity compounds
The spindle is the last mechanical element before the cutting edge, and every error upstream passes through it. Two numbers matter: maximum speed and torque curve. A 15,000 rpm spindle with a broad torque band can rough in steel and finish in aluminium on the same setup. A 24,000 rpm spindle built for aluminium will stall if you ask it to run a 20 mm insert drill in 4140.
Tool holding is part of the spindle system. BT30, HSK-A63 and Capto interfaces each have a stiffness and a speed ceiling. HSK and Capto are hollow-taper or polygon designs that expand under centrifugal force, so they hold grip at high rpm. BT30 is simple and cheap but loses grip as speed rises.
Thermal growth is the hidden variable. A spindle running at 15,000 rpm for two hours grows in Z by tens of microns. Good controls compensate with a spindle growth model; good shops warm up the machine before a tight-tolerance job. Skipping warm-up is one of the most common causes of a first-article failure on a ±0.005 mm bore.
Judgement point: if your part has a deep cavity with a small cutter, spindle speed and tool-holder runout matter more than axis count. If your part has features on five faces, axis count and the rotary table matter more than spindle speed.
- 1Speed vs torqueHigh rpm suits aluminium; steel needs a broad torque band
- 2Tool interfaceBT30 is cheap; HSK-A63 and Capto hold grip at high rpm
- 3Warm-upTen to thirty minutes of warm-up prevents Z-axis drift
I/O, tool changers and the parts people forget
The PLC side of the control runs the non-cutting logic: door interlocks, coolant valves, chip conveyors, pallet changers and tool-changer arms. A tool changer with a slow arm adds seconds to every tool change, and on a job with 20 tools that is minutes per part. It rarely appears on a quotation, but it appears in the price.
Tool management is a computer function too. The control stores tool life, offsets and breakage detection. Shops that log tool life and replace inserts on a schedule get more consistent surface finish than shops that wait for a bad sound. On a long production run, a tool-life table is worth more than a faster spindle.
Probing turns the machine into a measuring device. Touch probes set work offsets and check features in-process. On a five-axis job with a single setup, in-process probing catches a fixture slip before the whole batch is scrap. The measurement uncertainty of a touch probe is around ±0.005 mm, so it verifies setup, not final tolerance.
Finally, the enclosure and the foundation. A machine on a thin floor slab will vibrate. A machine next to a stamping press will pick up its rhythm. Neither problem is solved by software, and both show up as surface finish variation you cannot program away.
- 1PLC logicRuns interlocks, coolant, conveyors and pallet changers
- 2Tool dataLife counters and breakage detection keep finish consistent
- 3ProbingGood for setup verification, not for final acceptance
How to verify a machine before you place a tight-tolerance order
Ask for these five records or tests
- 1Ask for the accuracy reportRequest a ballbar or laser interferometer report dated within the last 12 months. Check the linear positioning error and the squareness figure for each axis.
- 2Check the feedback typeConfirm whether the axes use motor encoders or linear scales. On a ±0.005 mm job with long travel, scales are the safer answer.
- 3Confirm warm-up practiceAsk how long the spindle and axes run before the first cut on a tight job. Ten to thirty minutes is typical; none is a warning sign.
- 4Review the compensation tablesAsk when pitch error and thermal compensation were last updated, and whether they are re-checked after a crash or a move.
- 5Run a first-article on the real geometrySend the hardest feature, not a simple test block. Measure it on a CMM and compare the report to the drawing before releasing the batch.
How the main computer and drive choices compare
Pick the row that matches the part, not the spec sheet
| Element | Light duty | Heavy or tight work |
|---|---|---|
| Control look-ahead | 50–100 blocks | 200+ blocks for 3D surfacing |
| Feedback | Motor encoder only | Linear glass scale on each axis |
| Drive current loop | 4–8 kHz | 8–16 kHz for chatter-free cuts |
| Spindle interface | BT30, up to 12,000 rpm | HSK-A63 or Capto, 15,000 rpm+ |
| Thermal management | Passive, seasonal drift | Cooled spindle and ball screws |
| Typical axis count | 3-axis with vise work | 4 or 5 simultaneous axes |
| Position check | Hand tools and dial indicator | Ballbar and laser interferometer |
When the hardware matters and when it does not
If your part fits in a 500 mm envelope and has features on three faces, a well-maintained 3-axis machine with linear scales will hold ±0.005 mm and cost less. If your part has deep cavities, organic surfaces or features on five faces, the rotary axes and the control's look-ahead decide the result, and a 5-axis center is the only sensible route.
Questions engineers ask about CNC computer components
Do I need to know the controller brand to judge a supplier?
Brand matters less than configuration. Two machines from the same builder can ship with different look-ahead depth, different feedback and different drive tuning.
Ask for the axis resolution, the block processing speed and the feedback type. Those three numbers predict the surface finish and the achievable tolerance better than a logo on the cabinet.
Why does my part measure correctly on the machine but fail on the CMM?
The machine and the CMM sit at different temperatures, and aluminium grows about 23 μm per metre per °C. A 300 mm aluminium part measured 5 °C warmer than the CMM's 20 °C reference will read roughly 35 μm long.
Let the part stabilise in the inspection room before measurement, and note the temperature in the report. On ±0.005 mm work this step is not optional.
Can a small single-board computer run a CNC machine?
For a hobby router or a light engraver, yes. Those controllers handle simple 3-axis motion at modest feed rates.
For production work in metal, no. The real-time loop needs deterministic timing at 1–4 ms, and a general-purpose operating system cannot guarantee that. Production controls run dedicated motion hardware for this reason.
How much does thermal growth actually move an axis?
A ball screw on a 750 mm travel machine can grow 20–40 μm over a few hours of continuous cutting if it is not cooled. That is four to eight times the ±0.005 mm tolerance band.
Cooled ball screws, a temperature-controlled room and a warm-up cycle are the usual controls. Ask which of the three a shop uses.
What does 4 + 1 axis mean compared with true 5-axis?
A 4 + 1 machine indexes the rotary table to a position, locks it, then cuts with three linear axes plus one rotary. The fifth axis is not moving while the tool is in the cut.
True simultaneous 5-axis moves all five axes together. It is the only way to cut a smooth compound surface in one pass. Indexed work is cheaper and often good enough for hole patterns and pockets on angled faces.
Is in-process probing enough to release a batch?
No. A touch probe resolves roughly ±0.005 mm under good conditions, which is the same size as the tolerance on a tight feature.
Use probing to catch setup errors and fixture slips, then measure the first article and the last article on a calibrated CMM. That combination catches both drift and one-off mistakes.
Send the drawing and we will match the process to it
Upload your files and we return a quotation with a free DFM analysis within 12 hours. Production can start within 24 hours, and every shipment carries a 100% inspection record on request.
Quotation in 12 hoursNo minimum order quantity±0.005 mm toleranceISO 9001 / IATF 16949