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

Get Instant Quote

Machine maintenance guide

How to Repair CNC Machines: A Shop-Floor Procedure

A practical sequence for diagnosing and fixing CNC machine faults without swapping parts at random. Written for maintenance engineers and shop supervisors who need the machine cutting again, with the checks in the order that saves the most time.

Symptom-driven diagnosisMechanical, electrical, controlTest cut before handover
how to repair cnc machines
Read this first

Key takeaways

Write the symptom down before you open anythingAlarm number, axis, program block, spindle speed and load at the moment of failure. A fault with no record turns into guesswork.
Separate mechanical from electrical from controlMost faults land in one of the three. Testing in the wrong domain is where a two-hour job becomes a two-day job.
Change one thing at a timeTwo changes at once and you cannot tell which one fixed it. Log each swap with a timestamp.
Backlash and surface finish usually share a causeIf dimensions drift and the finish goes dull together, look at the thrust bearings and coupling before the control.
A test cut is the only proofThe machine is not repaired until a known part measures inside tolerance on a repeat cycle.
Before you touch a tool

Diagnose first: how to repair CNC machines starts with a written symptom

A stopped machine is a data source. Before the covers come off, write down what the operator saw: the alarm code, the axis or spindle involved, the program block being executed, spindle speed and load, coolant state, and whether the fault repeats at the same point in the cycle. A fault that repeats at one block is almost always program, tool or fixture related. A fault that appears at random times points to electrical or thermal causes.

Pull the alarm history from the control. Older Fanuc, Siemens and Heidenhain controls keep a log you can page through; capture the last twenty entries, not just the last one. The first alarm in a cascade is the useful one. Everything after it is a consequence.

Then ask what changed. A new fixture, a different material batch, a recent pallet change, a power event over the weekend, a coolant concentration that has drifted. Repair work is often just finding the recent change.

Do not start with the control parameters. Parameter corruption is real but it is far less common than a loose connection, a worn coupling or a dull tool. Keep parameters as the last suspect, not the first.

  • 1
    Photograph the alarm screenScreens get cleared when someone cycles power. A photo survives.
  • 2
    Note ambient temperatureThermal drift faults often show up in the first two hours of a shift.
  • 3
    Check the maintenance logA fault that follows a recent repair is usually related to that repair.
The three domains

Sort the fault into mechanical, electrical or control

Mechanical faults show up as noise, vibration, heat or geometry error. A spindle that runs warm and starts leaving a chatter pattern is usually bearings. A table that moves in steps instead of a smooth sweep points to a worn ball screw, a failing thrust bearing or a loose coupling. Gearbox backlash shows as a dimensional error that changes direction with the axis travel direction.

Electrical faults are intermittent by nature. Aging electrolytic capacitors on drive boards bulge or leak and cause faults that appear after the machine has been running for an hour. A contactor that chatters, a relay with pitted contacts, a cable that has been flexing in a drag chain for years. This is where most intermittent stop-start faults live, especially on machines past ten years old.

Control faults are the least common and the easiest to misdiagnose. They show as a single axis losing position, an encoder fault, or a drive that will not enable. Servo drive faults often trace back to a bad encoder cable rather than the drive itself. Read the drive LED pattern before you pull the unit.

A useful test: command a slow move in one axis with the spindle off and your hand on the motor housing and the ball screw nut. You will feel a bad bearing, a rough ball screw and a loose coupling within a few strokes.

  • 1
    MechanicalNoise, heat, vibration, geometry error, backlash that changes with direction.
  • 2
    ElectricalIntermittent faults, faults after warm-up, contactor chatter, cable damage.
  • 3
    ControlPosition loss, encoder alarms, drive enable faults. Check the cable first.
Isolate the fault

Isolate the faulty element before ordering parts

Isolation means proving which single element is at fault, not which subsystem. On a slipping axis, disconnect the motor from the ball screw and run the motor alone. If the motor holds position and the fault disappears, the problem is downstream in the mechanical train. If the fault stays, it is the motor, encoder or drive.

For spindle faults, run the spindle at increasing speed in steps, for example 1,000, 4,000, 8,000 and 12,000 rpm, and watch vibration and current draw at each step. A fault that only appears above a threshold speed is usually balance or bearing related. A fault at every speed from the first revolution is usually drive or wiring related.

