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

Get Instant Quote

CNC fundamentals

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.

±0.005 mm tolerance127 CNC machines16 five-axis centersISO 9001 / IATF 16949
CNC guide buildings and programming applied to 5-axis machined engine parts
Key takeaways

What matters most

Structure sets the floorFrame mass and damping decide the best surface finish you can hold before the program is written.
Motion defines the axesBall screws, linear guides and rotary tables set which features can be cut in one setup.
Spindle picks the materialSpeed and torque range decide whether aluminium or titanium is the practical choice.
Code drives the toolFeed, speed and stepover turn a good machine into a good part, or scrap.
Setup count drives costEvery extra fixturing step adds cycle time and stack-up error.
Machine structure

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.

  • 1
    Damping firstCast iron or polymer concrete for thin walls and fine finishes.
  • 2
    Thermal stabilityWarm-up and coolant control before tight-tolerance work.
  • 3
    Guide typeBox ways for steel, linear guides for speed and aluminium.
Motion and axes

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.

  • 1
    Screw pitchFine pitch for thrust, coarse pitch for rapid speed.
  • 2
    BacklashCheck compensation after any crash or heavy cut.
  • 3
    Five-axis useReach, undercut access, or fewer setups. Not prestige.
Spindle and tooling

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.

  • 1
    AluminiumHigh rpm, low torque, sharp uncoated or ZrN tooling.
  • 2
    Steel and stainlessLower rpm, higher torque, coated carbide, flood coolant.
  • 3
    Titanium and InconelRigid setup, high-pressure coolant, conservative feed.
Programming

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.

  • 1
    G0 vs G1Rapid for air moves, feed for anything touching stock.
  • 2
    Chip loadFeed per tooth. Set it before rpm, not after.
  • 3
    Post-processorMust match control and machine kinematics exactly.
Setup strategy

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.

  • 1
    One setupRemoves re-clamping error and shortens cycle time.
  • 2
    Soft jawsMachined in place to match the part contour.
  • 3
    Prototype vs productionProve geometry first, then lock the fixture.
Machine comparison

Which machine class fits which part

Match axis count and spindle to the geometry before quoting.

Machine classBest forTypical limitSetup count
3-axis millPlates, pockets, holes on one faceNo undercut access1–2
4-axis millShafts, flats, indexed featuresTool stays normal to one axis1
5-axis simultaneousComplex contours, deep undercutsHigher programming time1
Mill-turnRound parts with milled featuresBar size and chuck limits1
High-speed spindleAluminium finishing, thin wallsLow torque in steel1–2
High-torque spindleSteel, titanium, heavy roughingLower rpm ceiling1–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.

FAQs

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

Follow us

More from GreatLight

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