PLC 2-Wire & 3-Wire Sensor Wiring in 2026: PNP, NPN, IO-Link

AI Summary

  • 2-wire sensors share power and signal on the same pair, work as sinking or sourcing, and are still common on legacy PLCs in 2026.
  • 3-wire PNP (sourcing) and NPN (sinking) sensors use separate load, signal, and ground wires — IEC 60947-5-2 color codes still hold.
  • IO-Link (IEC 61131-9) is now the default on new 3-wire smart sensors, adding diagnostics on top of the binary signal wire.
  • Mismatched sink/source polarity is the top cause of "sensor won't trigger the PLC" field calls — always check the input card's type first.

A 2026 wiring cheat sheet for 2-wire and 3-wire sensors on Allen-Bradley, Siemens, Mitsubishi, Omron, Schneider, and KEYENCE PLCs, with IO-Link migration notes.

Engineering Notes · Sensors & Wiring · Updated 2026-06-30

Two years after this article was first published, the way we wire a discrete sensor to a Allen-Bradley, Siemens, or Mitsubishi PLC has not changed at the physics level — brown / blue / black wire colors are still governed by IEC 60947-5-2, and the "2-wire vs 3-wire" question is still the first thing a field tech gets asked. What has changed is what those three wires now carry. The signal line on a 2026-vintage sensor is very often an IO-Link point-to-point link, not a hard 24 V on/off. The article below keeps the original 2-terminal / 3-terminal framing and adds a 2026 layer on top: PNP vs NPN, sinking vs sourcing, and where IO-Link fits.

What is a "2-terminal" sensor?

A 2-terminal (or 2-wire) sensor has only two connection points. The same pair of wires carries both the load current that powers the sensor and the signal current that indicates the switched state. In practice you wire the two leads in series with the load — typically the PLC input card's input terminal and the field supply common. When the target is detected, the internal transistor closes and current flows; when it is not, leakage current is below a defined threshold (usually < 1.5 mA on modern IEC devices).

Examples still in our 2026 stock: Omron E2E-X2MY1 (M12 inductive, 2-wire DC), KEYENCE FS-N18N (fiber amplifier, 2-wire output mode), and Sick WL100-2 retrofits. They are cheap, they are polarity-insensitive on DC, and they survive in washdown environments where a third wire would corrode.

> Tip

2-wire sensors have a residual off-state leakage current. If a Siemens S7-1200 SM 1221 input reads "1" with no target present, check the leakage spec on the sensor datasheet before chasing a wiring fault — the sensor is doing exactly what the IEC standard says it should.

What is a "3-terminal" sensor?

A 3-terminal (3-wire) sensor separates power, ground, and signal. The classic 2026 pinout is brown (+24 V), blue (0 V), and black (signal). The signal transistor can be wired two ways, and getting this wrong is the single most common reason a "new sensor" refuses to trigger a "known-good" PLC:

Sensor type Signal wire state when "ON" PLC input card required
PNP (sourcing) Switches +24 V to the black wire Sinking (the default on European / AB / Siemens cards)
NPN (sinking) Switches 0 V to the black wire Sourcing (more common on Japanese PLCs and on some older Omron CP1E cards)

The rule of thumb: sourcing sensor needs a sinking input, sinking sensor needs a sourcing input. Mix them and you will either see a permanently-lit input or a permanently-dark input. The Mitsubishi MELSEC iQ-R RX40C7 input card, for example, is sinking — pair it with a PNP sensor. The Schneider Modicon M340 BMX DDI 1602 is also sinking; the BMX DDO 1602 is the sourcing variant.

! Warning

Wiring a PNP sensor into a sourcing PLC input does not just give a "0" — on some cards it sources current back into the sensor's signal transistor and damages the output stage. Verify the input card's sinking/sourcing spec from the manufacturer datasheet, not the sticker on the front.

What changed since 2024

Three things shifted between the original 2024 article and the 2026 maintenance update:

  • IO-Link is now standard on new 3-wire sensors. IEC 61131-9 (the "Single-drop digital communication interface for sensors / actuators") is the default digital layer on most 2026 photoelectric, inductive, and ultrasonic smart sensors. The physical cable is still 3-wire (or 4-wire with the spare for a second DO), but the black wire now carries a modulated SDCI signal, not a hard 24 V. A standard Siemens S7-1500 with an SM 8xIO-Link master can read both the binary process value and the diagnostic data (temperature, hours-run, quality bit) on the same wire.
  • PNP has won the European / American market by default. Most 2026 sensor catalogs from KEYENCE, Sick, IFM, and Balluff are PNP-first, with NPN as a derated variant. Japanese PLC platforms (Mitsubishi FX5, Omron NX) still ship sourcing input cards, so a global panel builder still needs to stock both wiring variants.
  • "Smart" 2-wire sensors are appearing. IO-Link is creeping into the 2-wire form factor as well, with a low-energy variant (SDCI-Low) that overlays digital data on the same pair. The classical "2-wire sensor is just a switch" assumption is now 90% true and 10% legacy — check the datasheet.