For hydraulic and pneumatic systems, check pressure at the gauge and then at the actuator. A pressure drop between the two means a leak or a blocked line. A pressure that holds with the actuator disconnected but drops when connected means the cylinder seals are passing.

Only after isolation does the parts list make sense. Ordering a servo drive before you have proven the encoder cable is where repair budgets quietly disappear.

  • 1
    One variable at a timeDisconnect, test, reconnect. Do not test two subsystems together.
  • 2
    Use the machine's own diagnosticsMost controls show following error and motor current in real time.
  • 3
    Write the result downWhat you ruled out is as valuable as what you found.
Scope and limits

When to stop and call the machine builder

Some repairs belong in the shop and some do not. Spindle cartridge replacement on a high-speed spindle needs a controlled environment, a press and a balancing step. If you fit bearings without balancing, you will be back inside the spindle within weeks. The same applies to direct-drive rotary tables and linear motor axes.

Control software and parameter work is another boundary. Firmware updates, drive parameter restoration and PLC logic changes should come from the machine tool builder or a qualified integrator, because a wrong parameter can drive an axis into a hard stop at full rapid. Rare, but expensive when it happens.

Geometry work is the third boundary. If the machine needs way grinding, column realignment or a full volumetric calibration, the job needs laser interferometry and a reference square, plus the time to bring the machine back into thermal equilibrium. That is a scheduled project, not a shift repair.

A useful rule: if the repair needs a clean room, a balancing step, a firmware change or a laser, schedule it with the builder. Everything upstream of that is fair game for a competent maintenance team.

  • 1
    In scopeCables, couplings, belts, sensors, lubrication, coolant, tooling, fixtures, air and hydraulic lines.
  • 2
    Needs the builderSpindle cartridges, direct-drive tables, firmware, PLC logic, volumetric calibration.
  • 3
    Before restarting after any repairRecheck lubrication, coolant concentration and safety interlocks.
Avoid repeat failures

Stop the same fault coming back

A repair without a change to the maintenance plan is a scheduled repeat. Once the machine is running, go back to the record you wrote at the start and decide which early signal you could have caught. A spindle temperature trend, a backlash measurement, a coolant concentration reading, a pressure log.

Backlash is the clearest example. Measure it every quarter on each linear axis and write the number down. When the value starts to climb, you have weeks of warning before the surface finish degrades. Replacing a coupling on a planned stop costs far less than scrapping a batch of parts.

Coolant is the quiet one. Concentration outside roughly 6 to 10 percent for common water-miscible fluids leads to corrosion, poor finish and tool wear. Check it with a refractometer weekly and top up with premix, not neat water.

Finally, keep a machine-specific fault file. The next time the same alarm appears, the diagnosis takes twenty minutes instead of two days.

  • 1
    Quarterly backlash logOne number per axis, compared against the last reading.
  • 2
    Weekly coolant checkConcentration, pH and tramp oil. Adjust with premix.
  • 3
    One fault file per machineAlarm, cause, fix, date. This is the cheapest tool in the shop.
Procedure

Step by step: how to repair CNC machines in a working shop

  • 1
    Lock out and record the stateApply lockout/tagout, then record the alarm code, axis, program block, spindle speed and load, coolant state and repeatability. Photograph the alarm screen and the position display. This record is the difference between a repair and a guess.
  • 2
    Read the full alarm historyPage back through the control log and capture the last twenty entries. Identify the first alarm in the cascade. Write the sequence in order on paper so the pattern is visible.
  • 3
    Reproduce the fault under controlRun the machine in single block, at reduced feed, with the spindle off where it is safe. Note whether the fault occurs at the same point in the cycle every time. Repeatable at one block: tool, program or fixture. Random: electrical or thermal.
  • 4
    Separate mechanical from electricalCommand slow moves with your hand on the motor housing and the ball screw nut. Noise, heat or roughness is mechanical. Clean, quiet motion that still faults is electrical or control.
  • 5
    Isolate the single elementDisconnect the motor from the ball screw, or the actuator from the pressure line, and retest. If the fault disappears, the problem is downstream. If it stays, the problem is in the drive train or the control loop.
  • 6
    Inspect cables and connectors before boardsFlex the drag chain cables through their full travel while watching the position display for jumps. Look for chafing, hardened insulation, coolant ingress at connectors, and loose shield terminations. Replace any cable that changes the fault when moved.
  • 7
    Replace one component, then retestFit the part, clear the alarm and run the same test cycle. Log the swap with a timestamp. Two changes at once makes the result unreadable.
  • 8
    Cut a test part and verify geometryRun a known part from a proven program. Check a minimum of three dimensions across the working envelope, then repeat the cycle five times and compare. A machine is repaired only when the repeat spread sits inside the drawing tolerance.
