Understanding Dark-On Photoelectric Sensors
A dark-on photoelectric sensor, also known as a light-off operate sensor, is a fundamental component in industrial automation. Its operational logic is inverse to the more common light-on type. In a dark-on configuration, the sensor's output switch (typically a transistor or relay) is activated or turned "ON" when the received light signal is interrupted or falls below a preset threshold. This means the load connected to the sensor is energized when the sensor is in a "dark" state. This function is crucial for applications like detecting object presence by breaking a light beam, monitoring for material jams, or ensuring safety curtains are unobstructed. Understanding this basic principle is the first step toward correct wiring and application.
Key Components and Terminal Identification
Before beginning any wiring procedure, it is imperative to correctly identify the sensor's terminals. Most modern photoelectric sensors, whether diffuse, retro-reflective, or through-beam, follow a standard color-coding and labeling scheme for their connecting cables or terminal blocks. A typical three-wire DC sensor will have the following leads: Brown wire for the positive DC supply voltage (often labeled +V or L+), Blue wire for the negative DC supply or common ground (0V or L-), and Black wire for the output signal (often labeled OUT or LOAD). For a dark-on sensor, this black output wire will switch the positive voltage to the load when the light is blocked. Some sensors may also have a white wire for complementary output or control input. Always consult the specific datasheet or manual for the model in use, as colors and functions can vary by manufacturer.

Standard Wiring Diagram for DC Dark-On Sensors
The most common wiring setup involves a 3-wire DC sensor connected to a programmable logic controller (PLC) input or a relay coil. Here is a step-by-step guide. First, connect the sensor's brown wire to the positive terminal of your DC power supply (e.g., +24VDC). Second, connect the sensor's blue wire to the negative terminal (0VDC) of the same power supply. This provides operating power to the sensor's internal circuitry. Third, connect the sensor's black (output) wire to one terminal of your load. The load could be the input terminal of a PLC (like S7-1200 DI), the coil of a relay, or a pilot lamp. Finally, connect the other terminal of your load back to the positive side of the power supply. In this configuration, when the sensor's light path is clear, the output transistor is off, and no current flows to the load. When an object blocks the light, the sensor's internal switch closes, completing the circuit from +24V, through the sensor's black wire, through the load, and back to the power supply, thus energizing the load.
Interfacing with PLC Digital Inputs
Integrating a dark-on sensor with a PLC requires understanding the PLC's input sink/source configuration. For a sinking input PLC (common in some regions), the input card provides the positive voltage, and the sensor must sink the current to ground. A dark-on PNP sensor (which outputs positive voltage when active) is typically used with a sinking PLC input. The wiring would be: Sensor Brown to +24V, Sensor Blue to 0V, Sensor Black (output) to the PLC input terminal. The PLC input's common would be connected to 0V. When dark, the PNP sensor switches +24V to the PLC input, registering a logic HIGH (1). For a sourcing input PLC, an NPN dark-on sensor would be required. Always verify the sensor's output type (PNP or NPN) and the PLC's input specification to ensure compatibility and avoid damage.
Wiring Considerations for AC Sensors and Relay Outputs
While less common today, some photoelectric sensors operate directly on AC voltage (e.g., 120VAC or 240VAC) or feature built-in electromechanical relay outputs. Wiring an AC dark-on sensor follows similar logic but with critical safety precautions. The power terminals (often labeled L1 and L2) connect to the AC line and neutral. The output will be relay contacts (normally open or normally closed). For a dark-on function, you would use the normally open (NO) contact set. When the sensor is powered and in light, the contacts remain open. When dark, the relay energizes, closing the NO contacts to power the load. Ensure proper grounding, use correct wire gauges for the current, and always lock out/tag out power sources before working on AC circuits.
Troubleshooting Common Wiring Issues
Several issues can arise from incorrect dark-on sensor wiring. If the load is always energized, check if the sensor is wired in a light-on configuration by mistake; the load behavior will be inverted. If the load never energizes, verify power to the sensor (brown/blue), ensure the light beam is properly aligned and being interrupted, and check for a blown fuse due to a short circuit. A mismatch between PNP and NPN sensor outputs and the PLC input type is a frequent cause of failure. Use a multimeter to measure the voltage between the sensor's black wire and blue wire. When the sensor is in light, it should read near 0V for a dark-on PNP. When the beam is blocked, it should read close to the supply voltage (e.g., 24V), confirming the dark-on operation.
Application-Specific Best Practices
For reliable operation, adhere to industry best practices. Always use shielded cables in electrically noisy environments and ground the shield at one end only, typically at the control panel. Maintain the sensor's specified sensing distance and keep lenses clean from dust and debris. For long cable runs, consider voltage drop and use a thicker gauge wire. Implement protective circuits, such as flyback diodes for inductive loads (relays, solenoids), to prevent voltage spikes from damaging the sensor's solid-state output. Finally, clearly document the wiring scheme, including the sensor's mode (dark-on), as this is critical for future maintenance and troubleshooting by other technicians.