Skip to content

Light-ON vs Dark-ON Photoelectric Sensors

Trace the difference between Light-ON and Dark-ON with two actual OMRON E3Z sensors, then check the output wiring and raw PLC input with the part present and absent.

  • Mason Alexander
  • Published Nov 24, 2026
  • 5 min read
OMRON PNP timing charts. Light-ON activates the output during the incident-light window. Dark-ON activates it outside the light window.

You want the PLC's raw input to be 1 when a carton arrives. On an OMRON E3Z-T81 through-beam pair, the carton blocks the light, so set the receiver to Dark-ON. At an OMRON E3Z-D82 diffuse station with a clear background, the carton reflects light back into the sensor, so start with Light-ON. At both stations the controller can see the same part-present bit, even though the receivers see opposite light states. 12

OMRON PNP timing charts. Light-ON activates the output during the incident-light window. Dark-ON activates it outside the light window.
Read the incident-light row first, then follow the orange operation indicator and output transistor. The L and D selections give opposite output states for the same received light.

Decide what a part does to the light

Light-ON energizes the control output when the receiver detects sufficient incident light. Dark-ON energizes it when the receiver sees insufficient light. To choose between them, work out what the receiver sees in two physical states, an empty station and a part in position. The label refers to the sensor's own optical signal. Room lighting, part color and whether the PLC uses a normally open instruction are different questions. 12

Sensor setupWith no partWith a partSelection for output ON when a part is present
Through-beam with an aligned emitter and receiverDirect beam reaches the receiverOpaque part interrupts the beamDark-ON
Retroreflective with an aligned reflectorReflector sends light backOpaque part interrupts the returnDark-ON
Diffuse with a clear backgroundLittle usable light returnsThe target supplies a usable returnLight-ON

For diffuse sensors, first verify the assumed clear background. If a rail alone returns enough light to produce the same state as the part, switching modes inverts both states and the sensor still cannot distinguish them. Check the mounting or the background suppression setup. The photoelectric sensor selection guide shows the light path for each arrangement. 2

Apply the rule to two OMRON E3Z models

The E3Z-T81 2M is a through-beam set. The E3Z-T81-L is the emitter and the E3Z-T81-D is the receiver. The receiver has the operation selector and the switched output. The emitter needs power to complete the beam path. On the E3Z-D82 2M, the emitter and receiver share a housing, so the mode selector and switched output are on the same unit. 1

Physical conditionT81 receiver, Dark-OND82 sensor, Light-ON
Empty conveyorIncident light. Output OFF. Raw PLC input 0.No sufficient return. Output OFF. Raw PLC input 0.
Opaque carton in positionNo sufficient incident light. Output ON. Raw PLC input 1.Sufficient return from the carton. Output ON. Raw PLC input 1.

The raw PLC states assume sound alignment, a suitably reflective carton for the D82, a compatible input and correct wiring. Start by checking the sensor's orange operation indicator in each state. On these E3Z models, the orange indicator follows the output transistor. The green stability indicator is a separate check of whether the optical condition is stable on either side of the switching threshold. Wait for the output to settle when confirming a hand test. 1

Wire the output for the PLC input

Both example models use a PNP control output. With a compatible 24 V DC sinking input, connect the sensor's brown conductor to +24 V, blue to 0 V and black to the assigned PLC input. Connect that input group's return or common as required by the module diagram, to 0 V for this sinking-input example. Use the receiver's black conductor for the T81. Its separate emitter uses the brown and blue power conductors. 1

Two OMRON E3Z I/O diagrams. The PNP receiver or diffuse sensor uses brown supply, blue return and black output. The separate emitter uses brown and blue power only.
OMRON shows a relay as the example load on the upper PNP circuit. Use the receiving PLC’s wiring diagram for the input and its common. The separate E3Z through-beam emitter below needs only power.

When active, the PNP sensor supplies current to the PLC input. The NPN version sinks current and needs the matching input arrangement. Selecting Light-ON or Dark-ON changes when each transistor conducts. It leaves the wiring type determined by the model. Confirm the full order code, supply and input common before checking the bit. See the PNP vs NPN PLC input guide if the module's wiring diagram is unclear. 1

Verify the raw input before changing ladder logic

  1. Put the machine in its approved setup state. With an empty, aligned station, compare the sensor's operation indicator, the PLC channel indicator and the raw input bit online. For the examples above, the orange operation light and raw bit should be off.
  2. Put the carton in its expected position. Check that the operation light switches and the raw bit becomes 1. Remove the carton and check that both return to the empty state.
  3. If the operation light never switches, check the optical path, alignment, sensor mode and target. For a through-beam pair also check that the emitter is powered and aimed correctly. If the light switches and the raw bit does not, follow the sensor-to-PLC input test and check the output wire, input common and channel mapping.
  4. If the raw bit is correct and the application still interprets presence backward, look at the PLC logic that consumes the bit. Correct the tag meaning or the instruction intentionally. Test both states again and at the fastest normal operating speed. For a fault that occurs only at speed, follow the conveyor pulse and input checks.

Distinguish a blocked beam from a power fault

At a Dark-ON through-beam station, the input can mean different things under fault conditions. This example assumes the E3Z-T81 PNP receiver and a working PLC input with the wiring above. The green stability indicator describes the optical condition at the receiver. Check the emitter’s power indicator and supply separately when you suspect a fault. 12

T81 station conditionWhat the powered receiver seesRaw PLC input
Empty conveyor, both units aligned and poweredNormal incident light0
Carton blocks the beamInsufficient light1
Emitter loses power or the beam is knocked out of alignmentInsufficient light while the receiver remains powered1
Receiver loses power, PLC input stays operationalReceiver cannot drive its PNP output0

So a raw 1 alone cannot identify a carton, and a raw 0 alone cannot establish a clear conveyor. Where the machine must distinguish power or alignment faults from carton presence, define a separate diagnostic in the control design. Document the input's normal meaning for maintenance, such as “E3Z-T81 on Dark-ON, input 1 when the beam is blocked.” 12

References

  1. OMRON E3Z compact photoelectric sensor datasheet

    OMRON · CSM_E3Z_DS_E_18_10

  2. Overview of Photoelectric Sensors

    OMRON