The panel shows an input stuck off, stuck on, or inverted even though the sensor indicator changes correctly. You replace the sensor, move the signal to another channel, or invert the PLC bit, but the electrical fault remains. Start here: identify whether the sensor output is NPN or PNP and whether the controller input supplies or accepts the required current.
Stop wasting time on the wrong fixes
An output-type mismatch is a current-path problem. Software changes cannot create a missing electrical path.
| Symptom or attempted fix | Actual cause |
|---|---|
| The sensor indicator switches, but the PLC input never turns on | The sensor and input channel have incompatible sinking and sourcing functions, or they lack a common reference. |
| The PLC input stays on when the signal conductor touches ground | An NPN-style input circuit can interpret the ground connection as an active signal. |
| Inverting the PLC tag appears to correct the indication | The program now hides the polarity symptom, but it does not correct incompatible wiring, loss of reference, or a ground fault. |
| Increasing an input filter or debounce time changes nothing | Filtering treats transitions and noise. It cannot correct the wrong transistor polarity. |
| Replacing the sensor with another sensor of the same output type changes nothing | The replacement still cannot complete the current path expected by the input. |
| Moving the signal to another identical input channel changes nothing | A channel with the same input topology presents the same incompatibility. |
That is not the fault: NPN does not mean normally closed, and PNP does not mean normally open. Output polarity describes current switching. The sensor's operating function describes whether its output activates when the target is present or absent.
Identify the real cause
A PNP transistor output sources current toward the load when active. The receiving input must provide the return path toward the common reference. This arrangement follows the relay-control convention of switching the positive side of a load to a common ground.
An NPN transistor output sinks current toward the common reference when active. The receiving input must supply current through its input circuit. This arrangement follows the electronics convention of switching a load to ground.
The required pairings are:
- Use a PNP, or sourcing, sensor output with an input that sinks current.
- Use an NPN, or sinking, sensor output with an input that sources current.
The terminology can cause mistakes because one device is described by what its output does while the other may be described by its input circuit. Do not select both devices merely because both catalog descriptions say “sourcing” or both say “sinking.” Trace conventional current from the supply, through the input load, through the switching transistor, and back to the reference.
PNP is widely used in process-control practice. Its practical fault advantage is that a signal conductor shorted to ground does not command a PNP output active; the short instead pulls the signal away from its active sourced state. In an NPN arrangement, a grounded signal can resemble the active action of the sensor because the output normally activates by pulling that conductor to ground. This distinction improves fault behavior, but it does not make every PNP circuit fail-safe. The controller program, input diagnostics, broken-wire behavior, and final control action still determine the machine response.
Start with the output-input match
Check the part documentation before touching the program. Labels such as three-wire DC sensor, transistor input, or common terminal are not enough by themselves; find the explicit NPN, PNP, sinking, or sourcing designation.
- Read the sensor output type from its nameplate or datasheet. Also identify whether it offers selectable, complementary, or separate outputs.
- Read the controller input specification. Determine whether the channel sources current to the field device or sinks current returned from it.
- Find the input-group common. Confirm whether that common is referenced to the positive side or to 0 V.
- Trace the complete current path with the output active. A valid path must pass through the input circuitry and the sensor transistor.
- Confirm that the sensor supply and controller input share the required reference. Measure between their reference points rather than assuming two conductors marked 0 V are electrically common.
If documentation is unavailable, disconnecting and measuring the circuit is safer than classifying it from one live voltage reading. Input leakage, pull-up networks, pull-down networks, and high-impedance meters can display a voltage even when the circuit cannot deliver useful input current.
Wire the matched pair correctly
De-energize the field circuit and follow the terminal diagram for the actual sensor and input module. Do not rely on cable color alone.
- For a PNP output, connect the sensor supply and reference as specified. Connect the signal to a compatible sinking input, and connect the input-group common so current can return to the reference.
- For an NPN output, connect the sensor supply and reference as specified. Connect the signal to a compatible sourcing input, and connect the input-group common so the module can supply current through the input and sensor output to the reference.
- Bond the required circuit references at the intended point. Remove accidental alternate paths through shields, grounded enclosures, programming cables, or connected instruments.
- Check the input and sensor ratings in their datasheets before energizing. Verify supply range, input-current requirement, off-state leakage, output-current capacity, and allowed voltage drop.
- Energize the circuit and observe the field voltage, module indicator, and controller input state together.
If the installed module cannot accept the sensor polarity, use a compatible input channel, change to the matching sensor-output version, or add a properly rated interface device. An interposing relay or signal conditioner can translate the interface, but it adds wiring, response delay, another failure point, and maintenance work. Use it when replacement is impractical, not as the default repair.
Verify the repair under fault conditions
Do not stop when the input changes once. Prove the normal states and the faults that matter to the process.
- Operate the sensor through both target states. Confirm the sensor indicator, electrical output, module indicator, raw PLC input, and interpreted program state agree.
- Measure the active and inactive signal levels relative to the circuit reference. Compare them with the sensor-output and input-threshold specifications rather than treating any nonzero voltage as valid.
- Repeat the test with the connected load operating. A marginal common connection may pass an unloaded meter test and fail when current flows.
- Inspect the input when the signal conductor is open. Record whether the controller reads active, inactive, or diagnostic fault.
- Use an approved test method to assess a signal-to-ground fault. Confirm that a PNP circuit does not interpret the grounded signal as an active command and determine how the control logic responds.
For an NPN circuit, treat a ground fault on the signal conductor as a possible false activation. Where that consequence is unacceptable, change the circuit architecture or add diagnostics; a normally closed program instruction does not remove the electrical failure mode.
Avoid the recurring polarity traps
- Do not infer output polarity from normally open or normally closed behavior. Those are separate selections.
- Do not call a complete system “NPN” or “PNP” without identifying which device the term describes. State both the sensor-output type and controller-input type.
- Do not judge compatibility from idle voltage alone. Verify the direction and magnitude of current against both datasheets.
- Do not assume PNP is universally safer. Its resistance to false activation from a grounded signal is useful, but an open conductor may still create a hazardous process state unless the control design detects it.
- Do not mix input-group commons casually. Channels grouped behind one common must follow the module's permitted topology.
- Do not declare one polarity easier to troubleshoot. Familiarity helps, but a current-path sketch, terminal documentation, and measurements settle the fault faster.
FAQ
How do I tell whether a sensor output is NPN or PNP?
Read the output designation on the sensor nameplate or datasheet. If it is missing, trace the specified load connection or measure the switched current path with the sensor isolated from the PLC input.
How do I match a PNP sensor to a PLC input?
Use an input that sinks the current sourced by the PNP output. Connect the input-group common and sensor reference exactly as the module and sensor terminal diagrams show.
How do I match an NPN sensor to a PLC input?
Use an input that sources current through its input circuit to the NPN output, which completes the path to the reference when active. Verify the common connection and test for false activation from a grounded signal conductor.
When should I stop troubleshooting NPN versus PNP wiring?
Stop when the documentation does not identify the output or input topology, measurements conflict with the terminal diagrams, or the circuit cannot be tested without defeating a protective function. Record the wiring, measured states, supply reference, and device identifiers, then escalate to the equipment manufacturer's official support channel before changing the circuit.