OSETC.021: Photoelectric Sensors Basics

Black and neon-green industrial illustration of a photoelectric sensor detecting an object on a conveyor.

Photoelectric sensors use light to detect objects without physical contact. For technicians, the essential skills are recognizing the sensing mode, aligning the optics, understanding light-on/dark-on behavior, matching the output to the control input, and troubleshooting contamination or misalignment.

This lesson follows OSETC.020: Limit Switches and Proximity Sensors Basics and extends industrial sensing into optical detection.

What a photoelectric sensor does

A photoelectric sensor contains an emitter that produces a beam of light and a receiver that detects that light. Its electronics turn changes in received light into an electrical output for a PLC, relay, counter, or other control device.

Video 1: Photoelectric sensor fundamentals

Verified industrial-automation education platform RealPars explains through-beam, retroreflective, and diffuse photoelectric sensing with practical examples.

Through-beam sensing

A through-beam system uses a separate emitter and receiver mounted opposite each other. The receiver normally sees the emitter’s beam; an object is detected when it interrupts that optical path.

  • Separate emitter and receiver
  • Long detection range
  • Strong sensing reliability when properly aligned
  • Requires wiring and mounting on both sides of the detection area

Retroreflective sensing

A retroreflective sensor places the emitter and receiver in one housing and aims the beam at a reflector. The reflector returns the beam. A target is detected when it interrupts the return path.

Technicians should verify reflector alignment and understand that shiny targets can create unusual reflections. Polarized retroreflective designs are often used to improve discrimination between a reflector and reflective objects.

Video 2: Banner Engineering retroreflective mode

Banner Engineering’s manufacturer training demonstrates retroreflective photoelectric sensing and its operating principles.

Diffuse sensing

A diffuse sensor also combines emitter and receiver in one housing, but it uses light reflected directly from the target rather than from a separate reflector. Target color, texture, angle, distance, and reflectivity can therefore influence performance.

Light-on and dark-on logic

Many photoelectric sensors allow the output logic to be selected. Light-on means the output is active when the receiver sees the expected light. Dark-on means the output is active when the expected light is blocked or absent. Always confirm the manufacturer’s definition for the exact device.

PNP and NPN outputs

DC industrial sensors commonly use PNP or NPN transistor outputs. A PNP output sources current toward the load/input; an NPN output sinks current toward 0 V. The sensor output must be compatible with the PLC input or load circuit.

Typical 3-wire convention:
Brown = +V DC
Blue  = 0 V DC
Black = switched output

Always verify the actual datasheet.

Video 3: Wiring, setup, and troubleshooting

RealPars demonstrates 24 VDC photoelectric sensor wiring, alignment, sensitivity setup, light-on/dark-on behavior, and practical troubleshooting.

Alignment and excess gain

Optical alignment matters. A sensor that barely detects its beam in a clean shop may become unreliable after vibration, dust, condensation, or lens contamination. Industrial sensor manufacturers often describe the signal margin as excess gain. Greater margin generally gives more tolerance for real-world contamination and alignment drift.

Technician troubleshooting sequence

  1. Verify the correct sensor and sensing mode.
  2. Check supply voltage and polarity against the datasheet.
  3. Inspect the lens, reflector, brackets, cable, and connector.
  4. Clean optical surfaces using an approved method.
  5. Check emitter/receiver or sensor/reflector alignment.
  6. Observe power, stability, and output indicators.
  7. Move a known target through the sensing area.
  8. Confirm light-on/dark-on configuration.
  9. Verify the output actually changes electrically.
  10. Trace the signal to the PLC/input only after the sensor itself is proven.

Common failure modes

  • Dirty or damaged lens
  • Misaligned emitter, receiver, or reflector
  • Loose bracket after vibration
  • Wrong sensitivity or teach setting
  • Wrong light-on/dark-on mode
  • PNP/NPN mismatch with the input circuit
  • Damaged cable or connector
  • Highly reflective, transparent, very dark, or irregular targets
  • Strong ambient optical interference

Data-center and industrial examples

Photoelectric sensors can detect cartons on conveyors, verify doors or moving mechanisms, count parts, monitor material movement, and provide position feedback without physical contact. In automated infrastructure, their output may become a PLC permissive or sequence input, so technicians must distinguish an optical sensing problem from a downstream control-logic problem.

Safety boundary

Photoelectric presence sensors used for ordinary automation are not automatically safety-rated protective devices. Never substitute a general-purpose photoeye for a safety light curtain, interlocked guard system, or other safety function unless the complete system is specifically designed and rated for that purpose.

Practice

  1. Identify the emitter and receiver in a through-beam pair.
  2. Explain why a retroreflective sensor needs a reflector.
  3. Describe one condition that can make diffuse sensing unreliable.
  4. Explain light-on versus dark-on.
  5. Identify brown, blue, and black in a typical 3-wire DC sensor while noting that the datasheet remains authoritative.
  6. Write a troubleshooting sequence for a conveyor photoeye that stopped detecting boxes.

Knowledge check

Question: Which photoelectric mode normally has a separate emitter and receiver?
Answer: Through-beam.

Question: Which mode uses a separate reflector?
Answer: Retroreflective.

Question: Why should a technician check the sensor’s own indicator before blaming the PLC?
Answer: It helps separate an optical/sensor problem from wiring or downstream control logic.

Previous technician lessons

OSETC.020: Limit Switches and Proximity Sensors Basics

OSETC.019: Time-Delay Relays Basics

OSETC.018: Interlocks and Permissives Basics

Key takeaway

Photoelectric sensors extend industrial detection beyond mechanical contact. A field technician should be able to identify through-beam, retroreflective, and diffuse modes; understand output logic; align and clean the optics; and prove the sensor signal systematically before troubleshooting the rest of the control circuit.

Leave a comment