Free
10 min

Wiring 2 — NPN / PNP (Sinking & Sourcing)

wiringnpnpnpsensorpolarity

Ready to build this?

Sign up free — no credit card required. This scenario is included in the free tier.

Sign up to play this scenario →

Already have an account? Log in

Not ready to sign up? Run a live lab now — no signup →

Wiring 2 — NPN / PNP (Sinking & Sourcing) scenario preview

Briefing

PNP and NPN describe which transistor type drives the signal output. **PNP (sourcing):** the output goes HIGH (+24 V) when the sensor detects. **NPN (sinking):** the output goes LOW (0 V) when the sensor detects. Your inductive proximity sensor is **PNP**. It has three wires: - **BN (Brown)** — supply +24 V - **BU (Blue)** — supply 0 V - **BK (Black)** — signal output (PNP → connects to PLC input) Wire it correctly to the PLC input card.

Objectives

  • Wire BN (Brown) to the +24 V supply
  • Wire BU (Blue) to the 0 V common
  • Wire BK (Black) signal to PLC input %I0.0

Hints

  • PNP output is active-high — the signal wire goes to a PLC *input* terminal.
  • NPN output is active-low — the signal wire goes to a PLC input with a sourcing card (reversed current path).

I/O Table

Inputs

PROX_SIGNAL

Proximity sensor signal wire (BK)

BOOL · %I0.0

PROX_BN

Brown (+24 V power wire)

BOOL · %I0.1

PROX_BU

Blue (0 V power wire)

BOOL · %I0.2

Ready to build this?

Sign up free — no credit card required. This scenario is included in the free tier.

Sign up to play this scenario →

Already have an account? Log in

Not ready to sign up? Run a live lab now — no signup →

Competency and practice field guide

Sourcing and sinking I/O wiring scenario: practice plan

Direct answer

The learner can draw the complete current path, match device and input types, prove common reference and diagnose reversed or incompatible wiring.

Written for pLC wiring beginners connecting PNP or NPN field devices to a compatible DC input circuit.

an isolated low-energy electrical controls bench with PLC I/O, protective devices and measurement points used for supervised fault diagnosis while studying sourcing and sinking DC input wiring, current direction and common reference
System map / 02

NODE 01observable

Scope

DC supply polarity, field-device output type, sourcing or sinking role, input circuit type, common terminal, protective device, load current and reference point.

NODE 02observable

Signal path

Positive supply through sourcing device and sinking input or the complementary path through field device, module circuit and common return.

NODE 03observable

Baseline practice

The intended field state produces a complete bounded current path, module indication and correct input tag without unintended leakage activation.

NODE 04observable

Edge cases

PNP to PNP mismatch, NPN to NPN mismatch, reversed polarity, missing common, shared return, leakage current, open conductor, short and alternate supply.

NODE 05observable

Fault practice

A supply, polarity, device-type, input-type, common, conductor, threshold or tag mismatch.

NODE 06observable

Transfer to the job

The exact devices wired to current manuals with approved segregation, protection and grounding practice.

Answer surface / 07

What is the difference between sourcing and sinking PLC inputs?

The terms describe current direction and which side supplies or receives current; a complete circuit requires electrically compatible field and module interfaces.

Can a PNP sensor connect to a sinking input?

Often yes in common DC arrangements, but terminology can be confusing, so verify the exact current path and both manufacturer diagrams.