Cross-reference: 2-wire and 3-wire sensor families in our 2026 catalog

Function 2-wire (2026 picks) 3-wire PNP / NPN (2026 picks)
Inductive, M12, 4 mm Omron E2E-X2MY1, IFM I53002 Sick IME12-04BPSZW2K (PNP), IME12-04BNSW2K (NPN)
Photoelectric, diffuse, 1 m KEYENCE FS-N18N (2-wire mode) KEYENCE PZ-G102P (PNP, IO-Link-ready)
Capacitive, M18, 8 mm Balluff BCS M18B4M1-PSC15D-EP02 IFM KI508A (PNP, IO-Link)

Stock on all of the above is checked weekly and recorded on our Daily PLC News page. If the exact part number is not on the shelf, our AI Diagnostic Tool can suggest a cross-reference from any of the nine brands we carry.

Wiring a multi-brand sensor panel?

Send your BOM — sensor list, PLC family, and I/O card types — to Moritta@KOEED.COM. We quote 2-wire, 3-wire, and IO-Link stock side by side, with 24-hour turnaround.

Send My BOM →

How the wiring actually works on a 2026 PLC

Step-by-step, the practice has not changed much since the 2024 article — we are still doing brown to +24 V, blue to 0 V, black to the PLC input terminal. The 2026 update is the diagnostic step at the end:

  1. Identify the sensor family (inductive, photoelectric, capacitive) and the supply voltage from the side label.
  2. Identify the PLC input card as sinking or sourcing. For Allen-Bradley 1756-IB16IF, the input is sinking. For 1756-IB16ISO, also sinking. The 1756-OB16E output is sourcing — but that is the output side.
  3. Match the polarity: PNP sensor + sinking input (default), or NPN sensor + sourcing input.
  4. Check residual / leakage current against the PLC input's "OFF" threshold. A 2-wire sensor with 1.7 mA leakage on a Siemens SM 1221 will read ON permanently.
  5. For IO-Link sensors: replace the input card with an IO-Link master (Siemens SM 8xIO-Link, AB 1734-4IOL, Mitsubishi NZ2GFB-60DT4), wire the sensor to the master's C/Q port, and import the IODD file in TIA Portal / Studio 5000 / GX Works3.
  6. Validate end-to-end with a target in front of the sensor and a forced ON in the PLC tag — the round-trip latency on a 2026 IO-Link channel is sub-millisecond.

Related on KOEED Blog

Frequently asked questions

Are 2-wire sensors still relevant in 2026, or should I use 3-wire / IO-Link everywhere?

Yes — 2-wire devices remain the right answer for low-cost, low-power, and washdown use. Most 2026 catalog is 3-wire PNP, with a growing IO-Link slice. The 2 vs 3 wires framing still holds.

My PNP sensor will not turn on a sinking input. Is the sensor broken?

Almost always no. A PNP sensor sources current into a sinking input — that is the correct pairing. Measure the black wire to 0 V with a target present: close to +24 V means the sensor is fine.

Can I run an IO-Link sensor on a 2024-vintage PLC that has no IO-Link master?

Yes, in SIO mode. Most 2024+ IO-Link sensors still expose a clean 24 V on/off on the same wire without a master. You lose diagnostics, but the binary value still works on any standard sinking input.

Do Mitsubishi and Omron still ship sourcing input cards as the default in 2026?

Yes, for most DC input modules. Mitsubishi iQ-R RX40C7 and Omron NX-ID5142 are still sinking (pair with PNP). The NX-ID6142 sourcing variant handles NPN. Always confirm against the 2026 datasheet.

Where can I cross-reference a 1990s sensor to a 2026 IO-Link equivalent?

Send the original part number and the application to Moritta@KOEED.COM, or use the AI Diagnostic Tool for a free first-pass match. We stock active, EOL, and IO-Link equivalents across nine brands.

KOEED Engineering Team

Industrial automation editor at KOEED. Writes about PLC sourcing, cross-reference, and legacy system support. Reach the team at Moritta@KOEED.COM.

Related Articles

Zurück zum Blog