Introduction to Self-Reflective Photoelectric Sensors
Self-reflective photoelectric sensors, also known as retro-reflective sensors, are a cornerstone of industrial automation. They operate by emitting a light beam, typically from an LED, towards a specialized reflector. This reflector is designed to return the light beam directly back to the receiver element within the same sensor housing. The core principle is detection based on the presence or absence of this returned beam. When an object interrupts the path between the sensor and the reflector, the beam is broken, and the sensor's output state changes. This makes them ideal for applications requiring longer sensing ranges than diffuse sensors but where mounting a separate emitter and receiver (as with through-beam sensors) is impractical. Understanding their wiring is fundamental to ensuring reliable operation in diverse industrial environments.
Core Components and Terminal Identification

Before examining wiring diagrams, it's crucial to identify the standard terminals on a DC-powered self-reflective sensor. Most contemporary sensors feature a quick-disconnect connector or a cable with color-coded wires. The most common configuration for a 3-wire DC sensor includes: a Brown wire for the positive supply voltage (typically +12V to +24V DC), a Blue wire for the common negative or 0V, and a Black wire for the switched output signal. Some sensors may have a White wire for a second complementary output or function setting. The sensor housing is always clearly marked with labels such as V+, V-, 0V, OUT, or with standard symbols. Always consult the specific datasheet for the model in use, as wire colors and functions can vary by manufacturer.
Standard 3-Wire DC Sourcing (PNP) Wiring Diagram
A 3-wire DC sourcing sensor, often called a PNP type, is one of the most prevalent configurations. In this setup, the output switch is connected between the positive supply and the output terminal. Here is the step-by-step connection procedure. Connect the Brown wire to the positive terminal of your DC power supply (e.g., +24V). Connect the Blue wire to the negative terminal or common ground (0V) of the same power supply. The Black output wire is connected to your load, which could be a PLC input, a relay coil, or an indicator lamp. The other side of this load must then be connected back to the power supply's common ground (0V). When the sensor detects an object, it internally connects the Black wire to the positive supply, sourcing current to the load, thus switching it ON.
Standard 3-Wire DC Sinking (NPN) Wiring Diagram
The complementary configuration to the PNP is the 3-wire DC sinking sensor, or NPN type. Here, the output switch is connected between the output terminal and the negative supply. The wiring differs at the output stage. Connect the Brown wire to the positive DC supply (+V) and the Blue wire to the negative supply (0V), as with the PNP type. The Black output wire is connected to one side of your load. However, the other side of the load must now be connected to the positive supply voltage (+V). When activated, the NPN sensor internally connects the Black output wire to the negative supply (0V), sinking current from the load to ground, thereby switching it ON. Choosing between PNP and NPN often depends on the input circuit of the controlling device, such as a PLC.
Wiring for 2-Wire AC/DC Sensors
Two-wire sensors are simpler in construction but require careful consideration of the load. They connect in series with the power supply and the load, functioning similarly to a switch. One wire connects to one side of the AC or DC power source, and the other wire connects to one side of the load. The remaining load terminal connects back to the other side of the power source, completing the series circuit. A critical parameter is the leakage current, a small current that flows even when the sensor is in the OFF state. This current must be lower than the minimum holding current of the load (like a relay) to prevent unintended activation. Always verify compatibility between the sensor's specifications and the load's requirements.
Connecting to a Programmable Logic Controller (PLC)
Integrating a self-reflective sensor with a PLC is a common task. For a DC input module, first determine if the PLC input is designed for sourcing (PNP) or sinking (NPN) currents. Match your sensor type accordingly. For a PNP sensor, wire the Black output to the PLC input terminal. The common terminal of that PLC input group is then connected to 0V. For an NPN sensor, wire the Black output to the PLC input, and connect the PLC input common to +24V. Always ensure the sensor's power supply (Brown and Blue wires) is from the same or a compatible power source as the PLC, with shared common ground (0V) references to avoid potential differences that can cause malfunction or damage.
Shielded Cable and Noise Immunity Practices
In electrically noisy industrial environments, proper shielding is non-negotiable for signal integrity. Many sensor cables include a bare or foil shield drain wire. This shield should be connected to a stable earth ground (protective earth/PE) at one end only, typically at the control panel side. Avoid connecting both ends to ground to prevent ground loop currents. Run sensor cables separately from high-voltage power lines, motor drives, or welding equipment. If crossing is unavoidable, do so at a right angle. Using conduit can provide additional physical and noise protection. For very long cable runs or extreme environments, consider using signal conditioners or isolators to boost integrity.
Alignment, Testing, and Troubleshooting Tips
Correct wiring must be paired with precise alignment. Use the sensor's alignment indicator (often an LED) to ensure a strong, stable beam is being received from the reflector. Avoid mounting sensors where vibration, dirt accumulation, or ambient light interference (like from welding) can occur. For troubleshooting, a systematic approach is key. First, verify power at the sensor terminals with a multimeter. Second, check the alignment and cleanliness of the lens and reflector. Third, monitor the output state with a meter or PLC software while interrupting the beam. If the output does not change, but power and alignment are good, the sensor or load may be faulty. Always isolate power before making any wiring changes.