Signal Input - Title Image

Signal Input

Sequence Control Course Logo

Sequence Control Course

Sequence Control Course Recommended Learning Materials
Sequence Control Course Recommended Learning Materials

This section explains how to input signals from sensors into relays. It covers the difference between through-beam and reflective photoelectric sensors, the meaning of Dark-ON and Light-ON modes, and wiring methods — all explained clearly with illustrations and videos.

Created: 2010
Updated: May 06, 2026

What Is a Photoelectric Sensor?

Before building a control circuit with relays, let's first confirm how to use sensor signals to operate a relay.

We will be using a photoelectric sensor. The sensor emits light, and when that light is interrupted, the sensor responds and outputs a signal. This signal is then used to activate the relay. Photoelectric sensors come in two types: through-beam and reflective.

Through-Beam Sensor

Through-beam sensor external appearance photo Through-beam sensor mechanism illustration

A through-beam sensor is a paired sensor with a light emitter on one side and a light receiver on the other. When an object interrupts the beam between the two units, the receiver can no longer detect the light, and the sensor responds.

Through-beam sensor: beam interruption illustration

By installing sensors in a passage or aisle, the sensor will respond every time a person or object passes through.

Reflective Sensor

Reflective sensor external appearance photo Reflective sensor mechanism illustration

A reflective sensor has the light emitter and receiver integrated in one unit. Light emitted by the sensor hits an object in front of it and reflects back to the sensor, causing it to respond.

Reflective sensor operation illustration

Through-beam vs. Reflective: Through-beam sensors are the standard in industrial applications. Reflective sensors are used where installation space is limited. While reflective sensors can be affected by the color, distance, and material of the target, modern high-performance sensors have improved stability. Always check the application and manufacturer specifications before selecting.

Dark-ON and Light-ON

Sensors have two operating modes: "Dark-ON (D/O)" and "Light-ON (L/O)." Some sensors allow switching between these modes.

  • Dark-ON: The sensor output turns ON when the receiver is no longer receiving light (becomes dark). For a through-beam sensor, this means ON when the beam is blocked; for a reflective sensor, ON when there is no object in front.
  • Light-ON: The sensor output turns ON when the receiver is receiving light (is bright). This is the opposite of Dark-ON.

Note that the ON/OFF conditions are also reversed depending on whether you use a through-beam or reflective sensor, so be careful when selecting and wiring.

Sensor Wiring Method

Now that you understand sensor basics, let's explain the actual wiring method. Color-coded wires extend from the sensor.

Sensor wiring diagram (3 wires: brown, blue, black)
  • Brown: DC+ side (connect to DC 24V+ in industrial applications)
  • Blue: DC− side (connect to DC 24V−)
  • Black: Signal wire (drops to minus when the sensor responds)

Brown and blue are power supply wires, so multiple sensors can share the same power supply (common plus). Connect the black signal wire to the minus side of the relay — when the sensor responds, the relay will operate.

Sensor and relay wiring circuit diagram

※ On older equipment, wire colors may differ. Refer to: Red → Brown (DC+), Black → Blue (DC−), White → Black (signal wire).

Next, let's also confirm the connection for a cylinder sensor. A magnet is built into the piston inside the cylinder. When the cylinder moves, a sensor mounted on the cylinder body responds to the magnet and outputs a signal, allowing detection of the cylinder's extended and retracted positions.

Cylinder sensor connection diagram

If you choose a 2-wire type cylinder sensor, it can be connected simply by inserting it in series between the relay and the power supply, just like a switch. Also, the type explained here is the NPN type. Since most Japanese industrial equipment uses NPN, when you need to choose a type, NPN is the safe choice.

Now that you have mastered sensor basics, let's move on to relay control.


→Next Page: Relay Control

Frequently Asked Questions (FAQ)

What is the difference between a through-beam sensor and a reflective sensor?
A through-beam sensor is a paired set with a separate emitter and receiver. It responds when the beam between them is interrupted. A reflective sensor integrates the emitter and receiver in one unit, and responds by detecting light reflected off an object in front of it. Through-beam sensors are preferred in industrial applications for their stability.
What is the difference between Dark-ON and Light-ON?
Dark-ON means the sensor output turns ON when the receiver stops receiving light (becomes dark). Light-ON is the opposite — the sensor output turns ON when the receiver is receiving light. Note that ON/OFF conditions are also reversed between through-beam and reflective sensors.
What is a cylinder sensor?
It is a sensor that detects the magnet built into the cylinder's piston. When the cylinder extends or retracts, the magnet comes close to the sensor and triggers it, allowing detection of the cylinder's current position (extended or retracted).
What is the difference between NPN and PNP sensors?
NPN sensors output by pulling the signal wire to the minus (negative) side. PNP sensors output by pulling the signal wire to the plus (positive) side. In Japan, NPN type is most commonly used in industrial equipment, so NPN is the standard choice when no specific type is required.
Sequence Control Course Recommended Learning Materials Banner

The "Illustrated Introduction: Understanding the Latest Sequence Control and Circuit Diagrams" is available as a Kindle (eBook) edition. If you prefer the paperback version, please select "Paperback" in the format options, or purchase from the top page.

Sequence Control Course Banner
Copyright (C) 2010 Sequence Control Course, All rights reserved.