Selection guide
Mechanical vs proximity limit switches for a fast CNC axis
Short answer
Wire every overtravel limit normally closed so a broken wire produces the same stop demand as a tripped limit. Choose the home sensor for repeatability and let home-to-index put the datum on the encoder index. No switch type stops a runaway by itself: at 10 m/min an axis coasts tens of millimetres before the drive brakes it, so size the target flag and hard stop from a measured stopping distance.

On this page
- Home duty and limit duty select differently
- Why every limit circuit is normally closed
- Mechanical switch: voltage and current that keep the contacts clean
- Proximity switch: sensing distance, target and pass-by mounting
- Size the overrun from the stopping chain, not the sensing gap
- Homing: bracket the search, set the datum on the encoder index
- Commission and prove the whole chain
- The decision, case by case
- Questions asked
On a CNC axis that rapids at 10 m/min, the opening question — mechanical or proximity — is the wrong first question. The overtravel decision is the circuit: wire every limit normally closed, so a broken conductor produces exactly the input state a tripped limit produces, which is a stop demand. The homing decision is repeatability, and the strongest move is home-to-index: the sensor only brackets a slow search, and the encoder index sets the datum. An inductive proximity switch suits the home duty; a mechanical switch with a normally closed contact suits the limits. Neither style stops a servo runaway on its own: the coast distance belongs to the whole chain of sensor, input, controller, drive and deceleration. At this speed it is tens of millimetres, so measure it, run the sensor pass-by with a long target flag, and put a hard stop behind the travel.
Home duty and limit duty select differently #
A home switch may be imperfect; its only job is to tell the controller where to begin looking. An overtravel limit must catch overrun and expose its own faults, including a severed cable. A servo runaway belongs with the limits, not with homing — but no sensor datasheet answers it alone, because the stopping number comes from the whole trip chain. The table summarises how the two technologies meet each requirement.
| Requirement | Mechanical switch, NC contact | Inductive proximity switch, NC output |
|---|---|---|
| Broken-wire detection at the input | Yes — an open conductor reads like a tripped limit | Yes for the cable, but a shorted output transistor can hold the healthy state |
| Trip repeatability | Contact bounce, wear and oxide; varies with build quality | Sharp electronic transition; take the figure from the exact part's datasheet |
| Silent internal failure | A welded contact holds the circuit closed | A shorted output transistor holds the circuit closed |
| Moving wear parts | Actuator and contacts | None; electronics and cable only |
| Preferred signalling | 24 V with roughly 10 mA through the contacts | Runs natively on the machine's 24 V supply |
One safety note: on a machine tool the overtravel function is safety-related. IEC 60204-1, the electrical standard for machine equipment, requires limit devices in hardware where movement past the end of travel can create a hazard, and ISO 16090-1 covers machining centres and milling machines; the reliability the function must reach, for example a Performance Level under ISO 13849-1, comes from the machine's risk assessment. This article is component selection guidance, not a safety validation.
Why every limit circuit is normally closed #
Normally closed wiring is the decision, independent of switch technology. In the healthy state the circuit carries current; a tripped limit and a cut conductor both remove it, so the controller sees one unambiguous stop-demand state. Normally open wiring hides the fault: a broken wire is indistinguishable from a healthy limit, and the first evidence is the crash the switch was installed to prevent.
For mechanical switches, buy versions specified with positive opening — direct opening action per IEC 60947-5-1 — so the moving actuator itself forces the contacts apart and separation never depends on a spring.
An NC electronic output is not automatically equivalent. Its hidden failure is a shorted output transistor: the sensor's LED can look healthy while the controller input never changes. The indicator proves nothing about the input, so prove the input: during commissioning, disconnect one conductor of each NC limit circuit and confirm the controller reports the same stop-demand state as an actuated limit.
Mechanical switch: voltage and current that keep the contacts clean #
Contact oxide is the reported enemy of mechanical switches. Machines that run large populations of them report oxide film as the leading cause of missed trips and poor repeatability, and two countermeasures recur — both practitioner rules of thumb, not datasheet figures. Signal at 24 V rather than 5 V, because the microscopic arcing as the contact lands burns the film away, and draw roughly 10 mA through the contacts rather than feeding a high-impedance input. Keep both values inside the ratings of the controller input and the switch: 24 V ÷ 10 mA ≈ 2.4 kΩ, so the total loop resistance from the input and any series parts should sit near or below that figure if you want the self-cleaning current.
Mount the switch so motion follows its designed actuation direction, keep a carriage crash from reaching the body, and avoid exposed bending-plate actuators that one impact can leave permanently bent.
Proximity switch: sensing distance, target and pass-by mounting #
IEC 60947-5-2 defines the rated switching distance of an inductive proximity switch against a standard mild-steel target. Machine flags are frequently aluminium, which switches at a fraction of the rated distance, so take the real switch point from the datasheet for your target material or measure it on the machine, and treat the rated distance as a ceiling, never as stopping distance.
Mount pass-by: sensor face beside the line of travel, target flag on the moving carriage. The output then stays asserted while any part of the flag remains in range, so flag length — not sensing distance — decides how long the trip demand survives an overrun. Set the installed gap with allowance for alignment error, vibration and target runout. A tighter gap improved repeatability in one reported installation, but the gap you can hold is a property of your mounting, not of the part.
For repeatability, one reported installation measured home capture better than one division on a 0.01 mm dial test indicator while the axis screw was turned by hand. That is an observation, not a guaranteed specification — the datasheet of the exact part is the number to design with.
Size the overrun from the stopping chain, not the sensing gap #
One reported machine reached a crash condition between 0.05 and 0.5 s after a servo runaway began. Treat that as machine-specific: it is an observation, not a constant. The number your machine owns comes from the chain — sensor and input recognition, controller processing and stop command, drive response, mechanical deceleration — and you measure it.
Worked example, with example values you replace by your own measurements:
- Axis rapid: 10 m/min = 10,000 mm ÷ 60 s = 166.7 mm/s.
- Reaction window from limit trip until the drive starts braking: 0.3 s as the example (sensor, input, controller, drive handshake).
- Coast distance before braking contributes anything: d = v × t = 166.7 mm/s × 0.3 s ≈ 50 mm.
A 4 mm rated sensing distance contributes nothing to that margin; it sets the gap at the trip point. If the calculated coast is 50 mm, the flag must remain in range for at least that far: a 60 mm example flag holds the output asserted through the whole coast with about 10 mm to spare. The hard stop then sits beyond the flag path by more than the coast plus margin. The hard stop controls the consequence when electrical stopping fails; it does not replace the limit circuit.
Decision on the longer-range part: an 8 mm rating buys gap tolerance, not stopping. The difference between the two ratings does not compete with a 50 mm coast; the stopping number is set by the chain and confirmed by measurement.
Homing: bracket the search, set the datum on the encoder index #
Home-to-index demotes switch repeatability to a search detail. The controller runs a slow search across the sensor — slow enough that the axis stops within the sensor's active region instead of running past it; overshoot past a home sensor is its own subject — then captures the next encoder index and defines home at that index. The datum's resolution comes from the index, so the sensor only decides where the search ends, and an index pulse alone cannot set a datum: the pairing of switch and index is what makes the method work, as why an encoder Z index alone cannot home a servo axis explains.
Test the transmission before trusting the datum. In one reported installation, homing a spindle driven through a 1:3 belt landed on the next available index relationship instead of the intended one, because the controller could not apply the belt ratio, and the intended spindle orientation was unreachable. Re-home from different starting positions and with the mechanics at every relevant ratio position; the datum must land on the same index each time. A controller that retries homing after an overshoot — one reported unit allows five attempts — is compensating for an installed gap with too little margin, not offering a feature to design around.
An axis with an absolute encoder keeps the same bracketing role for its reference sensor, as homing an absolute encoder axis to a reference sensor covers. Where no switch is acceptable at a travel end, homing a servo axis to a hard stop with torque limit is the alternative that trades the sensor for a controlled stall.
Commission and prove the whole chain #
Prove each element before releasing speed:
- With the axis parked, actuate each mechanical switch or present the target to each proximity sensor and watch the controller input state, not the sensor's LED.
- Disconnect one conductor from each NC limit circuit and confirm the same stop-demand state appears at the input; that is the broken-wire property, proven rather than assumed.
- Jog toward each limit at reduced speed and confirm pass-by retention, the commanded stop, and clearance to the hard stop. After any drive or input module exchange, repeat these limit checks first — why a servo axis runs past the limit switch after a drive swap is the recorded failure mode.
- Step the approach and homing speeds up while recording trip position and final stop position at each step, and release the full rapid only when the worst-case measured stop keeps physical clearance.
- Re-home from several starting positions and across the transmission's range, and measure repeatability at the axis with a dial indicator rather than reading an LED.
The decision, case by case #
Overtravel, every end of travel: normally closed, no exceptions. Mechanical switches with positive opening contacts at machine signalling levels are the baseline; an NC inductive proximity circuit is acceptable where you accept the shorted-output transistor as its silent failure and the wire-break test passes at the controller input.
Home reference: an inductive proximity switch mounted pass-by, or a well-made mechanical switch with adequate loop current. Run home-to-index so the encoder index sets the datum, and select the sensor for a clean, repeatable transition rather than for its absolute ratings.
Servo runaway: no switch specification answers it. Compute the coast from your measured chain — in the worked example, 50 mm of coast at a 0.3 s reaction window and full rapid — make the flag longer than that coast, set the hard stop beyond it, and release the operating speed only after the worst-case measured stop proves the clearance.
Questions asked
Do software soft limits replace hardware limit switches?
No. A soft limit compares position against a stored boundary and works only while the controller trusts the position estimate. An encoder fault, a lost datum or a runaway that begins with corrupted position defeats the comparison before it can act. Keep soft limits as the inner layer and hardware normally closed limits as the layer that still demands a stop when position is no longer trustworthy.
Can one switch serve as both home sensor and overtravel limit?
Some controllers let one input feed both functions, but that couples a homing fault to the circuit that must demand an overtravel stop. The cleaner arrangement is a separate home sensor at the search position and normally closed limits at both ends of travel. If you must share one switch, wire it to two inputs where the hardware allows and prove both functions separately during commissioning.
Is an 8 mm proximity switch better than a 4 mm part for homing?
Better for installation tolerance, not for speed. The rated switching distance is specified against a mild-steel target, an aluminium flag switches at a shorter distance, and the larger rating leaves room for vibration, alignment error and target runout before the installed gap falls out of the reliable range. The switch point also drifts slightly with temperature within the datasheet's stated range, so re-verify it after any work on the flag. Neither rating changes the distance the axis coasts after the trip.
How do I prove a broken limit wire actually stops the axis?
With the axis parked, disconnect one conductor of each normally closed limit circuit. The controller input must show exactly the state it shows when the switch is actuated, and the stop demand must appear in the control logic. If the input does not change, the input is configured for normally open behaviour or wired to the wrong terminal, and that must be corrected before the next powered move.
What repeatability does a home switch actually need?
With home-to-index, far less than without it: the switch only ends the slow search and the encoder index places the datum, so switch repeatability affects search behaviour rather than final accuracy. Without index capture, the repeatable switch point is the datum itself; take the repeatability figure from the exact part's datasheet and verify it at the axis with a dial test indicator before relying on it.