Fault location

Symptom, likely cause and first action

Use this to decide which domain to test first. Parameters are a last resort, not a first move.

SymptomLikely causeFirst action
Axis stops, alarm at same blockTool wear, program error, fixture shiftCheck tool and offsets, rerun in single block
Dimensions drift with travel directionBacklash in ball screw or thrust bearingMeasure backlash each direction, inspect coupling
Spindle warm, chatter after 1 hourSpindle bearing wear or lubricationLog temperature against time, check oil flow
Intermittent stop on 10+ year machineAging capacitors on drive boardInspect boards for bulging or leaking caps
Following error on one axis onlyEncoder cable or feedback connectorFlex the cable through full travel, watch display
Pressure drops under loadCylinder seal passing or line leakTest pressure at gauge then at the actuator
Drive will not enable after power upContactor, relay or interlock chainWalk the safety interlock chain one device at a time

Repair the machine, then fix the reason it failed

Diagnose by symptom, isolate one element, change one part, prove it with a test cut. If the fault returns within a few weeks, the repair addressed the effect and not the cause. With 127 high-precision CNC machines across three plants and 15 years on the shop floor, our engineers can quote repair work, replacement parts or a new run of the same component.

FAQs

Common questions

Can a CNC machine be repaired in place, or does it need to be moved?

Most faults are repaired in place: cables, couplings, sensors, belts, lubrication, coolant and hydraulic components. The machine only needs to be moved or partially dismantled for way grinding, column realignment or full spindle cartridge work, and those are scheduled projects rather than shift repairs.

If the machine is still holding position and the fault is isolated to one element, plan the repair in place and keep the machine on its foundation.

How do I know if the servo drive or the encoder cable is at fault?

Flex the cable through its full travel while watching the position display or the following error readout. If the reading jumps when the cable moves, the cable or connector is at fault. If the reading is stable under flexing and the drive still trips, suspect the drive or the motor.

Check the drive LED pattern against the manual before pulling the unit. The LED usually narrows the fault to a category without any tools.

How often should backlash be measured?

Once a quarter per linear axis is enough for most production machines. Measure in both directions and record the number against the last reading. A sudden change points to a coupling, a thrust bearing or a loose lock nut rather than normal wear.

Machines running hard in abrasive material benefit from a monthly check on the axes that carry the most load.

Is it worth repairing a machine that is more than ten years old?

Usually yes, if the mechanical structure is sound and the control is still supported. On machines past ten years, plan for electrolytic capacitors on drive boards, drag chain cables and hardened lubrication lines. Those three items account for a large share of intermittent faults on older machines.

The decision point is control support. If the builder no longer supplies parts or firmware for the control, the economics change and a retrofit becomes the honest comparison.

What should be checked before the machine goes back into production?

Lubrication levels and flow, coolant concentration, air and hydraulic pressure, safety interlocks and door switches, then a test cut on a known part with at least three dimensions checked across the working envelope. Repeat the cycle five times and compare the spread.

Only release the machine when the repeat spread sits inside the drawing tolerance. A machine that cuts one good part and drifts on the fifth is not repaired.

Can a repair be done without taking the machine out of tolerance?

Yes, if you keep the work mechanical and avoid changing parameters. Swapping a coupling, a cable or a sensor does not affect geometry. Entering compensation values or altering drive parameters does, so those changes should be logged and verified with a test cut.

If compensation values are changed, record the old values first. You will want them if the new values do not solve the problem.

Send us the part drawing or the damaged component

Upload a drawing, a photo or a failed part and we will come back with a quotation and a DFM analysis within 12 hours. No minimum order quantity, from one replacement part to a 10,000-piece run.

12-hour quoteNo minimum order quantity100% inspection before shipmentNDA on request

Follow our work

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