Sinking vs Sourcing: PLC Inputs, Outputs and PNP vs NPN Sensors

By editor 8 min read
PNP sensor wired to a sinking PLC input and NPN sensor wired to a sourcing PLC input

Sinking and sourcing describe which way DC current flows through a PLC input, output or sensor. A sourcing device supplies current from the positive (+) side; a sinking device provides the path to the negative (−) common. PNP sensors are sourcing and NPN sensors are sinking, and the PLC input must be the opposite type: a PNP sensor needs a sinking input, and an NPN sensor needs a sourcing input. For outputs, a sourcing output feeds +24 V to the load, while a sinking output switches the load’s return to 0 V. The terms apply only to DC circuits.

Sinking = path to supply common (−)   |   Sourcing = path to supply source (+)
PNP
sourcing sensor
NPN
sinking sensor
Opposites
sensor and input must differ
DC only
terms do not apply to AC

Sinking vs Sourcing at a Glance

SourcingSinking
DefinitionProvides a path to the supply source (+)Provides a path to the supply common (−)
3-wire DC sensor typePNP: switches +24 V onto the signal wireNPN: switches the signal wire to 0 V
PLC input of this type acceptsNPN (sinking) sensorsPNP (sourcing) sensors
Input looks for0 V on the input = true+24 V on the input = true
Input common connects to+24 V0 V
PLC output of this typeSupplies +24 V to the load; load returns to 0 VLoad fed from +24 V; output switches it to 0 V
IEC term (AutomationDirect)Input: negative logic; output: positive logicInput: positive logic; output: negative logic
From AutomationDirect’s sinking and sourcing concepts and RS Expert Advice on PNP vs NPN sensors.

What Sinking and Sourcing Mean

AutomationDirect’s guide starts with the key point: the diagrams involve only DC, so “sinking and sourcing terminology applies only to DC input and output circuits.” Sinking and sourcing points conduct current in one direction only, so if you connect the supply and field device the wrong way round, current tries to flow the wrong way and the circuit does not operate. Once you understand which side each device switches, you can wire it correctly every time.

Its short definitions: sinking provides a path to supply common (−) and sourcing provides a path to supply source (+). To wire a sinking input, follow the current: from the supply (+), through the switch or sensor, into the input terminal, through the input sensing circuit, out of the common terminal, and back to supply (−).

PLC Inputs: PNP and NPN Sensors

PNP sensor with sinking PLC input and NPN sensor with sourcing PLC inputLeft: a PNP sensor sources +24 volts to a sinking PLC input whose common returns to 0 volts. Right: an NPN sensor sinks the signal to 0 volts at a sourcing PLC input whose common connects to +24 volts.Matching sensors to PLC inputs: the two must be oppositePNP (sourcing) sensor → SINKING input24 VDC+−PNPsensorPLCsinkinginputsignalinput common → 0 VSensor switches +24 V to the inputinput common goes to 0 V (−)NPN (sinking) sensor → SOURCING input24 VDC+−NPNsensorPLCsourcinginputsignalinput common → +24 VSensor switches 0 V to the inputinput common goes to +24 V (+)IndustrialBasicsindustrialbasics.com
Figure 1: Simplified. RS Expert Advice: a sinking DI suits PNP sensors and looks for +24 V; a sourcing DI suits NPN sensors and looks for 0 V. Real modules show the exact terminals in their wiring diagrams.

RS Expert Advice explains that the PLC input type must be complementary (opposite) to the field device: a sinking input suits PNP sensors and looks for +24 V from the sensor’s switched lead; a sourcing input suits NPN sensors and looks for 0 V. It also warns that module diagrams sometimes use the terms the other way, describing an input as “compatible with sourcing field devices”, which means the input itself is sinking. Always read the wiring diagram.

Sensor and Input Compatibility Checker
IndustrialBasics checker. Rule: the field device and the input must be opposite types. Always confirm against the module’s wiring diagram; manufacturers sometimes describe an input by the device it accepts.

Sink/source inputs

Many modern cards are sink/source: the circuitry conducts in either direction, so the polarity you put on the common terminal decides the behavior. AutomationDirect adds two rules: wire all points that share a common the same way (all sinking or all sourcing), and never use an AC supply on a DC sink/source point.

PLC Outputs: Sourcing vs Sinking

