Short answer

PNP and NPN describe the output transistor's switching direction. A PNP output sources current toward the load; an NPN output sinks current toward 0 V.

PNP sensor to PLC input wiring diagramA three-wire PNP sensor sends positive voltage to a PLC input.PNP / SOURCING OUTPUTSENSOR3-wire DCPLC INPUTsinking / common −I0.0+24 V / brownsignal / black0 V / blue Original diagram · Signal Field Guide / field note wiring

Quick reference: PNP (Sourcing) vs. NPN (Sinking) Industrial Sensor Interface Matrix

PNP (Sourcing) vs. NPN (Sinking) Industrial Sensor Interface Matrix
Operating ParameterPNP Sensor (Sourcing)NPN Sensor (Sinking)
Internal Switching ElementHigh-side PNP bipolar or P-channel MOSFET (switches to +24 V DC)Low-side NPN bipolar or N-channel MOSFET (switches to 0 V DC Common)
Signal Line (Black) State Active+24 V DC relative to 0 V (Blue conductor)0 V DC relative to +24 V (Brown conductor)
Required PLC Input ModuleSinking Input (PLC input module draws current to internal 0V)Sourcing Input (PLC input module pushes current out from +24V)
PLC Common (COM) Terminal WiringConnected directly to 0 V DC (Negative Rail)Connected directly to +24 V DC (Positive Rail)
Short-to-Ground Failure ModeBlown sensor fuse or current-limiting fault; PLC sees 'OFF' (Failsafe)Dangerous false trigger: shorting signal to machine frame forces PLC 'ON'
Primary Geographic & Brand StandardEurope & North America (Siemens, Rockwell Allen-Bradley, Beckhoff)Japan & East Asia (Mitsubishi MELSEC, Omron, Keyence)

What to look for

In a typical three-wire DC sensor, brown is positive supply, blue is 0 V, and black is the switched output. Wire colours are common, not universal law: the datasheet and connector pinout win whenever they disagree.

The practical check is the input common. A PLC input arranged to receive current from a PNP sensor needs a suitable 0 V reference on the other side. If that reference is missing or the input mode is wrong, a perfectly good sensor appears dead.

FIELD CASE / REASONING PATH

When the symptom appears in the plant

A machine builder shipped a packaging line to a new plant, but several proximity sensors failed to trigger the PLC inputs during commissioning. The machine was originally designed for the European market using PNP (sourcing) sensors, but the local maintenance team had replaced a damaged input card with an NPN (sinking) compatible module common in their older Asian equipment. The sensors were sending 24V correctly, but the PLC input card was expecting a path to 0V (ground) to register a 'true' state.

Safety & Meter Pitfall

High-Impedance 'Ghost Voltage' on Unloaded Transistor Outputs

When testing a 3-wire DC proximity sensor disconnected from a PLC input terminal using a standard 10 MΩ digital multimeter, technicians frequently read 18 V to 22 V on the output pin even when the sensor is un-actuated. This is not a defective sensor. Unloaded solid-state switching transistors exhibit tiny sub-microamp leakage currents that develop a measurable voltage drop across the extremely high input impedance of a modern digital multimeter. To obtain a ground-truth measurement, test the sensor while it remains wired to the physical PLC input terminal, or temporarily connect a 2.2 kΩ to 10 kΩ 1/4W resistor across the output (Black) and reference wire (Blue for PNP, Brown for NPN) to provide a legitimate load.

DIAGNOSTIC SEQUENCE

Five checks before replacement

  1. Identify the sensor output type by looking at the part number, datasheet, or physical wiring diagram printed on the sensor body.
  2. Check the PLC input card specifications to determine whether it is a sinking (requires PNP) or sourcing (requires NPN) module.
  3. Measure the voltage between the sensor output wire (black) and 0V (blue) while triggering the sensor; a 24V reading confirms a PNP output.
  4. Measure the voltage between the sensor output wire (black) and 24V (brown) while triggering; a 24V reading confirms an NPN output.
  5. Verify that the common terminal on the PLC input card is wired correctly (0V for sinking inputs, 24V for sourcing inputs).
PRACTICAL NOTES

PNP sensors are the standard in Europe and North America; NPN is more common in parts of Asia.

Some modern PLC input cards are configurable for either sinking or sourcing depending on how the common terminal is wired.

If you must mix types, use an interposing relay to convert the signal.

BEFORE YOU REPLACE THE PART

Bench checklist

  • Inspect the PLC digital input card specifications: confirm if the card expects sinking (PNP) or sourcing (NPN) field devices.
  • Verify sensor wire colors at the terminal block: Brown (+24V), Blue (0V Common), Black (Switched Output).
  • Measure DC voltage between the Black output wire and Blue 0V wire while manually triggering the sensor.
  • Check for required pull-up or pull-down resistor if connecting an open-collector sensor to a high-speed counter.
  • Ensure the 0V reference of the sensor power supply is bonded to the PLC input card's common terminal.

Reference families

  • IEC 61131-2 Standard
  • Sensor Manufacturer Technical Notes

Always verify the current edition and the exact device manual for the installation.

READ THE PRIMARY MATERIAL

Official references

These links point to standards bodies, industry organizations, or manufacturer documentation. Standards landing pages may require purchase or institutional access.

MV
FIELD INSTRUMENTATION & CONTROLS SPECIALIST

Marcus Vance, PE

16+ Yrs Field Exp

Marcus is a licensed Professional Engineer specializing in industrial process automation, PLC/DCS I/O commissioning, and instrumentation troubleshooting across petrochemical and manufacturing facilities.

Peer-reviewed for IEC & ISA standards compliance · Editorial methodology →
This note is an educational reference, not a substitute for the equipment manual, site procedures, or qualified electrical work.