Position Detection with Photoelectric Sensors: Selection and Setup Guide

Photoelectric sensors are widely used to confirm whether a part has reached a position, detect an edge or registration mark, count objects, and trigger the next step in an automated process. They provide non-contact detection, but a switching photoelectric sensor is not automatically a precision position-measurement device. The required tolerance, target, mounting, and control timing determine whether it is suitable.

1. Position detection versus position measurement


A switching sensor changes its discrete output when the received-light condition crosses a threshold. It is useful for questions such as:


• Has the workpiece reached the stop?
• Is a carton present at the transfer point?
• Has the web edge moved past the set line?
• Is the label or registration mark in the expected window?
• Is a robot gripper holding a part?


A distance or displacement sensor provides a measured value rather than only ON/OFF status. Applications that require an actual position in millimetres, tight repeatability, closed-loop motion control, or profile measurement may need a dedicated distance, displacement, vision, encoder, or other measurement system.


Do not convert a switching point into a claimed micron-level position without verified model data and a complete uncertainty analysis.


2. Common optical arrangements for position confirmation


Through-beam


A separate emitter and receiver define a beam across the detection path. This is useful when an opaque object should interrupt a known line. It can provide strong signal margin, but both sides require mounting and alignment.


Retro-reflective


One sensor faces a reflector. It is useful for one-sided wiring when the object interrupts the return path. Reflector selection, shiny targets, contamination, and alignment must be considered.


Diffuse or background-suppression


The sensor receives light from the target. It supports one-sided installation and can confirm presence near a set position. Target colour, angle, surface, and background affect the result. A background-suppression model can help when the background is close.


Fork, slot, contrast, or mark sensors


Purpose-designed housings and optics can simplify edge, label, web, and small-part detection. Select from the actual gap, mark contrast, material, speed, and required switching stability.


3. What determines positioning repeatability?


The final machine repeatability is influenced by more than the sensor specification:


• beam or spot size and orientation;
• target edge shape, surface, colour, and angle;
• mounting rigidity and vibration;
• switching hysteresis and sensitivity setting;
• response time, timer, and filtering;
• target speed and direction;
• PLC input delay, scan time, program logic, and actuator delay;
• temperature and mechanical expansion;
• lens contamination and ambient light.


A fast response time is not the same as accurate position. Calculate the travel distance during total system delay and include variation across repeated cycles.


4. Application examples


Conveyor arrival detection


Mount the sensor so the target creates a stable optical change before the control action is required. Check the fastest conveyor speed, smallest gap, and PLC input filter. Use the signal to trigger sorting, stopping, counting, or tracking logic only after the complete timing chain is validated.


End-of-travel confirmation


A photoelectric sensor can confirm that a mechanism or workpiece has entered a defined zone without physical contact. It should not be used as the only limit for hazardous motion or personnel protection unless the device and control architecture are designed and certified for that safety function.


Web-edge or label detection


A fork, slot, contrast, or specialized edge sensor may be more suitable than a general diffuse sensor. Test the actual paper, film, label, print contrast, transparency, tension, flutter, and speed.


Robot part presence


Choose the optical path to tolerate the expected part-position variation. Confirm that the bracket, cable, and lens are protected from impact, weld spatter, oil, and moving equipment. The robot program must handle missing, double, or ambiguous signals safely.


5. Selection checklist


Define:


• required detection zone and allowable position variation;
• target size, colour, surface, transparency, and edge geometry;
• minimum and maximum distance;
• target speed and required detection time;
• background and nearby reflective objects;
• temperature, dust, water, oil, chemicals, vibration, and ambient light;
• PNP/NPN or other output, supply voltage, and PLC input circuit;
• cable or connector, bracket, adjustment access, and maintenance space;
• whether discrete presence detection or measured position is required.


Then compare the exact model datasheets for sensing range, repeatability where specified, hysteresis, response time, switching frequency, spot size, environmental rating, output limits, and adjustment method.


6. Commissioning procedure


Step 1: Install a rigid bracket and set the optical path with the machine stationary.


Step 2: Test the most difficult target variations at the minimum and maximum expected position.


Step 3: Check the sensor’s stability or signal indicator and retain operating margin.


Step 4: Run repeated cycles at minimum, nominal, and maximum production speed.


Step 5: Verify the PLC input and downstream actuator timing, not only the sensor LED.


Step 6: Introduce expected background, vibration, light, and contamination conditions.


Step 7: Record the model, mounting dimensions, wiring, settings, and acceptable signal window.


7. Troubleshooting unstable position signals


If the switching point moves or chatters, check bracket movement, target variation, lens contamination, nearby reflections, background distance, cable noise, supply voltage, sensitivity, hysteresis, and controller input filtering. Change only one factor at a time and record the result.


If the application requires a tighter tolerance than the switching sensor can demonstrate, change the sensing method rather than masking the variation with software delay.


Product catalogue: https://www.sense-the-world.com/product
Request model selection and quotation support: https://www.sense-the-world.com/service