NPN vs PNP Sensor Outputs Explained

Many three-wire DC proximity and photoelectric sensors are ordered in NPN or PNP versions. Selecting a version incompatible with the controller can leave the input unresponsive even though the sensor is powered. Light curtains, area sensors and LiDAR can use different conductor assignments and output architectures, so the simple three-wire example must not be applied to them without the exact diagram.

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 describe the transistor output arrangement. In a common three-wire DC sensor example, brown supplies +V, blue is 0 V and black is the switched output. These are example conventions, not a universal wiring assignment: check the exact voltage, connector pins and conductor functions before connecting a real device.

In an NPN sensor the transistor connects the output toward the 0 V rail when active. Current flows from the load into the sensor, which is why it is called a sinking output. Whether target detection makes the output active is the separate NO/NC or light-on/dark-on decision.

In a PNP sensor the active output supplies current from +V through the load toward 0 V, hence sourcing output. NPN/PNP describes current direction; response, leakage, residual voltage and switching capacity still need comparison between the exact variants.

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?

In this conventional three-wire example, wire the load between the sensor's black wire and 0 V. When the output is active, the sensor connects black to +V and current flows: sensor → black wire → load → 0 V. Whether detection activates or deactivates the output depends on the NO/NC version.

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.

Do not select polarity as a shortcut to personnel safety. A short circuit can create different input states depending on which conductor and supply rail are involved. An ordinary PNP or NPN input needs the appropriate diagnostics and system architecture before it can form part of a safety function.

Which One Does Your PLC Input Need?

Open the exact input-module manual. Under conventional terminology, a sinking DC input accepts current from a PNP sourcing sensor, while a sourcing input supplies current to an NPN sinking sensor. For a configurable module, the permitted common-terminal wiring and channel grouping must follow its documentation.

A regional preference or a controller brand is not an input specification. Record the complete input-module number, common-terminal arrangement, supply, input thresholds and permitted leakage current. Mixed fleets can require different output versions even when the PLCs carry the same brand.

For an ordinary control input, an approved interface relay or converter may resolve a polarity mismatch, but it adds delay, load requirements and failure modes. Do not insert such a converter into a personnel-safety circuit without evaluating and validating that complete safety function.

The conventional pairing is documented in Rockwell Automation's sourcing/sinking note. Use it to understand current direction, then return to the actual input-module and sensor diagrams.

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.

An NC output can make some open-circuit faults visible in ordinary process logic, but it does not diagnose every fault: a short to the active rail can conceal a detection. Guard monitoring and other personnel-safety functions require appropriately rated devices and a validated circuit, not merely 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.

Use the proximity sensor selection guide to choose target, mounting and connector first. The proximity series tables then provide the relevant ordering codes; code meanings are not automatically transferable to other product families.

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

A common three-wire DC convention is brown (+V), blue (0 V) and black (output); white on a four-wire unit may have a different assigned function. DAIDISIKE light curtains and area sensors include diagrams that differ from this convention. Read the actual terminal or wire-function table, not the colour alone.

Before specifying a load, check the exact output current, residual voltage, off-state leakage, supply and permitted capacitive or inductive load. The DLD05A3/DLD20A5 switching-output specification is not a limit for the whole sensor catalogue. Any interface device and suppression arrangement must follow the device and controller instructions.

Current DD/DDOF documentation assigns independent outputs: black is NPN and white is PNP. Connect the required output and insulate the unused output separately; do not join it to a supply rail or to the other output. The current version is NO by default, with NC set by its documented power-on button procedure. The earlier wire-strapping instruction is not applicable to this version.

Check the current DD/DDOF output and version details before ordering or replacing an older unit. Both are ordinary area/object-detection sensors, not personnel safeguards.

Which DAIDISIKE Products Offer Both NPN and PNP?

Availability is model- and version-specific. Use this list to find the relevant order table, then verify output count, polarity, logic and connector assignment instead of assuming every variant is interchangeable:

  • 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
  • Light curtains — DQC, DQE, DQB, DQZ, DQBT, DCE, JER and MK list electrical variants; a selectable NPN/PNP signal is not proof of dual safety OSSD channels or a Type rating
  • 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 door switches — check the exact DX-R1 polarity, pin assignment and documented cascade arrangement; ordinary polarity matching alone does not validate a safety input
  • DD/DDOF area sensors — current documentation provides separate black NPN and white PNP outputs; select one by the approved diagram, not by shorting wires

For an optical part-presence task, compare the photoelectric sensor modes and output options; for area measurement or discrete LiDAR signals, compare the LiDAR interfaces. This article is a cross-category electrical aid, not a single-product buying guide.

FAQ

What is the difference between NPN and PNP sensor outputs?
An active NPN output sinks current toward 0 V; an active PNP output sources current from the positive supply. Match that current path to the input-module circuit. NO/NC logic and the electrical performance of the exact output version are separate specifications.
Is NPN or PNP better?
Neither is universally better. Use the controller's documented input circuit and compare the exact variants' electrical limits. Do not infer a safety rating, reliable broken-wire detection or a speed advantage from the letters NPN or PNP alone.
How do I know whether my PLC needs NPN or PNP sensors?
Read the exact input-module circuit. Conventionally, a sinking input pairs with a PNP sourcing sensor, while a sourcing input pairs with an NPN sinking sensor. Configurable modules must be wired by their approved common-terminal and channel-group instructions.
Can I connect an NPN sensor to a PLC that expects PNP?
Not as a direct substitute unless the input circuit supports it. A suitable interface can be considered for ordinary controls after checking electrical limits and delay. Any change to a personnel-safety circuit requires evaluation and validation of the whole function.
What do NO and NC mean, and how do they relate to NPN/PNP?
For the conventional target-sensing example, NO (normally open) activates on detection and NC (normally closed) deactivates on detection. NO/NC is independent of NPN/PNP. Some DAIDISIKE proximity and square-sensor families use N1 (NPN NO), N2 (NPN NC), P1 (PNP NO) and P2 (PNP NC); this is not a universal code for every product. Verify the exact series ordering table.
What are the standard wire colors on a 3-wire DC sensor?
Brown positive, blue 0 V and black output is a common three-wire example, not a rule for every sensor. Verify the exact manual. Current DD/DDOF uses separate black NPN and white PNP outputs, while some light-curtain diagrams assign the conductors differently; do not short unused outputs.
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?
Check the exact Siemens input-module number and wiring diagram; the brand alone does not establish its input circuit. A sinking DC input conventionally requires a PNP sourcing output. For a light curtain, also verify the actual output version, safety-input compatibility and complete safety function.

Browse Related Products