Sensor Switching Point Explained: Why Detection Position Changes
A switching point is the boundary at which a sensor changes its detection state. The position you observe can shift because the target signal, mounting, settings or environment changes—or because a moving target travels farther before the controller records the event. Start by separating those two kinds of change.
What is a sensor switching point?
For a proximity or presence sensor, it is the target position at which the detection state changes under a stated setup. For a pressure or level switch, the same term can mean a process-value threshold. This guide focuses on position detection: why the same machine may appear to detect a part earlier, later or inconsistently.
The important distinction is where the sensor detects the target versus where the machine records that detection. An inductive sensor evaluates its interaction with metal; a photoelectric sensor evaluates light. Neither creates an infinitely thin, universal detection plane.
A useful fault report therefore says “the sensor output changes later on the same slow approach” or “the PLC position changes only at higher speed.” Those observations lead to different checks. A visible indicator LED alone is not a precision timestamp for the output.
Why are the operate and release points different?
The sensor normally has two transition boundaries. It detects the approaching target at the operate point and returns to its previous state at the release point. Their separation is hysteresis, also called differential travel. This separation helps prevent repeated switching when the signal fluctuates near a boundary.
Keep the detection state separate from ON/OFF logic
In the normally open example below, detection turns the output ON. A normally closed output reverses that electrical logic. Photoelectric light-on/dark-on modes need their own interpretation. Label the state and direction instead of assuming that every approaching object produces an ON edge.
Operate point
Output becomes ON
Between the boundaries,
the previous state matters.
Release point
Output becomes OFF
Hysteresis is not the same as repeatability
For this example, the separation is 7.8 − 7.4 = 0.4 mm. If repeated approach measurements instead lie between 7.39 and 7.41 mm, their observed peak-to-peak spread is only 0.02 mm. The sensor can repeat one boundary closely while having a much larger operate-to-release gap.
That measured spread is not automatically equivalent to a manufacturer’s repeatability specification, which has its own method and conditions. Reversing the mechanism may also introduce backlash. Do not combine both directions and call the whole spread “poor repeatability.”
Nor does tight repeatability prove that the point matches the required machine coordinate. A repeatable event can have a consistent offset. Smaller hysteresis will not necessarily correct that offset and can make a marginal signal more prone to chatter.
Is rated sensing distance the position your machine will detect?
No. A catalog distance uses specified reference conditions. Your installed switching position also depends on the target and its path. In particular, the usable operating distance and the assured operating distance describe different things; they should not be combined into one “guaranteed range” label.
| Parameter | What it describes | What it does not establish |
|---|---|---|
| Rated distance, sn | A nominal reference value. | Your exact installed transition. |
| Effective distance, sr | One unit’s operating distance at reference conditions. | Identical behavior across every unit or temperature. |
| Usable distance, su | The operating distance under specified voltage and temperature conditions. | An interchangeable definition of the assured zone. |
| Assured distance, sa | A zone in which actuation is assured under stated conditions. | An exact switch coordinate or suitability for every target. |
Set distance and a taught threshold are also different concepts. In OMRON’s proximity-sensor terminology, set distance is an installed working distance for stable operation. A teach procedure stores a threshold or other detection parameters in a sensor that supports that function. Do not assume a fixed-range proximity switch has an adjustable switching point.
For lateral part detection, ask for the sensing-area or response curve at the actual face-to-target gap. A distance measured by approaching straight toward the face does not specify where the leading edge of a passing part will trigger.
Why does the position change when the target or installation changes?
The target may produce a different signal even when the sensor has not moved. Alternatively, the sensor, target or machine datum may have moved relative to one another. Separate these possibilities before adjusting sensitivity or replacing the device.
Metal, target size and approach path
For inductive detection, a smaller target or a different metal can change the effective operating distance. A correction factor belongs to a particular sensor and material combination, not to every device with the same housing size. A mixed-metal application may justify evaluating a factor-1 design, but still needs target and mounting verification.
Axial approachThe gap decreases as the target approaches the face.
Lateral pass-byAt a fixed gap, target overlap changes as the edge passes.
Check bracket rigidity, runout and the target datum as well as the specified flush/non-flush mounting clearance. Nearby metal and adjacent active sensors are different influences: one changes the surrounding geometry, while the other may introduce interference. Test them separately within the manufacturer’s installation limits.
Color, gloss and the optical path
An intensity-based diffuse photoelectric sensor sees light returned by the object. Changing from white matte material to dark plastic or rotating a glossy surface can change the return enough to move the transition. OMRON’s engineering curves show why target size, surface color and gloss belong in the test conditions.
When both sides are accessible, through-beam sensing can reduce dependence on the object’s reflected light. When only one side is accessible, a suitable background-suppression sensor may help separate target and background. Neither option removes the need to check the smallest target, beam coverage, alignment and the actual geometry.
Environment and configuration
For capacitive sensors, material properties, moisture and the vessel can change the signal. For ultrasonic sensors, target angle and the temperature along the sound path matter. More generally, warm-up can move both sensor behavior and mechanical references. A changing result after warm-up does not, by itself, identify which one changed.
Also compare stored parameters: teach mode, threshold, hysteresis, response mode and any output delay. A replacement with a similar label may use different defaults. Save the original settings before making an authorized change.
Is the sensor drifting, or is the PLC seeing the signal late?
If the slow-approach transition stays stable but the recorded position shifts farther along the path as speed rises, investigate timing. That pattern supports a delay hypothesis; it does not prove one particular device is responsible.
Convert a known delay into travel distance
At constant speed, travel during a delay is distance = speed × delay. With speed in m/s and delay in ms, the numerical result is in mm. Include only delays upstream of the event or coordinate you are evaluating, and do not count the same delay twice.
Illustrative calculation: the sensor has not moved. Assume the target passes the same detection boundary on each run. The sensor response is 2 ms, the input contributes 3 ms and the subsequent capture adds 1 ms: a total of 6 ms on this assumed path.
At 0.4 m/s0.4 × 6 = 2.4 mm
At 1.2 m/s1.2 × 6 = 7.2 mm
The recorded event moves 4.8 mm farther along the travel path between these runs, even though the assumed static boundary is unchanged. The appropriate next check is synchronized sensor-output and position capture, not an immediate sensitivity adjustment.
These are assumed inputs and calculated distances, not measured performance. With acceleration, use the actual motion over the delay interval. A short pulse may be rejected altogether rather than merely recorded late.
A fixed offset and timing variation are different problems
A consistent delay can create a consistent offset at one speed. A variable scan phase or capture delay can create cycle-to-cycle spread. Calibrating away the mean offset will not remove that spread, and a correction established at one speed may fail at another.
Hardware timestamping also changes the calculation boundary. If the input latches the event time locally, later network delivery does not automatically move that timestamp. Synchronization, input delay and position correlation still matter.
For a documented example, Beckhoff’s EL1252-0010 specifications distinguish timestamp resolution, input filtering and timestamp precision. A fine timestamp resolution is not a guarantee of equally fine sensor or machine-position accuracy.
How can you measure the switching point without mixing different errors?
Measure one boundary, along one defined path, against a fixed datum. Then change one relevant condition at a time. Keep sensor-output observations separate from controller-recorded positions.
Before changing the setup: prevent unintended motion and follow the machine’s isolation procedures. Electrical measurements and controlled motion tests belong to qualified personnel using an appropriate test arrangement. This process-detection method does not validate a personnel-protection function.
- Define the reported event.State whether the requirement concerns the target-detected state, an electrical rising/falling edge, a latched encoder position or a software event. Record the model, output logic and settings.
- Establish the target and datum.Fix the target material, dimensions, finish, angle and path. Record the face-to-target gap, bracket and nearby objects. Use position measurement with suitable resolution and uncertainty for the tolerance being investigated.
- Collect slow-approach transitions.Begin outside the detected state and approach consistently. Make travel during response negligible for the required precision, or use controlled steps with adequate settling. Fully reset before each repeat.
- Measure withdrawal separately.Record release positions as another group. Account for mechanical backlash before attributing the approach-to-withdrawal difference entirely to sensor hysteresis.
- Compare production conditions.Repeat with the actual speed range and relevant target/environment extremes. Capture output and controller event on a common time or position reference when diagnosing delay.
Report the sample count, minimum, maximum, mean, direction, speed, target and operating conditions. Choose the sample plan for the process risk and variability; a small set of successful passes is a diagnostic check, not a universal acceptance test.
Use the observed pattern to choose the next check
| Observed pattern | Compare next | How the result helps |
|---|---|---|
| Only the fast run shifts | Output edge and captured position at several speeds. | Stable slow tests plus speed-related offsets support a timing investigation. |
| Only one target variant shifts | Both targets on the same fixture, path and settings. | An effect following the target points toward material, finish or geometry. |
| The point changes after warm-up | Sensor output, physical datum, temperature and supply. | Separates mechanical movement from sensor or acquisition changes. |
| A replacement has a steady offset | Exact suffix, settings, mounting datum and slow transition measurements. | Distinguishes setup or unit differences from poor cycle-to-cycle repeatability. |
How do you keep detection inside the required position window?
Define the acceptable event window first, then address the influence that is moving the event. Raising sensitivity or choosing a longer nominal range is not a general solution.
- If the target signal varies: stabilize the target feature or choose a sensing arrangement less sensitive to that variation. Verify both target-present and target-absent conditions.
- If the geometry moves: correct the datum, bracket or target path before compensating electronically. Recheck the manufacturer’s installation clearances.
- If timing dominates: evaluate response mode, input filtering and capture architecture. Any authorized change must retain adequate noise rejection and pulse detection.
- If the required tolerance is tighter than the verified switching behavior: evaluate an appropriate measuring sensor, encoder-based capture or mechanical reference instead of assuming a presence sensor can provide precision position measurement.
Specify the acceptance window at the actual point of use. A window for the PLC’s captured coordinate includes different influences from a static sensor-output test. Verify operate and release separately if both matter to the sequence, and keep the worst relevant condition in view—not only the average result.
A useful switching-point specification includes: the target, path and datum; which transition is used; the allowed coordinate window; operating conditions; and the capture method. This makes a shifted event explainable and a replacement repeatable to commission.
Sources and method references
- OMRON — Proximity Sensor Explanation of Terms: reference targets, set distance, differential travel, response time and output logic.
- Pepperl+Fuchs — Operating Distance as Central Characteristic: sn, sr, su, sa, axial/lateral approach and target influences.
- OMRON — Optical Sensor Hysteresis, FAQE40047: separate approach and withdrawal boundaries and their role in preventing chatter.
- OMRON — Proximity Sensor Repeat Accuracy, FAQ00308: environment, installation and unit-to-unit differences.
- OMRON — Photoelectric Sensor Engineering Data, pp. 12–13: target size, color, gloss and operating-area curves.
- ifm — Capacitive Sensor Technology Overview: target, dielectric and environmental influences on range.
- Pepperl+Fuchs — Ultrasonic Detection Range and Accuracy: reflecting surface, angle and acoustic conditions.
- Beckhoff — EL1252-0010 and multi-timestamp input principles: distinction between input filtering, event timestamps and process-data delivery.
Numerical examples are illustrative calculations, not xsz sensor test results. Hero image: AI-generated conceptual sensor/target arrangement, not an installation drawing. Body diagrams are original explanations and are not to scale.