Explainer
How a Proximity Switch Detects a Target Bolt on an Axis
Short answer
The switch detects a deliberate ferrous target: a bolt protruding from the drive rail that sweeps past the sensing face at about 1/32 to 1/16 inch, a credit card's thickness. Detection turns on that gap falling inside the switch's assured operating distance, 0.81 times Sn against mild steel and less for stainless, brass or aluminium. The controller then reads the input; the program decides whether it means home, a pause, or nothing at all.

On this page
Most router-class and gantry axes do not sense the rail or the carriage at all. The axis proximity switch watches one deliberate feature: a bolt that protrudes from the drive rail and sweeps past the sensing face at a clearance of about 1/32 to 1/16 inch — roughly a credit card's thickness. That bolt is the target, a small ferrous mass that enters the switch's sensing field once per pass. What happens next is not the sensor's decision: the controller sees an input change, and the machine's program decides whether it means 'you are home', 'pause here', or nothing at all. Below is the physics behind the gap, the arithmetic for setting it, and how to tell which link of the detection chain is failing.
Why the target is a single protruding bolt #
A proximity switch makes no contact; it reacts to metal entering a finite field in front of its active face. To create a position event it needs a discrete target that crosses that field — a continuous rail would hold the output on permanently and never mark a point. The protruding bolt is the cheapest discrete target there is: ferrous, replaceable, and adjustable, because a threaded shank with a jam nut lets you set the passing gap without touching the sensor bracket.
Earlier machines did this job with a mechanical roller switch that the carriage physically struck; replacing a mechanical limit switch with a proximity sensor moves the wear item from the switch to a bolt you can swap in minutes. The one hard rule is no contact: the bolt must sweep past the face cleanly. A strike polishes the active face, bends the bracket and destroys repeatability, so any shiny witness mark on the bolt or the face means the gap is already wrong. A credit card, about 0.76 mm (0.03 in) thick, is the field gauge for the tight end of this clearance.
Alignment counts as much as distance: the bolt head should sweep across the centre of the active face. A head that grazes the rim of the field loses range exactly like a larger gap would.
The field numbers that decide detection #
The governing document is IEC 60947-5-2, the product standard for proximity switches. It requires the manufacturer to state a rated sensing distance, Sn, measured to a standard target — a square mild-steel plate of defined size, an 18 mm square for an M18 switch — and to keep working distance within tolerance over the switch's whole rated temperature and supply range. From the same tolerances comes the assured operating distance: 0 to 0.81 × Sn. Ten percent comes off for manufacturing spread and another ten for temperature and supply; anywhere inside that band the switch must operate, and outside it nothing is promised.
Hysteresis separates the two switching points: the output operates at one gap and releases at a slightly larger one, typically a few percent up to about 15% of Sn. That gap between turn-on and turn-off stops chatter when the bolt lingers at the edge of the field, and it is why the event position shifts slightly if the axis ever approaches from the other side.
The rated distance assumes mild steel. Other metals carry the sensor's induced eddy currents less readily, so the effective range shrinks by a correction factor. Datasheets quote factors close to these rule-of-thumb values; take the exact figure from the datasheet of the exact part:
| Target metal | Typical correction factor |
|---|---|
| Mild steel (the standard target) | 1.0 |
| Stainless steel | about 0.8 |
| Brass | about 0.5 |
| Aluminium | about 0.4 |
| Copper | about 0.3 |
All-metal 'factor 1' designs hold close to the same range on every metal and are the way out when the target cannot be steel. Target size pulls the same direction: a head presenting about half the standard target's area returns roughly half the distance, and a published sensing-distance-versus-target-size curve beats this linear rule when the datasheet has one.
Worked example: the gap budget on an M18 switch #
Take an illustrative axis: an M18 inductive switch whose datasheet states Sn = 5 mm to mild steel, and a target of an M8 stainless-steel bolt whose head is 13 mm across flats. This is a calculated example for those inputs, not a measurement.
Against mild steel the assured operating distance is 0.81 × 5 mm = 4.05 mm. The stainless factor brings the effective rated distance to 0.8 × 5 mm = 4.0 mm, so the assured distance falls to 0.81 × 4.0 mm ≈ 3.2 mm. Now the small head: its presented area is about π × (6.5 mm)² ≈ 133 mm² against the 324 mm² standard square, a ratio of 0.41, and the linear rule takes the range to 0.41 × 4.0 mm ≈ 1.6 mm — an assured distance of only 0.81 × 1.6 mm ≈ 1.3 mm.
The decision falls out of the arithmetic: set the passing gap at 0.8 mm, the credit-card end of the clearance, which sits inside that 1.3 mm floor with roughly 40% margin. The loose 1/16-inch gap sits outside the floor; real sensors usually beat the linear size rule, so it may still switch, but the switch would then work at the ragged edge of its own hysteresis every time the rail flexes. With a full-width mild-steel target instead, the assured distance is the whole 4.05 mm and a 1.5 to 2 mm gap is comfortable.
From detection to action: the three-stage chain #
Detection is only stage one. Stage two is electrical: the switch output reaches a controller input. Stage three is interpretation: the program decides what the change means — set the home reference, pause motion until the operator continues, or ignore it, depending on the routine that is running. An inductive proximity switch cannot sense motion itself; it reports only whether a target is inside its field at this instant, so the homing routine supplies the travel, the approach direction and the meaning.
That division tells you where to look. The sensor's built-in LED is the local truth — target detected or not. The controller's input status display is the arrival truth. Compare them:
| Sensor LED | Controller input | Axis response | Fault lies in | First check |
|---|---|---|---|---|
| never changes | never changes | none | gap, alignment, supply or the sensor itself | measure the closest gap, then the supply at the sensor |
| changes cleanly | never changes | none | output wiring or input assignment | continuity with power isolated, then the input on the status display |
| changes cleanly | changes cleanly | none or wrong | the program's treatment of that input | read the active routine: used, paused-on, or ignored |
| flickers mid-pass | flickers | erratic | marginal gap or loose mounting | static gap check, then bracket and bolt fasteners |
Order the checks by cost: the gap and the supply are free, the wiring is next, and the program is last — it is the only stage that can ignore a perfectly healthy signal. Note the non-fault case too: during a normal cut many machines deliberately ignore these inputs, so a switching LED that stops nothing is often the program doing its job.
What sets the repeatability of the trip point #
Where the event lands depends on three things you control. First, sensor repeatability, commonly quoted at 2% of the rated distance or better — 0.1 mm in the worked example. Second, approach discipline: always home from the same direction, because approaching from the other side shifts the event by the hysteresis band, a few percent of the rated distance. Third, speed: the position error equals approach speed multiplied by the total delay, the sensor's response time plus the controller's input filter. At 25 mm/s with 2 ms of combined delay that is 25 mm/s × 0.002 s = 0.05 mm; at 250 mm/s the same delay costs 0.5 mm. Keep the homing approach at tens of millimetres per second, as the usual fast-then-slow two-pass routines already do, and this term stays negligible.
None of it survives a loose bracket. Rail flex, a soft mount or an unlocked bolt throws away more repeatability than the electronics ever add, so the mechanics come first.
Setting and proving the gap #
- Lock out motion before any hand or gauge goes near the rail. This input is a control signal, not a safety function: anything relied on to prevent overtravel or protect a person must come from safety-rated devices and logic chosen under ISO 13849-1 from the machine's risk assessment, never from a program watching a proximity switch.
- Bring the carriage to its closest approach using the machine's documented jog or hand-move procedure, and measure the bolt-to-face gap with feelers or the credit-card gauge.
- Adjust the bolt's jam nut or the bracket to the worked example's 0.8 mm for a small stainless head, or to roughly half the assured distance when the target is full-width mild steel; confirm the head sweeps the centre of the active face, not its rim.
- Check every fastener and hunt for witness marks — polished spots on bolt or face mean previous contact; correct the geometry before restoring power.
- Restore power and watch both indicators over several slow passes: one clean LED transition and one matching input transition per pass, no flicker.
- Run the actual homing routine five times and measure the reference position with a dial indicator each time; the spread should sit inside the repeatability budget from the previous section.
The decision for each case #
- Mild-steel bolt, head about as wide as the active face: the assured range sits near the top of the standard band, so set about 2 mm and stop worrying.
- Stainless bolt with a modest head, the usual factory arrangement: derate for the metal and the size, then keep the credit-card gap of about 0.8 mm. Do not open it to the loose end of the range and trust it.
- Brass or aluminium target: expect half the rated range or less. Swap in a steel bolt, or an all-metal factor 1 sensor, before fighting the clearance.
- Head much smaller than the face: enlarge the target with a steel washer or tab rather than shaving the gap below a credit card.
- No mounting spot that holds a target repeatably: home against a hard stop with torque limit instead.
- Flicker or intermittent detection: the gap is at the edge of the field or the bracket moves. Tighten the gap first — it is free — then torque and witness-mark the fasteners.
Questions asked
Can I use a steel tab or disc instead of a bolt as the target?
Yes. A mild-steel tab or washer stack screwed or welded to the rail works as long as it presents at least as much area as the bolt head it replaces and cannot shift. Glued targets creep on heated or oily rails, so prefer a mechanical fixing, and keep the tab's passing gap inside the same assured distance you would use for a bolt.
Does a longer or thicker bolt increase the sensing distance?
Not usefully. Inductive sensing draws its signal from the target's surface layer, so thickness beyond roughly a millimetre or two adds almost nothing, and extra length only brings the bolt closer to striking the sensor face. Presented width is what buys range: a head nearer the active-face diameter restores far more of the rated distance than making the bolt longer.
Can one switch with two bolts mark both ends of travel?
It can produce two events, but the program must tell them apart from travel direction or previous position, which is fragile after a power cycle. The standard arrangement is one switch and one target per function — home, end-of-travel, carriage mid-position — so every event has a single meaning. Wire the extra switch rather than doubling targets onto one input.
Why not sense the aluminium rail directly and skip the bolt?
Two reasons. A continuous rail keeps a target permanently inside the field, so the output never makes a discrete event. And an inductive switch on aluminium keeps only about 0.4 of its rated range, which a moving clearance will not survive. The bolt creates the single clean transition the program needs; an all-metal factor 1 sensor fixes the metal problem but not the continuous-target problem.
How do I confirm the switch is inductive before trusting these numbers?
Read the marking on the body and its datasheet. Inductive types list a correction-factor table for target metals and ignore plastic, wood and liquids entirely, which is why a plastic bolt never triggers one. Capacitive types react to nearly any material and would respond to the rail continuously, and Hall-effect types need a magnet rather than a steel bolt. The correction-factor arithmetic applies only to the inductive type.

