Understanding the Square Photoelectric Sensor
Square photoelectric sensors are widely used in industrial automation for object detection, positioning, and counting. Unlike cylindrical sensors, their rectangular housing provides stable mounting and precise alignment. Before adjustment, ensure the sensor is correctly wired and powered (typically 10-30V DC). Verify the output type: NPN (sinking) or PNP (sourcing). A multimeter or oscilloscope is recommended for real-time signal monitoring during calibration.

Step 1: Set the Sensing Distance
Most square photoelectric sensors feature a potentiometer or a digital interface for distance adjustment. Turn the potentiometer clockwise to increase the sensing range or counterclockwise to decrease it. For diffuse reflective sensors, the distance is affected by object color and surface reflectivity. Place a standard target (e.g., a white matte card) at the desired distance and adjust until the output LED switches clearly. Use a screwdriver with a non-metallic tip to avoid short circuits.
Step 2: Adjust the Sensitivity for Background Suppression
In environments with reflective backgrounds (e.g., metal conveyors), background suppression is critical. For square sensors with a teach-in function, press the "Set" button while the target is in the detection zone. The sensor will lock onto the foreground and ignore background objects. For manual adjustment, gradually reduce sensitivity until the sensor ignores the background but still detects the target. Test with moving objects to ensure no false triggers.
Step 3: Align the Optical Axis (for Through-Beam and Retro-Reflective Types)
For through-beam sensors, ensure the emitter and receiver are perfectly aligned. Use a laser alignment tool or a sighting aid if available. Loosen the mounting brackets, adjust the sensor head horizontally and vertically, and tighten when the receiver's indicator light is steady. For retro-reflective sensors, position the reflector directly opposite the sensor. Avoid glossy surfaces that may cause stray reflections; use a polarizing filter if needed.
Step 4: Configure Output Timing (ON/OFF Delay)
Many square sensors allow adjustment of output delay. This prevents false signals from fast-moving or vibrating objects. Locate the delay potentiometer or DIP switches. Set ON-delay to 10-50ms for conveyor systems to ignore momentary shadows. OFF-delay is useful for counting applications, ensuring the output holds for a minimum duration. Test with actual production cycles to minimize jitter.
Step 5: Test Under Real Operating Conditions
After adjustments, run a full cycle test. Check for hysteresis (the difference between detection and release points). Use a data logger to capture output transitions. If the sensor triggers inconsistently, reduce sensitivity or adjust mounting position. For harsh environments (dust, moisture), ensure the sensor's IP rating (e.g., IP67) is maintained. Document the final settings (distance, sensitivity, delay) for future maintenance.
Troubleshooting Common Issues
- No output: Check power supply and wiring polarity. Reset the sensor by cycling power.
- False triggering: Reduce sensitivity or add a shield to block ambient light.
- Short sensing range (diffuse type): Clean the lens with a soft cloth. For dark objects, use a high-gain model.
- Intermittent detection (through-beam): Realign the optical path and tighten connections.