SAO-R5N
AI

The **SAO-R5N** refers to a high-precision, industrial-grade **Photoelectric Sensor**, specifically a reflective (retro-reflective) type commonly used in automation and assembly lines.
Below is a detailed breakdown of its electronic components, technical specifications, and internal logic.
---
### 1. Key Technical Specifications
The SAO-R5N is built to interface with Programmable Logic Controllers (PLCs) and digital logic circuits.
| Feature | Specification |
| :--- | :--- |
| **Sensing Type** | Retro-reflective (requires a reflector) |
| **Output Type** | NPN Open Collector |
| **Output Mode** | Light-ON / Dark-ON (Selectable via wire or switch) |
| **Operating Voltage** | 12 - 24V DC |
| **Sensing Distance** | Typically 0.1m to 5m (Reflector dependent) |
| **Response Time** | ≤ 1ms |
| **Light Source** | Infrared (IR) or Red LED |
---
### 2. Internal Electronic Architecture
The sensor functions as a closed-loop optoelectronic system. Its internal circuitry can be divided into four main stages:
#### A. The Emitter Stage
* **LED Driver:** A constant-current circuit that pulses the Light Emitting Diode. Pulsing is used to differentiate the sensor's own light from ambient light (sunlight or room lamps).
* **Optical Lens:** Focuses the beam toward the reflector.
#### B. The Receiver Stage
* **Photodiode/Phototransistor:** Converts the returning light into a small electrical current.
* **Preamplifier & Filter:** This stage amplifies the signal and uses a **Band-pass Filter** to ensure it only reacts to the specific pulse frequency of the emitter.
#### C. Control Logic (The "Brain")
* **Comparator:** Compares the received signal strength against a preset threshold (the sensitivity).
* **Schmitt Trigger:** Prevents "chattering" (rapid ON/OFF switching) by adding hysteresis to the signal.
#### D. The Output Stage (NPN Configuration)
The "N" in R5N stands for **NPN**.
* **Transistor Switch:** When the sensor is triggered, the internal NPN transistor closes the circuit, pulling the output wire to **Ground (0V)**.
* **Protection Circuitry:** Usually includes reverse polarity protection (prevents damage if wires are swapped) and short-circuit protection.
---
### 3. Wiring Configuration
The SAO-R5N typically uses a standard 3-wire or 4-wire color-coding scheme:
1. **Brown:** Positive (+V) - 12-24V DC.
2. **Blue:** Negative (0V) - Ground.
3. **Black:** Control Output - Connects to the PLC input or Load.
4. **White (Optional):** Mode Selection - Connect to +V or 0V to toggle between Light-ON and Dark-ON.
---
### 4. Implementation Example (NPN Logic)
```python
# Conceptual Logic for a PLC reading an SAO-R5N (NPN)
# In NPN logic, a 'Low' signal (0V) usually indicates 'Active'
if sensor_input == LOW:
object_detected = True
stop_conveyor_belt()
else:
object_detected = False
run_conveyor_belt()
```
---
- ⤷
How does NPN wiring differ from PNP wiring in industrial sensors?
- ⤷ What is the difference between retro-reflective and diffuse-reflective sensors?
- ⤷ How do I adjust the sensitivity threshold on an SAO-R5N?