A replacement proximity sensor has the right thread, range and connector. Its LED responds to the target, but the PLC channel never changes. One possibility is that the new sensor switches to the opposite supply rail. Before changing the program, identify what the sensor output does and which current path the installed input is built to complete.
For a conventional 24 V DC three-wire transistor sensor, a PNP output sources current into a sinking PLC input. An NPN output sinks current from a sourcing PLC input. The two descriptions refer to opposite ends of the same signal circuit.1
Read the load position on the sensor drawing
Omron's E2E catalog puts the supply and output on separate leads. Find the load symbol in each crop before looking at the model suffix. On the PNP drawing it sits between the black signal and 0 V. On the NPN drawing it sits between +V and the black signal. At the PLC, the input circuit takes the place of that load.2

With the PNP sensor conducting, current flows from +24 V through the sensor's output and the PLC input to 0 V. With the NPN sensor conducting, current flows from +24 V through the PLC input and into the sensor's output, then returns to 0 V. An NPN signal near 0 V relative to M can therefore be the ON condition.
NO and NC specify when the output conducts as the target moves. PNP and NPN specify where the conducting output sends current. For the E2E examples, the E-series row identifies the NPN circuit and the F-series row identifies the PNP circuit. Use the actual part's ordering table. The wire colors alone do not tell the two circuits apart.2
Match the input by its module number
Both Siemens examples below are ET 200SP 24 V digital input modules. One accepts a signal that switches toward L+. The other is designed to accept a signal that switches toward M. The different order numbers tell you which receiving circuit you have, even though both parts look like eight-channel input modules.4
| Module | Siemens terminology | Sensor pairing |
|---|---|---|
| DI 8x24VDC ST, 6ES7131-6BF01-0BA0 | Sink input, P-reading | PNP output supplies current into the channel. |
| DI 8x24VDC SRC BA, 6ES7131-6BF61-0AA0 | Source input, M-reading | NPN output completes the input's path to M. |
If an input module offers a configurable common, read the diagram to see which channels share it. The polarity choice can apply to the whole group. A spare terminal in a group already wired for PNP may not be available for a loose NPN sensor. For fixed-polarity modules such as the examples above, take the input characteristic from the module manual. A program inversion changes the interpretation of a bit and leaves the input circuit unchanged.1
Trace CH7 from the full BaseUnit to the three terminals
This Siemens drawing shows the P-reading ST module on a type A0 BaseUnit with AUX terminals. The source uses a generic three-wire sensor symbol for CH7. Start with the whole drawing, then follow each wire in the detail.3


The return deserves the same attention as the signal. An AUX terminal serves whatever potential the installation assigns to that bus. Confirm the jumper and the potential group before assuming an AUX point is at M. Check the exact BaseUnit if the field wiring does not match the drawing. The physical terminal number also differs from the PLC process-image address. Use the hardware configuration and I/O list to find the tag that reads this channel.3
Use three observations before replacing the sensor again
| Observation | What it tells you to check |
|---|---|
| The sensor LED changes, but the channel LED does not. | Check the output type against the module part number. Verify both supply leads, the signal terminal and the return path. Read the LED meaning in the sensor's timing chart. |
| The output voltage changes, but the channel stays off. | Compare the connected output with the input's documented ON region, using the reference shown by that module. A voltage on a disconnected wire can differ from its loaded behavior. |
| The channel LED changes, but the program condition does not. | Compare the raw input with the mapped address, any inversion and the sequence condition that uses it. The channel has already reported a state change. |
A replacement decision needs the full sensor and module identities. Record the sensor output polarity, NO/NC operation, connector pinout and input module order number before changing the part. If the two electrical types are mismatched, choose a compatible sensor or input, or use an interface specified for the job. The sensor's physical fit and matching connector are useful checks once you have a compatible signal circuit.
For more wire counts and connector examples, see the proximity switch wiring guide.
If the sensor has only two conductors and the input stays on after the target leaves, check the two-wire leakage and input thresholds.
