CNC Guide Buildings and Programming
This CNC guide buildings and programming explains how a machine is built and how its motion is written. It is written for engineers and buyers who quote parts. Read it to judge which machine class and code strategy a part actually needs.

What matters most
How the machine frame decides what you can hold
A CNC machine is a loop of stiffness. The bed, column and spindle housing must resist the cutting force without deflecting more than a few micrometres. Cast iron beds damp vibration well. Welded steel frames are lighter and cheaper but ring more, which shows up as chatter on thin walls. Polymer concrete sits between the two and is common on high-speed mills.
Rigidity is not the same as accuracy. A heavy frame holds size across a long cut because thermal growth is slow and predictable. A light frame can still be accurate for one short pass, then drift as the spindle warms. That is why a warm-up cycle matters on any machine asked to hold ±0.005 mm.
The guide system matters as much as the casting. Box ways spread load over a large area and suit heavy cuts in steel. Linear guides run faster with less stick-slip and are the usual choice for aluminium and finishing work. A machine built for speed will not hold a heavy roughing load, and vice versa.
- 1Damping firstCast iron or polymer concrete for thin walls and fine finishes.
- 2Thermal stabilityWarm-up and coolant control before tight-tolerance work.
- 3Guide typeBox ways for steel, linear guides for speed and aluminium.
Ball screws, rotary tables and axis count
Each linear axis is a ball screw driven by a servo motor, with a glass scale or encoder closing the loop. Screw pitch sets the trade between speed and thrust. A fine pitch gives more force for drilling but a slower rapid. Backlash in the nut, if not compensated in the control, appears as a step at every direction change.
Rotary axes are what separate a three-axis mill from a five-axis center. A trunnion table tilts the part, letting the tool reach five faces without a second setup. GreatLight runs 16 simultaneous five-axis centers with a Ø400 mm rotary table, 12 four-axis mills and 27 three-axis machines, so the axis count is matched to the part rather than forced.
More axes do not automatically mean a better part. A five-axis move costs more programming time and needs post-processing to verify clearance. Use it when a feature is genuinely unreachable, or when one setup removes enough stack-up error to matter. For a simple plate with holes on one face, a three-axis machine is faster and cheaper.
- 1Screw pitchFine pitch for thrust, coarse pitch for rapid speed.
- 2BacklashCheck compensation after any crash or heavy cut.
- 3Five-axis useReach, undercut access, or fewer setups. Not prestige.
Spindle speed, torque and the material you can cut
The spindle is where the machine meets the material. A high-speed spindle with low torque cuts aluminium at 15,000 rpm and above but stalls in a 20 mm drill in 4140 steel. A geared or belt-driven spindle with high torque at low rpm handles steel and titanium but cannot reach the surface speed that keeps aluminium from welding to the cutter.
Tool holders matter too. HSK and shrink-fit holders run true at high rpm and suit finishing. CAT40 and BT40 are cheaper and fine below about 12,000 rpm. Runout of 0.01 mm on a 6 mm end mill doubles the chip load on one flute, which shortens tool life and hurts the wall finish.
Coolant choice follows the material. Flood coolant controls heat in steel and stainless. Through-spindle coolant clears chips from deep holes. For titanium and Inconel, high-pressure coolant is not optional. It keeps the cutting edge cool enough to survive.
- 1AluminiumHigh rpm, low torque, sharp uncoated or ZrN tooling.
- 2Steel and stainlessLower rpm, higher torque, coated carbide, flood coolant.
- 3Titanium and InconelRigid setup, high-pressure coolant, conservative feed.
What G-code actually controls
G-code is a list of motion and machine commands. G0 moves at rapid, G1 at a programmed feed, G2 and G3 cut arcs. M-codes handle spindle, coolant and tool changes. The control reads these blocks and drives the servos, so every number in the program becomes a physical move.
Feeds and speeds are the two numbers that decide tool life and finish. Surface speed (Vc) and chip load per tooth set the rpm and feed rate. Too high a chip load breaks the tool. Too low rubs the edge and work-hardens stainless. Most shops use a starting chart and adjust from the first part.
CAM software turns a CAD model into toolpaths, then a post-processor converts those toolpaths into the machine's dialect. The post must match the control and the machine's kinematics. A post written for a three-axis mill will not drive a five-axis trunnion correctly.
- 1G0 vs G1Rapid for air moves, feed for anything touching stock.
- 2Chip loadFeed per tooth. Set it before rpm, not after.
- 3Post-processorMust match control and machine kinematics exactly.
Why setup count drives part cost
Every time a part comes off the table, you lose position. Re-clamping in a vise introduces a new datum, and each datum adds its own error. Two setups can easily eat half of a ±0.005 mm tolerance budget before any cutting starts.
Workholding is the quiet variable. Soft jaws machined in place hold a part better than a generic vise. Vacuum plates suit thin plates that would bow under clamping. A five-axis trunnion lets a part be cut on five faces in one setup, which removes re-clamping error entirely.
For prototypes, the goal is often to prove geometry, not to hit final tolerance. In that case a loose setup with a quick check is fine. For production, the setup should be repeatable enough that the tenth part matches the first. That is a fixturing decision, not a programming one.
- 1One setupRemoves re-clamping error and shortens cycle time.
- 2Soft jawsMachined in place to match the part contour.
- 3Prototype vs productionProve geometry first, then lock the fixture.
Which machine class fits which part
Match axis count and spindle to the geometry before quoting.
| Machine class | Best for | Typical limit | Setup count |
|---|---|---|---|
| 3-axis mill | Plates, pockets, holes on one face | No undercut access | 1–2 |
| 4-axis mill | Shafts, flats, indexed features | Tool stays normal to one axis | 1 |
| 5-axis simultaneous | Complex contours, deep undercuts | Higher programming time | 1 |
| Mill-turn | Round parts with milled features | Bar size and chuck limits | 1 |
| High-speed spindle | Aluminium finishing, thin walls | Low torque in steel | 1–2 |
| High-torque spindle | Steel, titanium, heavy roughing | Lower rpm ceiling | 1–2 |
When to use which
If the feature is reachable in one orientation and the material is aluminium, a three-axis machine with a high-speed spindle is the cheaper, faster choice. If the part has undercuts, five faces, or a tolerance stack that two setups would break, use a five-axis center and accept the extra programming time.
Common questions
Does more axes always mean a better part?
No. Axis count should follow the geometry. If every feature is reachable from one direction, a three-axis machine cuts it faster and cheaper.
Five-axis earns its cost when it removes a setup, reaches an undercut, or closes a tolerance stack that re-clamping would break.
How do I choose feeds and speeds for a new material?
Start from the tool supplier's surface speed and chip load for that material, then adjust after the first part. Watch for chatter, discoloured chips, or a change in sound.
In stainless and titanium, too low a chip load work-hardens the surface and kills the next pass. Keep the cutter engaged rather than rubbing.
Why does my surface finish change over a long cut?
Thermal growth is the usual cause. The spindle and ball screws warm up, the frame moves a few micrometres, and the finish drifts.
A warm-up cycle and stable coolant temperature reduce the drift. Very fine finishes like Ra 0.2–0.8 μm need a stabilized machine.
What tolerance can a five-axis center hold?
GreatLight holds ±0.005 mm (±0.0002 in) on five-axis work. That figure depends on material, feature geometry and setup, not on the machine alone.
Thin walls and long tools reduce what is achievable. Share the drawing and the critical dimensions so the process can be planned around them.
Can you machine a prototype and then run production on the same process?
Yes. We run from one prototype to 10,000+ part runs with no minimum order quantity. The prototype setup validates geometry and toolpaths.
For production, the fixture is tightened and the process is locked so the tenth part matches the first.
How does programming affect cost?
Toolpath length, tool changes and setup count drive cycle time. A clean program with fewer air moves and fewer tools cuts cost directly.
Five-axis programs take longer to write and verify, so they are best reserved for parts that genuinely need them.
Send a drawing, get a process plan
We review the geometry, pick the machine class and return a quotation with free DFM analysis within 12 hours.
12-hour quote100% inspectionNo minimum orderNDA on request