NPN and PNP describe which way current flows through the sensor’s output transistor. A PNP (sourcing) sensor switches the positive supply to its output wire — current flows out of the sensor, into the PLC input, and returns via common. An NPN (sinking) sensor switches the negative side — current flows into the sensor from the PLC input. Neither is better; what matters is that the sensor’s output type matches the PLC input circuit it connects to. Get the pair wrong and the input simply never turns on — the single most common reason a “dead” new sensor turns out to be perfectly healthy.
Key takeaways
- PNP = sourcing output: it supplies positive voltage to the load (the PLC input).
- NPN = sinking output: it provides the path to negative (0 V) for the load.
- Match sensor output to PLC input type: sourcing sensor → sinking input, sinking sensor → sourcing input.
- PNP dominates in Europe and most global PLC installations; NPN remains common in Japan and much of Asia — but always check the actual input card, not the region.
- NO/NC (contact logic) is a separate choice from NPN/PNP (transistor type) — you need both decisions right.
What Do “Sinking” and “Sourcing” Actually Mean?
The naming confusion starts here, so let’s ground it in one image: current needs a complete loop. In a 3-wire DC sensor circuit, the loop runs through the sensor’s output transistor and the PLC input. The question is just which side of that loop the transistor sits on.
A PNP sensor puts its transistor between the positive rail and the output wire. When it switches on, it pushes positive voltage out of the brown-fed side to the black wire — the sensor sources current, and the PLC input sinks it to 0 V.
An NPN sensor puts its transistor between the output wire and the negative rail. When it switches on, it connects the black wire to 0 V — the sensor sinks current that the PLC input sources from its positive side.
One sentence worth remembering: PNP sources, NPN sinks. Everything else is wiring.
How Do You Wire Each Type to a PLC?
A standard 3-wire DC sensor has brown (BN), blue (BU) and black (BK) wires per the common industrial color convention:
- PNP wiring: brown to +24 V DC, blue to 0 V, black to the PLC input. The PLC input card must sink the current — its common connects to 0 V. Sensor on = input sees +24 V.
- NPN wiring: brown to +24 V, blue to 0 V, black to the PLC input. The PLC input card must source the current — its common connects to +24 V. Sensor on = input gets pulled to 0 V.
Notice the inputs are not interchangeable: a sinking input card expects to receive positive voltage, a sourcing card expects to provide it. Wire a PNP sensor into a sourcing input and both sides try to supply voltage; nobody completes the loop, and the input sits dark forever. That’s the mismatch that masquerades as a defective sensor.
Many modern PLC input cards are configurable or accept both types — but “configurable” still means someone has to configure it, and the wiring common must land on the right rail. Read the input card’s documentation, not just the sensor’s.
Where Do 2-Wire Sensors Fit In?
A 2-wire DC sensor drops the dedicated power wires and sits in series with the load, like a switch: brown toward supply, blue toward the input (or vice versa by design). It works with either input style because it doesn’t use a transistor output stage in the same way — it simply passes or blocks the loop current.
The trade-offs: a small residual current flows even when “off” (leakage), and there’s a voltage drop across the sensor when “on.” With a sensitive PLC input, leakage can hold the input falsely on; with a marginal supply, the voltage drop can leave too little for the input to recognize. 2-wire sensors simplify wiring and retrofit neatly into old mechanical-switch positions, but check the PLC input’s on/off thresholds against the sensor’s leakage and drop specs — both are model-level datasheet values.
NO vs NC — Is That the Same Decision?
No, and mixing the two decisions causes the second most common wiring surprise. NPN/PNP is about transistor type — which way current flows. NO/NC is about output logic — what the signal does when the target is present.
- NO (normally open): output is off with no target, on when a target is detected.
- NC (normally closed): output is on with no target, off when a target is detected.
An NPN-NC sensor and a PNP-NO sensor are completely different animals, and both choices come from the application: NC logic is often preferred where a broken wire should read as “target present / fault” (fail-safe thinking), NO where simplicity wins. KJT Sensors proximity lines, like most industrial ranges, offer NPN or PNP, 2- or 3-wire, and NO or NC configurations per model — the datasheet codes all three choices into the model number, so order decoding matters.
Which One Should You Choose for a New Installation?
If the PLC input cards are already installed, the question answers itself: match them. Sinking input card → PNP sensor. Sourcing input card → NPN sensor.
If you’re designing fresh, PNP is the pragmatic default in most of the world: European PLC ecosystems standardised on sourcing sensors with sinking inputs, and troubleshooting a PNP loop (probe the input for +24 V) feels intuitive to most electricians. NPN remains perfectly legitimate — and in Japanese and many Asian machine builds it’s the house standard, so an NPN-installed base should stay NPN for spare-parts sanity.
What you should never do is mix types casually across one input card group. One standard per machine, written into the electrical spec, saves the next maintenance shift a headache.
What Goes Wrong Most Often — and How Do You Spot It?
The field pattern is reliable: new sensor installed, PLC input never changes state, sensor LED works fine.
The LED tells you the sensor detects the target; it says nothing about whether the output loop is complete. The diagnostic sequence:
- Confirm the pair. Sensor output type (datasheet) vs PLC input type (card manual). PNP into sourcing input (or NPN into sinking) = found your problem.
- Check the common. Sinking input card → common at 0 V; sourcing card → common at +24 V. A common landed on the wrong rail mimics a type mismatch.
- Measure at the input terminal. PNP on = ≈ +24 V at the terminal; NPN on = ≈ 0 V. Wrong voltage with a working LED confirms the loop, not the sensor, is broken.
- 2-wire suspects. Input stuck on? Leakage current. Input never on despite switching? Voltage drop too high or supply marginal.
- NO/NC logic check. Input works but logic is inverted? You ordered NC when the program expects NO — a model-code issue, not a wiring issue.
Where Does KJT Sensors Fit?
KJT Sensors manufactures proximity, photoelectric, laser distance and other industrial sensors with NPN, PNP, 2-wire/3-wire, NO and NC output configurations across its ranges, so the output type follows your control system rather than forcing a redesign. The model-level datasheet states the exact output circuit — which is also what you should send when requesting a replacement cross-reference: existing model number, output type, voltage and wiring, and the PLC input it feeds.
Frequently Asked Questions
Is PNP better than NPN?
No. Electrically they do the same job in opposite directions. PNP is more common in European and global PLC ecosystems; NPN is standard in many Japanese and Asian machine designs. The “better” one is whichever matches your input cards.
Can I connect a PNP sensor to an NPN input with a relay or resistor?
Yes — an interposing relay is the clean way, and pull-up/pull-down resistor tricks exist, but both add failure points. If the mismatch is permanent, order the sensor in the correct output type; most industrial families, KJT Sensors included, offer the same sensor in both.
How do I tell NPN from PNP on the datasheet or model code?
The datasheet’s output-circuit section states it explicitly (“PNP NO”, “NPN NC”, etc.), and most manufacturers encode it in the model number. If you’re holding an unmarked sensor, the wiring colors plus a multimeter test — output switches toward +24 V (PNP) or toward 0 V (NPN) — will identify it.
Does NO/NC affect the wiring?
No — the three wires land in the same places regardless. NO/NC changes what the PLC sees when a target arrives, which is a program-logic question, not a wiring one.
Do analog-output sensors have NPN/PNP types?
Not in the same sense — analog outputs (4–20 mA, 0–10 V) are described as current or voltage outputs, with their own wiring conventions. NPN/PNP applies to discrete switching outputs. Some sensors offer both a switching output and an analog output; KJT Sensors’ laser distance line is one example, with NPN/PNP plus voltage or current analog options per model.
The Bottom Line
PNP sources, NPN sinks — and the sensor is only half the pair. Match the output transistor to the input circuit, write the standard into the machine spec, and the “dead sensor” drawer in the maintenance shop stays empty.
Need sensors matched to your control system? Send KJT Sensors your PLC input type, voltage and the sensor function you need — or the existing model number for a cross-reference: www.kjt-sensors.com
Sources and Technical References
- KJT Sensors — Company and product information: https://www.kjt-sensors.com
Wiring conventions described above reflect common industrial practice; always verify the sensor’s datasheet output circuit and the PLC input card documentation before connecting. Electrical work should be performed by qualified personnel.
Content Notice
This article is brand content marketing produced for KJT Sensors. Wiring guidance is general engineering information, not a substitute for the sensor and controller documentation or for qualified electrical work.
https://www.kjt-sensors.com/
KJT Sensors
