Free
10 min

Wiring 2 — NPN / PNP (Sinking & Sourcing)

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

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

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