
A proximity sensor works on the bench but fails on the machine, or triggers on the wrong object. The sensor was chosen for its rated distance, but the actual target, mounting, and metal around it changed the behavior. Inductive proximity switches are not just a switch with a range; their detection depends on the target and the environment.
How an inductive proximity switch works
An inductive proximity switch generates an electromagnetic field from its sensing face. When a metal object enters the field, eddy currents in the metal load the oscillator, and the switch changes state. It detects only metal, not plastic, wood, or liquids. It is non-contact, wear-free, and sealed, which is why it dominates machine presence and position sensing.
Rated vs real detection distance
The datasheet lists a rated operating distance, usually for a standard mild-steel target of a certain thickness and size. That number is not guaranteed on arbitrary parts. Detection drops for smaller targets, thinner targets, and non-ferrous metals. Aluminum and stainless steel have shorter ranges than mild steel, sometimes 30 to 50 percent less. Design for a working distance well inside the rated value, often half the rated range, so tolerance and temperature drift do not cause missed detections.
Target size and material
The target should be at least as large as the sensor’s sensing face, and thick enough. A small screw head is a weaker target than a plate. If the target is smaller than the standard, detection distance shrinks. For non-ferrous metals, derate the range. Don’t mount the sensor expecting the full rated distance on a small stainless tab; pick a longer-range sensor or bring the target closer.
Flush vs non-flush mounting
Sensors are designed for flush or non-flush mounting. Flush sensors can be mounted flush in metal, with the face even with the surrounding metal. Non-flush, or shielded-free, sensors have a larger sensing range but must be mounted with a gap of free space around the face, because surrounding metal attenuates the field. Mount a non-flush sensor flush in a bracket and its range drops. Follow the manufacturer’s mounting dimensions, including the side clearance.
Spacing between sensors
Two inductive sensors mounted close together can interfere, because each other’s fields load the oscillator. Keep them apart by the recommended spacing, or stagger them side by side as specified. Mounting them face to face or too close causes false or erratic switching. Check the mutual-influence distance in the datasheet.
Output type and wiring
Sensors come as NPN or PNP, normally open or normally closed, and as three-wire DC or two-wire AC. Match the output to the PLC input. Wiring mismatches are common: a PNP sensor into an NPN input does not work. Check the sensor color code and the PLC input common. Use the correct voltage, and protect against reverse polarity and short circuits where the device allows.
Leverage and brackets
Mount the sensor rigidly. A vibrating bracket lets the target move in and out of range, causing intermittent triggers. Use a fixed bracket or threaded barrel with locknuts. Set the sensing gap with a feeler or a shim at the expected target position, then lock it. Don’t rely on eyeballing the gap.
A worked mounting example
Take an M18 inductive sensor rated at 8 mm on mild steel. The actual target is a small stainless tab about 10 mm wide. Stainless derates the range to roughly 50 percent, and the small tab reduces it further. Design for a working gap of 2 to 3 mm, not 8. Mount the sensor flush if it is flush-rated, or leave the required clearance around a non-flush model. With the gap set and locked, the tab is detected reliably. Expecting 8 mm on a small stainless part causes intermittent misses. Pick a sensor with enough rated range so the derated and reduced working distance still clears the mechanical tolerances.
Other sensor technologies
Inductive switches detect only metal. To detect plastic, wood, liquids, or non-metallic parts, use capacitive sensors, ultrasonic sensors, or photoelectric sensors. Capacitive sensors also detect through non-metal walls but are sensitive to moisture and material variation. Photoelectric sensors detect larger distances but need alignment and can be confused by dust. Choose the sensing principle for the target, not the cheapest part.
Nominal versus guaranteed range
The rated operating distance is nominal, not guaranteed. Actual switching varies with temperature, voltage, and target variation. The guaranteed working distance is a fraction of it. For machine stops or safety-related detection, don’t rely on a single proximity switch at the edge of its range; add redundancy or use a safety-rated device. Proximity switches are for presence and position, not for precision or safety by themselves.
Hysteresis and chatter
Proximity switches have hysteresis: they turn on at one distance and off at a slightly different one, so a vibrating target does not chatter on and off. If the target buzzes around the threshold, the output may chatter. Increase the gap margin or damp the vibration. A switch that chatters is usually at the edge of range, not defective.
Wiring and PLC input
Use shielded cable where there is drive or inverter noise, and route sensor cables away from motor power cables. A noisy signal causes phantom triggers. Verify the PLC input type and sensor output polarity with a meter. For long cable runs, check the sensor’s allowable cable length and voltage drop. Many intermittent faults trace to a loose wire or a noise pickup, not the sensor.
Maintenance and replacement
Proximity switches are sealed and have no moving parts, but they can fail from impact, overvoltage, or contamination. Mark the gap and the wiring when installing, so replacement is a like-for-like swap. Don’t adjust the gap on a replacement; set it to the documented value. Test the output with a target after installation.
Common mistakes
Expecting full rated range on a small non-ferrous target, mounting a non-flush sensor flush, neglecting side clearance, wiring PNP into NPN, and leaving the bracket loose are the recurring errors. Treat the sensor as part of a mechanical design: target, gap, bracket, and wiring all have to be right. The datasheet range is a starting point, not a guarantee.
Setting the gap on the machine
During commissioning, move the target through its full motion and watch the sensor output at both extremes. Check that the target is detected at the farthest position and not falsely triggered by nearby metal brackets or bolts. Use a shim of the desired gap when tightening the locknuts, then remove the shim and verify. Run a few cycles and confirm the output is stable. If the target vibrates, add margin or damp the bracket. Document the gap and the sensor model on the drawing, so future maintenance does not re-invent the setting.
A sensor that works cold but drifts when the machine warms has reached the edge of its thermal range. Leave more margin, or relocate it away from heat. Proximity switches are reliable only when installed with margin for the real operating conditions.
Diagnosing a misbehaving sensor
If a proximity switch misses or falsely triggers, check in this order: target material and size, actual gap, surrounding metal and side clearance, bracket vibration, wiring and PLC polarity, and noise. Test the output at the PLC input with a meter, not only at the sensor, because a broken wire or loose terminal looks like a dead sensor. Check for nearby drives or contactors inducing noise. Only after these basics, suspect the sensor itself. Most failures are installation or environment, not the electronics.
Keep a spare of each sensor type on hand, because a failed switch usually needs same-day replacement. Label the cable and the bracket position so swapping is quick. A sensor mounted with a record of its gap is a five-minute repair; one installed by guesswork can eat a shift.
Keep a spare of each sensor type on hand, because a failed switch usually needs same-day replacement. Label the cable and the bracket position so swapping is quick and the gap stays correct. A sensor installed with a record of its gap is a five-minute repair; one installed by guesswork can eat an entire shift. Treat mounting records as part of the sensor specification, not an optional note.
Keep a spare of each sensor type on hand, because a failed switch usually needs same-day replacement. Label the cable and bracket position so swapping is quick and the gap stays correct. Treat the mounting record as part of the sensor spec, not an optional note.
Keep a spare of each sensor type on hand, because a failed switch usually needs same-day replacement. Label the cable and bracket position so swapping is quick. Treat the mounting record as part of the spec.
Bottom line
Inductive proximity switches detect metal only, and their real range depends on target size, material, and mounting. Design at half the rated distance, account for non-ferrous derating, respect flush and side-clearance rules, keep sensors apart, and match NPN or PNP to the PLC. Mount rigidly and set the gap deliberately. Most misbehaving proximity switches were installed assuming the datasheet range applies to the actual target. It usually does not.