A machine stops on a position timeout. The metal flag is in front of the proximity sensor, but the controller still says it is waiting. Before replacing the sensor, compare what happened at four points: the target, the sensor output, the input channel and the controller tag. The first point that fails to change tells you where to look next.
Start with two known states, target absent and target present. Record both states even if the symptom appears only when the target arrives. On a normally closed sensor, the output can turn off when it detects the target. Some controllers also display the raw electrical state separately from a program condition such as AtHome.
Test the target before opening the circuit
Record the full sensor part number and the installed input channel. Use the machine's service procedure to prevent axis motion while you work around the target or its wiring. Use the installed sensor's documentation to identify its operation indicator, target material and recommended setting distance.
In the Haas example below, the trip flag and the sensing face are separate parts. Check their overlap and clearance along the actual travel path. A flag can pass beside the face or only briefly enter the sensing area. Haas demonstrates a static check using a steel screw at the face. If a suitable test target makes both the sensor indication and diagnostic bit change, repeat the observation with the machine's actual flag under its service procedure. The difference points you back to geometry, target material or how long the target remains in range.1

Look for metal chips stuck to the face, contamination at the connector, loose pins and damage where the cable flexes. A chip at the sensing face can hold an inductive sensor in its detected state. A cable can work in one position and open when the carrier bends. If the symptom depends on machine position, inspect the moving cable path and record where the input drops out.1

Compare the loaded signal with the controller bit
With the machine in its prescribed diagnostic state, read the physical input channel and the raw controller input for target absent and present. If the sensor indicator changes but the channel does not, check supply at the sensor and the signal at the receiving terminal. Use the reference point specified by the wiring drawing and keep the input in the circuit when checking its loaded signal. A reading with the input disconnected can change when the load is restored.
Haas publishes a useful example for a normally open, three-wire 12 V proximity sensor. It calls for measuring the black wire relative to ground. The diagnostic bit goes from 1 to 0 when the target activates the sensor. The falling voltage and the falling bit are both expected for this particular circuit.1
| Target state | Sensor LED | Black lead to ground | Haas diagnostic bit |
|---|---|---|---|
| Absent | Off | 9–12 V DC | 1 |
| Present | On | 0–2 V DC | 0 |
If both readings change as expected, the signal reached the controller. Look next at how the program uses that bit or which diagnostic channel the alarm refers to. If the voltage changes at the sensor but fails to change at the receiver, inspect the signal conductor and intervening connectors. If the voltage at the receiving terminal is within the documented ON and OFF regions but the channel indication stays fixed, verify the common, module supply and channel diagnostics.
For a replacement that detects the target but never switches the input, start with the PNP and NPN wiring at the PLC input. If the installed device is two-wire and the channel never releases, check leakage current and the input OFF limit. Use the proximity switch wiring guide to confirm the connector and wiring arrangement.
Check pulse width if the static test passes
A held target can switch the channel correctly while a moving flag still produces a missed input. A multimeter and an online tag display can both miss a brief event. Compare the pulse width at the receiving terminal with the input filter and input-update behavior. A suitable instrument can show the physical pulse. A controller trace can show what the PLC received at the configured sampling interval.
The Siemens S7-1200 example below separates the physical input from the process image. In both views, the same pulse starts and ends between input updates. With pulse catch enabled, the pulse is held for the next update. With pulse catch disabled, the process-image bit remains low. On this CPU, the digital input filter is upstream of pulse catch. A pulse rejected by the filter never reaches it.2

Record the last observation that still followed the target and the first one that did not. For example, “LED and terminal voltage follow the flag, channel status does not” points to the receiving circuit. “Raw input follows the flag, AtHome stays false” points to the address or program condition. “Everything changes with a held target, the event disappears at speed” calls for a timing measurement at the input.
