⚡TechTrainer

← All lessons

👁️ Sensors & PLC Field Wiring

▶ Open the interactive lesson with 3D model and quiz

Sensors tell the PLC what the machine is doing. Get the wiring type wrong and a perfectly good sensor will never turn on an input.

PNP (sourcing) vs NPN (sinking)

Photo-eye types

TypeHowStrength / weakness
Thru-beamSeparate emitter and receiverLongest range, most reliable; two devices to wire
Retro-reflectiveBounces off a reflectorOne device; shiny targets can fool it (use polarized)
DiffuseBounces off the target itselfNo reflector; dark or far targets are hard

Light-operate vs dark-operate (or N.O./N.C. output) decides whether the output is on with the beam made or broken.

Proximity sensors

Inductive prox senses metal only (a few mm). Capacitive senses almost anything, including liquid through a plastic tank wall. Both have an LED that shows the output state: your first troubleshooting clue.

Troubleshooting an input that won't come on

  1. Sensor LED on? No: power, alignment, target, sensor.
  2. Sensor LED on, PLC input LED off? Measure at the input terminal: 24 V = bad input/card; 0 V = wire or PNP/NPN mismatch.
  3. Input LED on but logic doesn't respond? It's the program (wrong address, or bit used elsewhere).
🔧 Field Pro2-wire sensors leak a small current when off. On a high-impedance input that can be enough to light the input. A bleeder resistor or a 3-wire sensor fixes it. If a sensor works on the bench and not on the machine, look for electrical noise (route sensor cables away from motor leads) and a missing 0 V reference between separate supplies.

Next: 📶 Analog Signals: 4-20 mA Loops →