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

Get Instant Quote

CNC maintenance guide

Analysis and Treatment of the Reasons for Limit Alarm on CNC Machine Tools

A limit alarm stops the axis, but the cause is often not the switch. This guide walks machine builders and maintenance engineers through the analysis and treatment of the common reasons for a limit alarm: broken circuits, stuck switches, soft-limit settings and grid offset. Read it to decide which cause to check first and how to bring the axis back to a working position.

Hard limits vs soft limitsSwitch and wiring checksGrid offset recovery
CNC Knowledge: FANUC alarm number, no more leafing through books.
Start here

How to read a limit alarm before you touch the machine

Write down the axis letter, the alarm code and what the machine was doing when it tripped. Those three facts decide which of the checks below you run first.

Cause group 1

Hard limit switches, wiring and the overtravel release circuit

Most limit alarms come from the hard limit circuit. Each axis carries a deceleration switch and an overtravel switch at both ends of travel. The deceleration switch cuts rapid feed and hands the axis over to a slow approach; the overtravel switch is the last line of defense and drops the drive. When either contact opens, the control sees an overtravel condition and stops the axis with an alarm.

A broken wire is the most common reason. Cables running inside the drag chain flex thousands of times per shift, and a single strand can break while the insulation still looks intact. The circuit reads open even though the switch itself is fine. Check continuity from the switch terminal back to the I/O board, not just at the switch. Flex the cable by hand while watching the meter. A reading that jumps means the conductor is broken inside.

Coolant ingress and chips cause the second group of faults. A switch mounted low on the column collects fine chips and cutting fluid, and the plunger slowly stops returning. The contact stays open after the axis backs off, so the alarm clears only after a manual reset. Blow out the switch body, check the plunger travel by hand, and confirm the roller returns to its rest position without help.

The overtravel release function deserves its own check. Most controls offer a parameter or a soft key that ignores the overtravel input so the axis can be jogged back into range. If that function does not work, the wiring between the switch, the relay and the control is suspect. Trace the whole loop before replacing parts.

  • 1
    Measure at the switch, then at the boardA good reading at the switch and an open reading at the board points to the cable, not the switch.
  • 2
    Watch the I/O LED while joggingThe diagnostic screen shows the input state live. It confirms whether the control actually sees the contact.
  • 3
    Check both ends of travelA machine that trips on one side only usually has a mechanical or wiring fault on that side.
Cause group 2

Soft limits, parameter settings and reference position loss

Soft limits sit in the control and stop the axis before the hard limit is reached. They are set as distances from the reference position, so anything that changes the reference point also shifts the soft limit window. A battery that has gone flat on an absolute encoder is the classic trigger. The control powers up without a valid reference and places the window in the wrong place, and the axis trips as soon as it moves.

The fix starts with a reference return. Bring the axis to the reference mark at low feed, confirm the position display reads the expected value, then compare the soft limit parameters against the machine drawings. Do not simply widen the limits to clear the alarm. Widening them hides the real fault and lets the axis run into the hard stop, which can damage the ball screw or the coupling.

Some alarms come from the control software itself. Certain models apply a check on the commanded position during tool change or pallet change, and a parameter that was correct in the factory no longer matches the current configuration. Check the parameter set against the machine builder's list and look for values that changed after a board swap or a software update. Keep a printed copy of the working parameter set on the machine.

Work offset and tool length data can also push an axis past a soft limit. A wrong tool length value makes the control think the tool is longer than it is, and the Z axis stops short. Verify the tool length against a setting gauge before you touch the limit parameters.

  • 1
    Reference first, parameters secondA reference return that fails tells you more than any parameter screen.
  • 2
    Log every parameter changeDate, value and reason. This pays off the next time the same alarm appears.
  • 3
    Do not widen limits to clear an alarmIt removes the symptom and leaves the mechanical risk in place.
Quick reference

Limit alarm symptoms and the first check to run

Match the symptom to the likely cause before you open the cabinet.

SymptomLikely causeFirst check
Alarm on one axis, one directionOvertravel switch or its cableContinuity at the switch and the I/O board
Alarm clears only after resetStuck plunger or chip jamFree travel of the switch plunger
Alarm after power-upReference position lostReference return and battery voltage
Alarm during tool changeSoft limit or tool length dataTool length value and soft limit window
Alarm on all axes at onceCommon supply or E-stop loopControl power supply and E-stop chain
Intermittent alarm while cuttingBroken strand in the drag chainFlex the cable while watching a meter
Cause group 3

