NPN vs PNP Sensor Outputs Explained

Almost every 3-wire DC sensor — proximity switch, photoelectric sensor, light curtain, LiDAR with discrete outputs — is ordered as either NPN or PNP. Pick the wrong one and the sensor powers up, its LED blinks happily, and the PLC input never turns on. It is the single most common wiring mismatch in sensor integration, and also the easiest to prevent.

The distinction is simply which way current flows through the load. An NPN output sinks current: it connects the signal line to 0 V. A PNP output sources current: it connects the signal line to +V. Neither is better; the only question is which one your controller's input expects.

This guide explains both circuits, shows how to identify what your PLC needs, covers the separate NO/NC decision, and lists how output types are coded across DAIDISIKE product families so you can order the right variant first time.

What Do NPN and PNP Actually Mean?

The names come from the transistor type used in the sensor's output stage. In a 3-wire DC sensor, two wires carry the supply — brown (+V, typically 10–30 V DC) and blue (0 V) — and the black wire is the switched output. The transistor sits between the black wire and one of the supply rails; which rail is the whole NPN/PNP difference.

In an NPN sensor the transistor sits between the output and the 0 V rail. When the sensor detects a target, the transistor conducts and the black wire is pulled down to 0 V. Current flows from the load into the sensor — the sensor sinks current, which is why NPN is also called sinking output.

In a PNP sensor the transistor sits between +V and the output. On detection, the black wire is driven up to +V and current flows out of the sensor through the load to 0 V — the sensor sources current, hence sourcing output. The detection behavior, range, and response time are identical either way; only the current direction differs.

How Does an NPN (Sinking) Output Circuit Work?

Wire the load — a PLC input, relay coil, or indicator — between the +V rail and the sensor's black wire. When the sensor switches, it completes the path to 0 V and current flows: +V → load → black wire → sensor → 0 V.

Because the output pulls to 0 V, the PLC input on the other side must be the type that expects to see current flowing out of it into the sensor. In PLC terminology that is a sourcing input: its common terminal is wired to +24 V, and each input channel sources current to whatever pulls it low. NPN sensors and sourcing inputs are two halves of the same circuit.

One practical caution: with the sensor off, the black wire floats near +V through the load. During troubleshooting, measure voltage between black and 0 V — near +V means off, near 0 V means on — rather than trusting a test lamp connected the wrong way.

How Does a PNP (Sourcing) Output Circuit Work?

Wire the load between the sensor's black wire and 0 V. On detection the sensor connects black to +V and current flows: sensor → black wire → load → 0 V.

The matching PLC side is a sinking input: its common terminal is wired to 0 V, and each channel accepts (sinks) the current the sensor pushes in. PNP sensors and sinking inputs pair together.

PNP has one safety-flavored advantage that made it the European convention: a cable crushed against grounded machine framework tends to short the signal to 0 V, which reads as "off" — usually the safe direction — whereas the same fault on an NPN line can read as "on." This is a wiring-fault behavior argument for ordinary controls, not a substitute for proper safety-rated devices and circuits.

Which One Does Your PLC Input Need?

Stop thinking about the sensor and open the PLC manual. Input cards are specified as sinking, sourcing, or configurable, and the wiring of the common terminal decides everything: common at 0 V means the card sinks current and needs PNP sensors; common at +24 V means the card sources current and needs NPN sensors. Many modern cards accept either polarity per group, selected by how you land the common.

Regional convention explains what you will meet in the field: machines built to Japanese practice overwhelmingly use NPN sensors and sourcing inputs, while European and North American practice standardized on PNP sensors and sinking inputs. Mixed fleets therefore end up stocking both — or standardizing on one and specifying every new sensor accordingly.

If you are stuck with a mismatch — an NPN-only sensor on a sinking-only input — an interposing relay or a small converter module solves it, at the cost of response time and a component that can fail. Ordering the right polarity in the first place is always the better fix, which is why dual-polarity availability across a supplier's range matters more than it looks.

NO vs NC: The Second, Independent Choice

Output polarity says which rail the signal switches to; normally-open versus normally-closed says when. A normally-open (NO) output turns on when a target is detected — the natural choice for presence detection and counting. A normally-closed (NC) output is on when no target is present and turns off on detection.

NC earns its keep in fault-visible logic for ordinary controls: if the sensor loses power or a wire breaks, the input drops — the same signal as a detection — so the fault does not hide. Presence-of-guard checks and end-of-travel confirmations often use NC for exactly this reason. (Genuine personnel-safety functions belong to safety-rated devices and monitored circuits, not to an NC proximity switch.)

