Skip to content
Estrin Automation

Digital I/O wiring: sinking, sourcing, NPN and PNP

14 October 2026

Digital inputs and outputs carry on-off signals between the plant and the controller. Most are 24 V DC, and most wiring faults come from confusing which side supplies the current.

Sinking and sourcing

  • A sourcing device supplies current to the load. A sinking device receives current from the load and passes it to ground.
  • A PNP sensor sources: its output switches the positive supply to the input. An NPN sensor sinks: its output switches the input to the 0 V side.
  • An input card is built for one kind. Connect a PNP sensor to an input that expects sourcing devices, and an NPN sensor to one that expects sinking devices, or use a card that supports both.

Sensors and contacts

  • Mechanical contacts are the simplest and work with either type of card.
  • Three-wire sensors need supply, 0 V and signal. Two-wire sensors leak a small current in the off state, which some inputs read as on.
  • Choose normally closed contacts for stop buttons and safety-related signals, so that a broken wire is read as a stop and not as a missing signal.

Outputs

  • Relay outputs suit mixed voltages and occasional switching. Transistor outputs suit fast, frequent switching at low DC loads.
  • Inductive loads such as coils and contactors need suppression, such as a flyback diode or RC network, to protect the output and reduce noise.
  • Do not exceed the output's current rating. Use an interposing relay for heavier loads.

Label each terminal with its tag and address, and record the wiring type in the I/O list. It saves hours at commissioning.

Related: Control Panel Manufacturing

Have a control or automation project?

Tell us about the process and what you need. We will come back to you with the next step.