Pro
12 min

Wiring 3 — Wire a Photoeye Sensor to %I0.0

wiringdigital-inputphotoeyesensor

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in

Wiring 3 — Wire a Photoeye Sensor to %I0.0 scenario preview

Briefing

A retro-reflective photoeye detects objects by bouncing an IR beam off a reflector. When the beam is broken (object present), the output opens. The sensor has the standard 3-wire connection: - **BN (Brown)** — +24 V supply - **BU (Blue)** — 0 V common - **BK (Black)** — digital output signal → PLC input Wire the photoeye to **%I0.0**.

Objectives

  • Wire photoeye BN to +24 V supply
  • Wire photoeye BU to 0 V common
  • Wire photoeye BK signal to PLC %I0.0
  • Wire output LED1 indicator to PLC %Q0.0

Hints

  • The signal (BK) wire carries the ON/OFF state — it goes to the input card.
  • Retro-reflective sensors are normally closed — they output 24 V until a part blocks the beam.

I/O Table

Inputs

EYE_SIGNAL

Photoeye signal output (BK)

BOOL · %I0.0

EYE_BN

Photoeye +24 V (BN)

BOOL · %I0.1

EYE_BU

Photoeye 0 V (BU)

BOOL · %I0.2

Outputs

LED1

Part-present indicator lamp

BOOL · %Q0.0

Ready to build this?

Sign up free — no credit card required. This scenario requires the Pro plan.

Sign up to play this scenario →

Already have an account? Log in

Competency and practice field guide

Photoeye digital-input wiring scenario: practice plan

Direct answer

The learner can identify sensor conductors, supply, common and switching path, then prove both input states without relying on wire color or LED alone.

Written for pLC and electrical learners connecting a photoelectric sensor to a digital input and relating current path to the input tag.

a touch-safe 24 VDC troubleshooting bench with protection, terminal blocks, PLC I/O, test points and a visible open conductor while studying 24 VDC photoeye wiring, input common, switching type and controller-state verification
System map / 02

NODE 01observable

Scope

Sensor function, PNP or NPN behavior, supply, common, output conductor, PLC input type, channel, input image and process meaning.

NODE 02observable

Signal path

Target condition through sensor electronics and switching path into module common, channel indication, controller tag and program consumer.

NODE 03observable

Baseline practice

Known clear and blocked conditions producing coherent device, channel, tag and logic states with expected voltage relationships.

NODE 04observable

Edge cases

Wrong common, incompatible switching type, broken conductor, leakage current, short circuit, channel mismatch, force and supply return.

NODE 05observable

Fault practice

A target, sensor, supply, common, conductor, input circuit, channel, image or program-meaning mismatch.

NODE 06observable

Transfer to the job

The wiring verified against exact sensor and input specifications, protection design and approved test procedures.

Answer surface / 07

How do I wire a photoeye to a PLC input?

Match supply voltage, output type and input-module circuit first. Trace the current path through sensor output, channel and common using the exact manuals rather than relying only on conductor color.

What is the difference between PNP and NPN sensors?

In common DC use, PNP outputs source current toward the load while NPN outputs sink current from it. The PLC input and common arrangement must be compatible.