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.
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.
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.
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.
| Type | Wires and signal | Trade-offs | Fits |
|---|---|---|---|
| Two-wire | Series in loop | Fewer wires, leakage and drop | Intrinsically safe runs |
| Three-wire NPN | Supply plus low signal | Japanese practice | Sourcing inputs |
| Three-wire PNP | Supply plus high signal | European mainstream | Sinking inputs |
| Bleeder resistor | 10 kΩ across input | Cures leakage glow | Two-wire to PLC |
| Voltage drop | 3 to 7 V on two-wire | Starved sensor chatters | Change at 20 m plus |
| Match check | Verify input type first | Mixing burns modules | Every new device |
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.
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.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.