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

Get Instant Quote

Build Process

How Its Made CNC Machine: From Casting to Geometry Test

A CNC machine is built the same way it cuts: in sequence, with a check between operations. This page walks through seven stages, the numbers that matter at each one, and the errors that only show up months later as chatter or drift. It is written for engineers and buyers who want to judge a builder, not a brochure.

Castings to geometry test±0.005 mm target4,000 mm max size
how its made cnc machine on a factory assembly floor
Quick Answer

Key takeaways

Casting age mattersA base is rough machined, then left to settle before finish machining. Skip the wait and geometry moves.
Scraping sets accuracyGuide surfaces are hand scraped to 8–12 contact points per 25 × 25 mm, not simply ground flat.
Assembly is a thermal jobSpindle and ballscrew fitting happens in a controlled bay, usually 20 ± 1 °C.
Geometry test is the gateSquareness, parallelism and circular interpolation run before the machine ships.
The machine is made by machinesBases, columns and housings are cut on CNC mills and lathes before they become a CNC machine.
Stage 1–2

How Its Made CNC Machine: Casting and Rough Machining

Every build starts with a base, a column and a table. On a mid-size vertical mill those are cast iron, usually HT250 or a comparable grade, poured into sand molds and left to cool slowly. A base for a 750 × 1,150 × 550 mm travel machine weighs several hundred kilos. Ribbing is designed before the pour, not after, because the stiffness of the finished machine is largely set in the pattern shop.

Once the casting is clean, it gets rough machined. Faces are milled to within 1–2 mm of final size, and mounting holes are drilled undersize. The point is not accuracy yet. The point is to remove the crust, expose a reference surface, and let the casting start moving.

Then the casting rests. Natural aging takes weeks in a yard. A builder in a hurry uses vibration aging or a thermal cycle instead, which compresses the wait to days. Both work if the stress relief is real. Neither works if the casting is finish machined the same week it was poured, which is the single most common cause of a machine that loses squareness in its first year.

At GreatLight we machine bases and housings on our own mills before they ever reach an assembly bay, so the tolerances on those mounting faces are already in the ±0.005 mm class where the drawing calls for it.

Stage 3

Guide Surfaces and Why Scraping Still Exists

After aging, the casting comes back for finish machining. Linear guide mounting faces are milled flat, then either ground or scraped. Grinding is faster and holds flatness well. Scraping is slower and does something grinding cannot: it creates small pockets that hold oil and give the surface a controlled contact pattern.

A scraper works by hand, using a blued reference plate to mark the high spots. Each cycle removes a few micrometers from the contact points and leaves the rest. The target is typically 8–12 contact points per 25 × 25 mm for a machine tool slide, and the points should be evenly distributed, not clustered at the edges.

This step is where a cheap machine and an expensive one start to separate. A ground-only slide can be flat to a few micrometers and still run dry in the middle after a year of use, because there is nowhere for the oil to sit. A scraped slide carries oil across the full travel.

The same logic applies to the ball screw bearing housings and the spindle cartridge seat. If those faces are out of parallel by more than 0.01 mm over their length, the screw will bind at the ends of travel and the servo will draw more current on one side.

Stage 4–5

Subassembly: Spindle, Ballscrew and Drive Train

Subassembly happens away from the main frame, in a cleaner and warmer area. The spindle cartridge is the most sensitive part. Bearings are matched sets, and they are fitted with a preload that is set by the bearing maker and confirmed with a dial indicator on the spindle nose. Runout on a good spindle is under 2 μm at the taper.

Ballscrews are fitted next. The screw is aligned to the guide rails, then the nut housing is shimmed until the screw turns freely by hand across the full travel. A screw that needs force at any point will heat up in service, and thermal growth in a ballscrew moves the tool position directly.

Drive train choice depends on the axis. Linear axes on most machining centers use servo motors coupled directly or through a timing belt. Rotary axes and some high-torque applications use a worm gear or a ground gear pair. Those gears are hobbed and then ground to keep backlash in the low arc-minutes, because backlash in a rotary axis shows up as a step mark on a contoured surface.

Every subassembly is run in before it goes on the frame. A spindle runs at increasing speeds for several hours. A screw and nut pair is cycled across its travel. If a part is going to fail, it should fail here, not in a customer's shop.

Stage 6

Frame Assembly and Alignment

The frame goes together on a leveling bed, and the order matters. The base is leveled first, to within 0.02 mm/m in both directions. The column is bolted down and checked for squareness to the table travel, usually within 0.01 mm over 300 mm. Then the saddle and table go on.

Alignment is done with granite squares, dial indicators and, on larger machines, a laser interferometer. The interferometer measures positioning error along the full axis travel and gives a compensation table that goes into the controller. That table is what lets a machine with a 4,000 mm axis hold a tight tolerance at both ends.

Temperature control during this stage is not optional. Cast iron grows about 11 μm per meter per degree Celsius. A frame assembled in a bay that swings 8 °C between morning and afternoon cannot be aligned to 0.01 mm reliably. Assembly bays for precision machines sit at 20 ± 1 °C, and the machine is allowed to soak at that temperature before final checks.

Cable routing, lubrication lines and way covers go on last. A lubrication line that kinks during assembly may still pass a bench test and then starve a guide rail six months later.

Stage 7

Controller Integration and Commissioning