Sourcing and sinking PLC output wiringA sourcing output sits between +24 volts and the load, so it supplies positive voltage to the load whose other side goes to 0 volts. A sinking output sits between the load and 0 volts, so the load is fed from +24 volts and the output provides the return path.PLC outputs: which side of the load the output switchesSOURCING output+24 V0 VPLC outputloadOutput provides +V to the loadSINKING output+24 V0 VPLC outputloadOutput provides the path to 0 VIndustrialBasicsindustrialbasics.com
Figure 2: AutomationDirect: sinking provides a path to supply common (−); sourcing provides a path to supply source (+).

With a sourcing output, the PLC switches +24 V to the load, and the load’s other side goes to 0 V. With a sinking output, the load is always connected to +24 V and the PLC output closes the path to 0 V. Match the output type to the load and to any device it drives, such as another controller’s input. For protecting output and input circuits, see PLC I/O fuse protection.

PNP vs NPN: Which Should You Use?

  • Regional practice: RS notes most European and North American designers choose PNP sensors with sinking inputs, while Asian equipment has tended toward NPN with sourcing inputs. US distributors usually stock far more PNP sensors.
  • Troubleshooting: with PNP, +24 V = on = true, which RS says is easier for technicians to work with than 0 V = on.
  • Damaged cables: RS points out that a PNP signal shorted to ground may damage the sensor, while an NPN signal shorted to ground can create a false “on” without damage.
  • Check part numbers: PNP and NPN versions often differ by one character, and some sensors can be configured either way.
  • Leakage current: RS warns a device with high off-state leakage can falsely turn on an input with a low switching threshold; this is more of an AC issue, but check DC data sheets too.
Retrofit tip: When retrofitting imported machinery, check whether its sensors are NPN before ordering replacement cards or sensors. A sink/source input card wired with the right common polarity can accept either.

Troubleshooting Sinking and Sourcing Problems

  • Sensor LED on, PLC input off: sensor and input are the same type, or the input common is on the wrong supply rail.
  • Input always on: an NPN sensor with a cable fault to 0 V on a sourcing input, or excessive leakage current.
  • Some inputs on a common work, others do not: mixed sinking and sourcing devices on one common.
  • Output on but load dead: load wired to the wrong rail for the output type, or a blown output fuse.

Use a meter to check the signal wire against 0 V and +24 V: a PNP sensor that is on should read about +24 V to 0 V; an NPN sensor that is on should read near 0 V to 0 V (and 24 V to +24 V). See our guide on how to check amps with a multimeter for measuring the input current, and what is a PLC for how inputs and outputs fit into the scan.

Safety note: De-energize and lock out control panels before rewiring I/O. Many panels have 120 V AC and 24 V DC circuits side by side; keep them separated and labeled.

Contact naming is the other half of control wiring basics; see SPDT vs DPDT for poles, throws and relay contact forms.

Frequently Asked Questions

What is the difference between sinking and sourcing?

A sourcing device supplies current: it connects the load or input to the positive (+) supply. A sinking device provides the return path: it connects to the negative (−) supply common. AutomationDirect sums it up as sinking = path to supply common (−), sourcing = path to supply source (+).

Is PNP sinking or sourcing?

PNP sensors are sourcing: they switch +24 V onto the signal wire when on. NPN sensors are sinking: they switch the signal wire to 0 V.

Which PLC input do I use for a PNP sensor?

A sinking input. RS notes a sinking DI suits PNP field devices and looks for +24 V from the sensor to indicate true.

Which PLC input do I use for an NPN sensor?

A sourcing input, which looks for 0 V from the sensor to indicate true.

Do sinking and sourcing apply to AC circuits?

No. AutomationDirect explains the terms apply only to DC input and output circuits, because they depend on + and − polarity.

What happens if I wire a PNP sensor to a sourcing input?

It will not work: both try to supply current and neither provides the return path. Sinking and sourcing points conduct current in one direction only, so the input never turns on.

What is a sink/source input?

An input whose circuit conducts either way. The polarity you connect to the common terminal decides how it behaves, but every point sharing that common must be wired the same way, and AC must not be used on a DC sink/source point (AutomationDirect).

Which is more common in the US, PNP or NPN?

PNP. RS notes that most European and North American designers choose PNP sensors with sinking inputs, while Asian equipment has tended toward NPN sensors with sourcing inputs.

Why is PNP often preferred?

RS explains that +24 V = on = true is easier for programmers and technicians to troubleshoot than 0 V = on, and points out the different failure behavior when a cable is damaged.

What is the IEC terminology?

AutomationDirect labels a sinking input as IEC “positive logic” and a sourcing input as “negative logic”; for outputs, sourcing is positive logic and sinking is negative logic.

Sources and Further Reading

About the author

editor

Leave a Comment