The two choices multiply into four standard variants — NPN NO, NPN NC, PNP NO, PNP NC — and DAIDISIKE part numbers encode them directly: N1, N2, P1, P2 respectively in the proximity and square-sensor series. A Q1705N1 is NPN normally-open; a Q1705P2 would be PNP normally-closed. Some products offer both contacts at once: the M12 capacitive connector series includes a 4-wire NO+NC version.

How Do You Wire a 3-Wire DC Sensor Correctly?

The color code is consistent across the industry and across DAIDISIKE's range: brown (BN) to +V, blue (BU) to 0 V, black (BK) is the switched signal. On 4-wire sensors, white (WH) carries the second output — the complementary contact or, on some area sensors, the selection line.

Respect the electrical limits from the datasheet before connecting anything inductive or capacitive to the output: typical DAIDISIKE 3-wire proximity sensors switch up to 150–200 mA with overload protection tripping around 180 mA, and the DLD05A3/DLD20A5 LiDAR switching outputs are rated DC30 V/50 mA max. Driving a big relay coil or a long capacitive cable run at the limit invites nuisance overload trips; interpose a small relay for heavy loads.

Some products make polarity a wiring choice rather than an ordering choice. DAIDISIKE's DD diffuse-reflection area sensor ships with dual NPN/PNP capability selected by wire strapping: shorting white and brown yields NPN NO on the black wire, while shorting black and blue yields PNP NO on the white wire. Read the wiring diagram before cutting conductors you might need.

Which DAIDISIKE Products Offer Both NPN and PNP?

Dual availability runs through the whole catalog, so you can standardize either polarity plant-wide:

  • Proximity sensors — inductive (M3–M30 barrels, Q-series squares) and capacitive series are ordered NPN or PNP via the N/P code, each in NO (1) or NC (2) logic
  • Safety light curtains — DQC, DQE, DQB, DQZ, DQBT, DCE, JER, and MK series offer transistor outputs with NPN/PNP signal selection (confirm the wiring variant at order time)
  • 2D LiDAR — DLD05A3-3N / -3P and DLD20A5-5N / -5P provide three switching outputs plus one status output in NPN or PNP versions
  • Measuring LiDAR with discrete output — DLD50T8N (NPN, 50 Hz) and DLD50T8P (PNP, 100 Hz)
  • Non-contact safety switches — DX-R1 is available in NPN and PNP output versions across its 4-wire and 6-wire cascade types
  • Area sensors — the DD series provides wire-selectable dual NPN/PNP output on a single model

FAQ

What is the difference between NPN and PNP sensor outputs?
An NPN (sinking) output connects the signal wire to 0 V when active, so current flows from the load into the sensor. A PNP (sourcing) output connects the signal wire to +V, pushing current out through the load to 0 V. Detection performance is identical — only the current direction differs.
Is NPN or PNP better?
Neither is universally better. PNP became the European/American convention partly because a cable short to grounded structure tends to read as "off"; NPN is the Japanese convention and switches marginally faster in some designs. The deciding factor is always your PLC input type.
How do I know whether my PLC needs NPN or PNP sensors?
Check how the input card's common terminal is wired. Common at 0 V = sinking input = use PNP sensors. Common at +24 V = sourcing input = use NPN sensors. Many modern cards are configurable by how you land the common.
Can I connect an NPN sensor to a PLC that expects PNP?
Not directly — the input will never see the current direction it expects. An interposing relay or converter module works as a patch, but it adds delay and a failure point. Ordering the correct polarity is the proper fix; DAIDISIKE offers both across its sensor ranges.
What do NO and NC mean, and how do they relate to NPN/PNP?
NO (normally open) turns on when a target is detected; NC (normally closed) is on until a target is detected. NO/NC is independent of NPN/PNP, giving four variants. DAIDISIKE encodes them as N1 (NPN NO), N2 (NPN NC), P1 (PNP NO), and P2 (PNP NC).
What are the standard wire colors on a 3-wire DC sensor?
Brown (BN) to the positive supply, blue (BU) to 0 V, black (BK) as the switched output signal. White (WH) appears on 4-wire versions as a second output. DAIDISIKE sensors follow this convention.
Do 2-wire sensors have an NPN/PNP polarity?
No — a 2-wire sensor wires in series with the load like a switch, so the sinking/sourcing question largely disappears. That simplicity costs a small off-state leakage current and an on-state voltage drop, which your input must tolerate. DAIDISIKE offers 2-wire DC (10–30 V) and 2-wire AC (20–250 V) proximity series.
Which light curtain output should I order for a Siemens PLC?
Siemens digital inputs are conventionally sinking (common at 0 V), which calls for PNP sensor outputs. DAIDISIKE light curtain series such as the DQC offer NPN/PNP signal selection — state PNP explicitly when ordering and confirm the wiring variant with the factory.

Browse Related Products