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

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 setup | With no part | With a part | Selection for output ON when a part is present |
|---|---|---|---|
| Through-beam with an aligned emitter and receiver | Direct beam reaches the receiver | Opaque part interrupts the beam | Dark-ON |
| Retroreflective with an aligned reflector | Reflector sends light back | Opaque part interrupts the return | Dark-ON |
| Diffuse with a clear background | Little usable light returns | The target supplies a usable return | Light-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 condition | T81 receiver, Dark-ON | D82 sensor, Light-ON |
|---|---|---|
| Empty conveyor | Incident light. Output OFF. Raw PLC input 0. | No sufficient return. Output OFF. Raw PLC input 0. |
| Opaque carton in position | No 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

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
- 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.
- 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.
- 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.
- 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 condition | What the powered receiver sees | Raw PLC input |
|---|---|---|
| Empty conveyor, both units aligned and powered | Normal incident light | 0 |
| Carton blocks the beam | Insufficient light | 1 |
| Emitter loses power or the beam is knocked out of alignment | Insufficient light while the receiver remains powered | 1 |
| Receiver loses power, PLC input stays operational | Receiver cannot drive its PNP output | 0 |
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
- OMRON E3Z compact photoelectric sensor datasheet
OMRON · CSM_E3Z_DS_E_18_10
- Overview of Photoelectric Sensors
OMRON