Grid offset, encoder feedback and drive alarms

A grid offset error produces a limit alarm that looks like a switch fault but is not. The control compares the encoder zero pulse against the mechanical reference mark. When the two drift apart, the axis reaches the reference position and the control refuses to accept it, then trips on the next move. A loose coupling, a slipping pulley or a bumped encoder can all shift the grid offset.

Re-establish the grid offset with the procedure the machine builder specifies. On most controls this means jogging to the reference mark, clearing the grid shift parameter, and letting the control re-latch on the zero pulse. After that, run the axis through its full travel at low feed and watch the position display for a jump. A jump of one encoder pitch points to a coupling problem, not a parameter problem.

Drive alarms sometimes appear as limit alarms because the drive drops the axis and the control reports the position loss as an overtravel. Read the drive's own fault code before you chase the limit circuit. An overload, an overcurrent or a feedback loss all produce the same axis stop from the operator's point of view.

Keep the encoder cable away from the spindle and servo power cables. Noise on the feedback line can create false position readings, and the control reacts with a limit alarm that disappears on the next cycle. Shielded cable with a single-point ground at the drive end is the standard treatment.

  • 1
    Read the drive fault firstThe axis stop is a symptom. The drive code names the cause.
  • 2
    Check the coupling before the parameterA slipped coupling moves the grid offset and no parameter change will hold.
  • 3
    Separate feedback and power routingNoise on the encoder line causes alarms that come and go.
Recovery

Bringing the axis back into range safely

Once the cause is clear, recovery follows a fixed order. Switch to handwheel or jog mode, reduce the feed override, and use the overtravel release function to move the axis off the switch. Move in the direction that reduces travel, never deeper into the stop. Confirm the position display is counting in the right direction before you move more than a few millimeters.

After the axis is clear, reset the alarm and run a reference return. If the reference return completes and the position display matches the drawing value, run the axis through the full stroke at low feed and watch for a repeat alarm. A second alarm at the same point means the cause was not found.

Record what you changed. Switch replacement, wiring repair, battery change or parameter edit. The next shift needs that information, and so does the next person who sees the same alarm code. A short maintenance log on the machine door is worth more than a full report in an office.

GreatLight runs 127 high-precision CNC machines across three plants, including 16 simultaneous 5-axis machining centers, so we see these faults from the production side as well as the maintenance side. The same checks apply whether the machine is cutting a 4,000 mm frame or a Ø400 mm rotary table part.

  • 1
    Jog out, do not power throughForcing the axis against the stop damages the screw and the coupling.
  • 2
    Reference return confirms the fixA complete reference return with the correct display value is the pass mark.
  • 3
    Log the changeDate, part, action. Keep it short and keep it on the machine.
FAQs

Limit alarm questions engineers ask next

Can I disable the hard limit switch to get the machine running?

No. The hard limit is the last protection for the ball screw, the coupling and the way covers. Disabling it lets the axis run into the mechanical stop under full torque.

If you need to move the axis for diagnosis, use the overtravel release function instead. It ignores the input for jogging only and keeps the switch in the circuit for normal operation.

Why does the alarm clear after a reset and then come back on the next cycle?

An intermittent return usually means a broken strand in the drag chain cable, a loose terminal or a plunger that does not fully reset. The contact closes long enough to clear the alarm, then opens again under vibration.

Flex the cable while watching a meter and check the terminal screws on both ends. Replace the cable if the reading changes.

How often should the limit switch be checked?

On a machine running two or three shifts, check the plunger travel and the terminal tightness at every scheduled maintenance interval. Blow chips and coolant out of the switch body at the same time.

Replace the switch when the plunger does not return on its own or the contact resistance climbs above the value in the builder's data sheet.

What causes a limit alarm right after a battery change?

The reference position was lost while the battery was out. The control powers up without a valid reference, so the soft limit window sits in the wrong place.

Run a reference return, confirm the position display matches the drawing value, then check the soft limit parameters before running production.

Is a soft limit alarm different from a hard limit alarm?

Yes. A soft limit alarm comes from the control before the axis reaches the switch. A hard limit alarm means the switch or its circuit has already opened.

The alarm message and the diagnostic screen usually tell you which one tripped. Treat a soft limit alarm as a data or reference problem, and a hard limit alarm as a wiring or switch problem.

Need parts machined while the machine is down?

Send us the drawing and we will return a quotation with 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

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC