How to Wire Slot Type Photoelectric Sensors: A Step-by-Step Guide for Engineers

Understanding Slot Type Photoelectric Sensor Components

A slot type photoelectric sensor, also known as a through-beam sensor in a housed configuration, consists of a U-shaped body containing both an emitter and a receiver facing each other across a gap or "slot." The fundamental components critical for wiring are the power supply terminals, output terminals, and often a status indicator LED. Typically, these sensors are available in three main output types: DC NPN (sinking), DC PNP (sourcing), and relay contact outputs. The specific wiring procedure is entirely dependent on this output configuration and the supply voltage, which is commonly 12-24V DC. Before beginning any wiring, consulting the manufacturer's datasheet for the specific model is non-negotiable. This document provides the critical pinout diagram, voltage ranges, output current capacity, and connection specifications.

General Safety and Preparation Procedures

Prior to any electrical connection, ensure all power sources are locked out and tagged out (LOTO). Verify the sensor's operating voltage range matches your power supply. Gather the necessary tools: appropriate wire strippers, crimping tools, ferrules for stranded wire, screwdrivers, and a multimeter for verification. Use shielded cables in electrically noisy environments, grounding the shield at the control panel end only. Plan the cable routing to avoid sharp bends, excessive tension, and proximity to high-voltage power lines or motors to prevent electromagnetic interference. Proper preparation mitigates risks of sensor damage, erratic operation, or personal injury.

How to Wire Slot Type Photoelectric Sensors: A Step-by-Step Guide for Engineers-1

Wiring a DC Three-Wire Sensor (NPN or PNP)

The majority of modern slot sensors use a three-wire DC configuration. The terminals are universally color-coded or labeled: Brown wire for positive DC supply (+V), Blue wire for common negative (0V or COM), and Black wire for the output signal. For a PNP (sourcing) output sensor: Connect the Brown wire to the positive terminal of your DC power supply (e.g., +24V). Connect the Blue wire to the negative terminal of the supply (0V). The Black output wire is connected to the load (e.g., a PLC input, relay coil). The other side of the load is then connected to the supply negative (0V). When an object interrupts the slot, the PNP transistor switches, sourcing current from +V through the Black wire to the load.

How to Wire Slot Type Photoelectric Sensors: A Step-by-Step Guide for Engineers-2

Connecting NPN and PNP Outputs to a PLC

For an NPN (sinking) output sensor: Wiring for power remains identical: Brown to +V, Blue to 0V. The critical difference is in the output connection. The Black output wire is connected to the load. However, the other side of the load must be connected to the positive supply (+V). When activated, the NPN transistor sinks current from the load, through the Black wire, to 0V. When interfacing with a Programmable Logic Controller (PLC), match the sensor type to the PLC input card. A PNP sensor is typically used with a sinking PLC input card (where the card provides the path to common), while an NPN sensor is used with a sourcing PLC input card. Mismatching can lead to non-operation.

Wiring for Normally Open (NO) and Normally Closed (NC) Operation

Many slot sensors offer a selectable output logic, often via a built-in switch or by ordering a specific model. In the "Light-ON" or "Dark-ON" mode. "Light-ON" (normally open, NO) behavior means the output is OFF when the beam is blocked (slot is obstructed) and ON when the beam is received (slot is clear). "Dark-ON" (normally closed, NC) is the inverse: output is ON when blocked, OFF when clear. The physical wiring of the Brown, Blue, and Black wires does not change; the logic is internal. This selection is crucial for control system safety and logic. For instance, a safety interlock might require an NC configuration so that a broken wire or sensor failure mimics an obstruction, triggering a safe shutdown.

Integrating Relay Contact Output Sensors

For high-voltage switching or AC applications, sensors with relay contact outputs are used. These typically have five or more terminals: two for the sensor's internal power supply (e.g., L1 and N for AC, or +/- for DC), and at least three for the relay contacts (Common, Normally Open, Normally Closed). First, wire the sensor's power terminals to a suitable source as per the datasheet. Then, wire the load circuit. For NO operation, connect one side of your load (e.g., a motor starter coil) to an external power source. Connect the other side of the load to the relay's Common (C) terminal. Finally, connect the relay's Normally Open (NO) terminal to the other side of the external power source. The relay acts as an isolated switch controlled by the sensor.

Verification and Troubleshooting Steps

After wiring is complete and before applying power to the controlled load, perform a verification. Apply power to the sensor. Observe the indicator LED. Most sensors have a power (green) and output (yellow or red) LED. A steady green LED indicates correct power supply. The output LED behavior should match the selected Light-ON/Dark-ON mode when an object is passed through the slot. Use a multimeter to measure the voltage between the output (Black) and common (Blue) wires. For a PNP sensor in the ON state, you should read near the supply voltage (e.g., 24V). In the OFF state, it should read near 0V. For an NPN, the logic is inverse. Common issues include incorrect supply polarity, overloaded output, miswired load, or insufficient current for the PLC input. Always double-check connections against the pinout diagram.