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.
Quick reference: PNP (Sourcing) vs. NPN (Sinking) Industrial Sensor Interface Matrix
| Operating Parameter | PNP Sensor (Sourcing) | NPN Sensor (Sinking) |
|---|---|---|
| Internal Switching Element | High-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 Module | Sinking Input (PLC input module draws current to internal 0V) | Sourcing Input (PLC input module pushes current out from +24V) |
| PLC Common (COM) Terminal Wiring | Connected directly to 0 V DC (Negative Rail) | Connected directly to +24 V DC (Positive Rail) |
| Short-to-Ground Failure Mode | Blown sensor fuse or current-limiting fault; PLC sees 'OFF' (Failsafe) | Dangerous false trigger: shorting signal to machine frame forces PLC 'ON' |
| Primary Geographic & Brand Standard | Europe & 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.
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.
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.
Five checks before replacement
- Identify the sensor output type by looking at the part number, datasheet, or physical wiring diagram printed on the sensor body.
- Check the PLC input card specifications to determine whether it is a sinking (requires PNP) or sourcing (requires NPN) module.
- Measure the voltage between the sensor output wire (black) and 0V (blue) while triggering the sensor; a 24V reading confirms a PNP output.
- Measure the voltage between the sensor output wire (black) and 24V (brown) while triggering; a 24V reading confirms an NPN output.
- Verify that the common terminal on the PLC input card is wired correctly (0V for sinking inputs, 24V for sourcing inputs).
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.
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.
Official references
These links point to standards bodies, industry organizations, or manufacturer documentation. Standards landing pages may require purchase or institutional access.
- IEC 61131-2:2017 IEC
Official standard landing page for PLC equipment and digital-I/O requirements; the standard text may require purchase.
- Inductive Proximity Sensor Specifications Rockwell Automation
Official documentation defining NPN/sinking and PNP/sourcing outputs with wiring diagrams.
- How do I determine which proximity sensor output I need? AutomationDirect
Manufacturer support page explaining PNP sourcing, NPN sinking, and PLC input matching.
- IO-Link Technology IO-Link Community
Official industry overview of modern sensor interfaces and three-wire device connections.