Dingfelder Field Handbook™ · Page 31

PNP vs. NPN, Sinking vs. Sourcing

Understand practical PNP and NPN sensor wiring, sinking and sourcing inputs, common wiring mistakes, PLC input compatibility, and first checks.

Plain-English Summary

PNP and NPN describe common DC sensor output styles. Sinking and sourcing describe which side of the circuit provides or receives current. The field question is whether the sensor output matches the PLC input wiring and common reference.

Why It Matters

A correct sensor can fail to work if the output type does not match the input circuit. A wiring mismatch can create no signal, a signal that is always on, a damaged input, a damaged sensor, or confusing troubleshooting.

Field Rule of Thumb

Do not replace a three-wire DC sensor until you confirm the output type and input common. The sensor, power supply, PLC input, and common must agree.

Walt - Simple Man Takeaway

A brown, blue, and black wire do not tell the whole story. Know what the black wire does before you blame the sensor.

Core Formula / Concept

Many three-wire DC sensors use brown for positive DC supply, blue for DC common / 0 V, and black for switched output, but always verify the manufacturer wiring. A PNP sensor commonly sources positive voltage to the input when active. An NPN sensor commonly sinks current to DC common when active. PLC input modules may be wired as sinking or sourcing depending on current flow.

Worked Example

A failed sensor is replaced with one that has the same body, connector, voltage range, and sensing distance. The machine still does not see the input. The original sensor was PNP and the replacement was NPN. The sensor may light locally, but the PLC input module and wiring do not receive the expected signal.

Common Mistakes

  • Matching the connector but not the output type.
  • Calling every DC sensor “24 volt” and stopping there.
  • Trusting LED status without checking PLC input.
  • Mixing sinking/sourcing terminology without confirming actual wiring.
  • Ignoring shared commons.
  • Replacing an input card before checking field wiring, sensor output, and connector damage.

First Checks / Troubleshooting Flow

  1. Make the area electrically safe.
  2. Identify sensor part number.
  3. Confirm supply voltage.
  4. Confirm sensor output type.
  5. Confirm manufacturer wire colors.
  6. Identify PLC input module type.
  7. Identify input common wiring.
  8. Check sensor power at the device.
  9. Check sensor output at the device.
  10. Check signal at the PLC input terminal.
  11. Check PLC input status in the program or diagnostic screen.
  12. Compare against the wiring diagram before replacing parts.

Walt says STOP! - Safety First

Make these checks prior to proceeding.

Stop when the sensor controls motion, field wiring enters a live panel, live testing may be required, the input is part of a safety circuit, output jumping is suggested, or the PLC input/common wiring is not understood. Do not jump inputs or force signals without knowing what the machine will do.

Source Notes / References

This page is original Dingfelder practical field guidance. Verify controlled requirements against drawings, OEM documentation, current standards, site procedures, customer requirements, and qualified authority where applicable.