MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Two-wire versus three-wire sensor wiring
HomeModels
Table of contents

On this page

Drives & Actuators (102 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Two-wire versus three-wire sensor wiring

Wrong wiring of two-wire versus three-wire sensors ends in dead inputs or dead sensors. This page covers the principle difference, matching to PLC inputs, and the traps of voltage drop and leakage current.

1. How it works

Two-wire sensors sit in series with the load: both wires carry power and signal, distinguishing states by current, a few milliamps to 20 mA on and 1 to 2 mA leakage off. They save wiring and suit intrinsically safe duty, but leakage can light PLC inputs falsely and voltage drop runs 3 to 7 V. Three-wire sensors add a dedicated signal wire: NPN pulls low, PNP pulls high, with small drop and leakage, dominating Chinese and European practice. European PLC inputs usually sink and pair with PNP sensors; Japanese equipment often uses NPN. Verify before ordering.

2. Numbers and practice

Match three things: input type, where a common terminal tied to 24 V pairs with PNP and to 0 V with NPN; input threshold, since PLC inputs switch around 5 to 10 mA and two-wire off-state leakage must stay below about 1.5 mA; and voltage drop, since a starved sensor chatters. Mixed types go through interposing relays or are replaced; forcing them together burns input stages.

3. Pitfalls and fixes

Traps: two-wire leakage lighting the input permanently, cured with a 10 kΩ 2 W bleeder across the input to 0 V; long two-wire runs starving the sensor, fixed by three-wire or thicker cable; relay interposing wired with coil and contact swapped, inverting every signal. Diagnose by three steps: sensor supply voltage, signal voltage toggling with the target, and the PLC input LED; five minutes pinpoints it.

4. Sensor wiring quick table

TypeWires and signalTrade-offsFits
Two-wireSeries in loopFewer wires, leakage and dropIntrinsically safe runs
Three-wire NPNSupply plus low signalJapanese practiceSourcing inputs
Three-wire PNPSupply plus high signalEuropean mainstreamSinking inputs
Bleeder resistor10 kΩ across inputCures leakage glowTwo-wire to PLC
Voltage drop3 to 7 V on two-wireStarved sensor chattersChange at 20 m plus
Match checkVerify input type firstMixing burns modulesEvery new device

5. Notes

Mark every sensor type against the PLC input type in a cross-reference table on the drawing; purchase follows the table. Trial new sensors on a spare input point before assigning them to production logic.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Sensor interfaces and wiring follow GB/T 5226.1; proximity sensors reference GB/T 34013 and IEC 60947-5-2. Always check the device datasheet and the product design file for ratings and derating.

7. Cautions

⚠️ Three common pitfalls:
① Unmanaged two-wire leakage keeps inputs lit and the logic always sees the part, batch-scapping detection
② Mixing NPN and PNP without checking burns sensors or PLC input stages by the dozen
③ Long two-wire runs without a drop calculation starve the sensor into chattering that defies troubleshooting

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL