PLC Sim Lab
Ladder logic how-tos

Sinking vs sourcing PLC inputs and outputs

"Sinking" and "sourcing" describe which way current flows through a PLC input or output. Get them mixed up and a perfectly good sensor never turns the PLC input on. Once you see it as a simple current loop, it is easy.

2 min read · Updated 2026-10-02

The definitions

Current always needs a complete loop: one side sources, the other sinks. A sourcing sensor must feed a sinking input, and a sinking sensor must feed a sourcing input.

PLC inputs

Input typeInput common (COM / M / S/S) goes toUse with
Sinking input0 VPNP (sourcing) sensors, buttons fed from +24 V
Sourcing input+24 VNPN (sinking) sensors, buttons switching to 0 V

Many modern PLCs have a selectable common: the same input group becomes sinking or sourcing depending on whether you connect its common to 0 V or +24 V. On Mitsubishi FX the common is called S/S; on Siemens it is 1M.

PNP and NPN sensors

A PNP sensor sources (its output wire goes to +24 V when it detects), so it needs a sinking input (common to 0 V). An NPN sensor sinks (its output goes to 0 V), so it needs a sourcing input (common to +24 V). Europe and much of Asia mostly use PNP; Japan and older machines often use NPN. Details: PNP vs NPN sensors.

PNP sensor -> sinking input:    +24V -> sensor -> PLC input -> (input circuit) -> COM -> 0V
NPN sensor -> sourcing input:   +24V -> COM -> (input circuit) -> PLC input -> sensor -> 0V

PLC outputs

The classic fault

The sensor's LED lights when it sees the target, but the PLC input LED stays off. The sensor works; the loop is not complete. Usually a PNP sensor was replaced with an NPN one (or the reverse), or the input common is on the wrong rail. Swap the sensor for the right type, or move the common if the whole group can change.

Try it in the simulator

In the PLC Sim Lab Playground you can wire PNP and NPN sensors, move the PLC input common between 0 V and +24 V, and switch the output type between sourcing and sinking, then see exactly when the input turns on. Start with the lesson Wire a 3-wire PNP sensor.

Watch it on the PLC Sim Lab channel

The short version: who switches +24 V, who switches 0 V, and where the input common goes. Open on YouTube → · More videos →

Try it yourself. Wire sensors, contactors and a PLC, write ladder logic and press RUN in the free PLC Sim Lab Playground. Nothing to install.

Open the Playground →Guided lessons →

Frequently asked questions

Is a PNP sensor sinking or sourcing?

Sourcing: it switches +24 V to its output wire. It needs a sinking PLC input, with the input common connected to 0 V.

Can one PLC input group accept both PNP and NPN sensors?

Not at the same time. A group with a selectable common is either sinking (common to 0 V, for PNP) or sourcing (common to +24 V, for NPN). Use separate groups for mixed sensors.

Why does my sensor light up but the PLC input does not turn on?

The current loop is incomplete: usually a PNP / NPN mismatch with the input common, a missing common connection, or a broken signal wire.