The controller, whether Fanuc, Siemens or Heidenhain, is installed and wired to the servo drives, the encoders and the operator panel. Encoder feedback comes from the motor, from a linear scale on the axis, or both. A linear scale closes the loop on the actual table position and is the more accurate option, at higher cost and with more to protect from chips and coolant.

Commissioning is a sequence of parameter setting and measurement. Servo gain and feed-forward are tuned so the axis follows the command without overshooting. Backlash and pitch error compensation are loaded. Then the machine runs a test program that exercises every axis, every spindle speed range and the tool changer.

The tool changer gets its own attention. A 24-tool umbrella or a 40-tool chain has to index repeatably, and the spindle orientation must be consistent or the taper will wear unevenly. On a mill-turn center, the same check applies to the sub-spindle and the lower turret.

Only after all of this does the machine cut a test part. The test part is usually a contour with a known circularity requirement and several faces at right angles. If the machine cannot hold circularity on a test part, no amount of process tuning will fix it on a customer's job.

Procedure

Step by Step: What to Check at Each Build Stage

  • 1
    Verify casting age and stress reliefAsk for the pour date and the aging method. Natural aging runs several weeks. Vibration or thermal aging runs days. The finish machining date should be at least two weeks after the pour for natural aging.
  • 2
    Check the rough machining allowanceFaces should carry 1–2 mm of stock for finish machining. Less than 0.5 mm means the foundry surface may break through during finish cuts.
  • 3
    Inspect scraping contactBluing and a reference plate should show 8–12 points per 25 × 25 mm, evenly spread across the slide, not concentrated in the center.
  • 4
    Confirm spindle runout and preloadTaper runout under 2 μm on a good spindle. Ask for the measurement at the nose and 300 mm out on a test bar.
  • 5
    Turn the ballscrew by handFull travel should turn with light, even resistance. Any tight spot indicates misalignment or a bent screw.
  • 6
    Level and square the frameBase level to 0.02 mm/m. Column square to table travel within 0.01 mm over 300 mm. Recheck after 24 hours of soak.
  • 7
    Run the geometry and circular testSquareness, parallelism, positioning error and circular interpolation. Circularity on a test part is the summary number.
  • 8
    Audit the lubrication and coversEvery way and screw should receive oil. Covers should not rub or trap chips. A dry guide rail fails long before the controller does.
Judgement

What to Look For: Budget Build vs Production Build

Same external dimensions, very different internal decisions.

ItemBudget BuildProduction Build
Casting agingDays, often forcedWeeks, natural or verified
Guide surface prepGround onlyGround, then hand scraped
Spindle runout5–10 μm at taperUnder 2 μm at taper
BallscrewC3 rolled, direct fitC3 ground, shimmed and run in
Thermal controlAmbient bay20 ± 1 °C assembly bay
Geometry testBasic indicator checkLaser interferometer plus circular test
DocumentationGeneric manualComp tables and inspection report
Expected service life3–5 years in light duty10+ years with maintenance

The Short Version

A CNC machine is only as good as the casting it was built on and the alignment it received. Ask about aging time, scraping contact and the geometry test. The answers tell you more than the spec sheet.

FAQs

Common Questions

How long does it take to build a CNC machine?

A standard 3-axis vertical machining center takes several weeks from casting to shipment, and the casting aging step is the largest single block of that time. A 5-axis machine or a large gantry build takes longer because there are more subassemblies to align and more geometry to verify.

The number to ask about is not the total build time. It is the time between the pour and the finish machining, because that is where a builder either respects the material or works around it.

Can a machine be built without hand scraping?

Yes, and many are. Ground or milled guide surfaces work well when the load is light and lubrication is reliable. The scraped surface earns its cost on machines that run long shifts, carry heavy tables, or need to hold geometry for a decade.

If a builder offers scraping only as an option, ask what the standard surface prep is and how the oil is meant to stay on the slide.

Why does a new machine lose accuracy in the first year?

The usual cause is residual stress in the casting working itself out after assembly. The second most common cause is thermal drift from a frame that was aligned in an uncontrolled bay.

Both show up as a machine that cuts well in the morning and drifts by afternoon, or one that passes its acceptance test and fails a customer's check three months later.

Are the parts of a CNC machine made on CNC machines?

Mostly yes. Bases and columns are milled on large machining centers, spindle housings are turned on lathes, and gear teeth are hobbed and ground. Ball screws, bearings and controllers come from specialist suppliers.

This is why the tolerance chain matters. A machine assembled from parts held to ±0.005 mm can still be out of square if the alignment step is sloppy.

What is the single most important acceptance test?

Circular interpolation. It combines squareness, straightness, backlash and servo tuning into one measurement, and it is hard to fake. A machine that cuts a round circle within its stated circularity will usually handle real work.

Positioning accuracy on its own can be compensated in software. Circularity exposes the errors that compensation does not cover.

Does the build process differ for a 5-axis machine?

The stages are the same, but the alignment work multiplies. A rotary table adds a second and third axis that must be square to the linear axes and to each other, and the pivot distance has to be measured and entered into the controller.

The rotary table on a mid-size machine is often around Ø400 mm, which sets how much of the work envelope is usable at full tilt.

Need Parts Cut to ±0.005 mm?

Send a drawing and we will return a quotation with a free DFM analysis within 12 hours. Uploads are secure and confidential, and an NDA is available on request.

12-hour quote100% inspectionNo minimum order quantity

Follow

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