Optical Encoder

Optical encoders, built around diffraction gratings and photoelectric detection, convert rotary or linear motion into electrical signals. They are the mainstream position-feedback devices in CNC machine tools, semiconductor platforms, precision metrology, robotics, and high-end automation. Thanks to high resolution, low sub-division error (SDE), and excellent repeatability, optical encoders are widely used for nano- to micrometer-level positioning.


What Is an Optical Encoder

An optical encoder is a sensor that acquires position information via a light source → optical grating → photoelectric detection chain. Its core comprises a periodically structured scale/disk and a readhead: within a specified optical gap, the readhead detects the fringes or interference formed by transmission/reflection of the grating. After processing by an analog front end (AFE) and interpolation/decoding circuitry, it outputs incremental A/B (optionally with Z reference), sine/cosine 1 Vpp, or absolute position serial data (SSI/BiSS/EnDat, etc.).
By motion type, encoders are classified as rotary optical encoders (disks) and linear optical encoders (scales). Compared with indirect estimation through ball screws or racks, linear encoders enable direct measurement, significantly suppressing positioning errors from backlash, lead error, and thermal expansion; rotary encoders provide high-resolution angle and speed feedback to motors and rotary stages.


Working Principle

1) Imaging / Moiré

2) Interferential / Phase Grating

3) Transmission vs Reflection

4) Incremental vs Absolute Output Logic

Approximate linear resolution: Δx ≈ p / (N × M)
where p = grating pitch, N = analog interpolation factor (e.g., 100×), M = digital multiplication factor (typically 4×).

Equivalent angular resolution (rotary): θ_res = 360° / (lines × 4)


Taxonomy


Key Components & Signal Chain


Outputs & Interfaces

Output mode Typical signal Notes
Incremental square wave A/B (+Z), TTL/HTL/RS422 PLC high-speed counting; speed/position loops; prefer differential for long runs
Sine/cosine 1 Vpp, 11 µApp Ultra-high-resolution interpolation; SDE and jitter depend on chain quality
Absolute serial SSI, BiSS-C, EnDat 2.2 Single/multi-turn absolute, diagnostics/temperature/alarm registers
Fieldbus EtherCAT, PROFINET, CANopen Multi-axis sync, distributed clocks, online configuration

Bandwidth estimate (linear): f_max ≈ (v / p) × edges
where v = linear speed; edges = valid edges per period (e.g., 4× multiplication).


Key Specifications

Specification Typical range / notes
Resolution Linear: 1 µm → 1 nm; Rotary: ≤ 24-bit equivalent
Linear accuracy High-end optics: ±1–±3 µm/m; Standard: ±3–±10 µm/m
Repeatability Linear: ≤ ±0.1–±0.3 µm; Rotary: sub-arcsecond achievable
SDE (Sub-Division Error) High-quality 1 Vpp chains: ±20–±80 nm
Jitter Tens of nanometers; dominated by AFE and clock phase noise
Phase/duty error A/B 90° ±(1–5)°; duty 50% ±(2–10)%
Speed capability Linear > 1 m/s; Rotary up to > 12,000 RPM (interface-dependent)
Environmental rating IP40 (open) to IP67 (sealed); IEC 60068-2 vibration/shock

Installation & Error Sources


Calibration & Compensation


Comparisons

Technology Resolution/accuracy Contamination/environment Typical range Main drawbacks
Optical encoders ★★★★★ ★★★ Medium/long Sensitive to contamination/condensation; tight installation tolerances
Magnetic encoders ★★☆ ★★★★ Long Weaker linearity and SDE performance
Inductive/capacitive ★★★ ★★★★ Medium Susceptible to nearby metal/eddy currents or moisture
Resolver/potentiometer ★★ ★★★★★/★ Medium/short Lower resolution or less intuitive interface

Applications

CNC (linear and rotary axes), CMM and metrology platforms, semiconductor alignment/exposure/inspection, precision motion stages, robot joints and gearbox backlash monitoring, medical imaging/radiotherapy, print & packaging synchronization, SMT/inspection, and high-speed handling.


Maintenance & Troubleshooting


Selection Guide

  1. Target accuracy/repeatability (µm/m or arcsec) and dynamic speed
  2. Operating principle (transmission/reflection; imaging/interferential) and pitch p
  3. Output interface (A/B/Z, 1 Vpp, SSI/BiSS/EnDat, fieldbus) vs controller bandwidth
  4. Enclosure & environment (open/sealed; IP rating; coolant/dust)
  5. Mechanical & thermal design (gap/attitude tolerances; CTE; floating mounts)
  6. Compensation & diagnostics (error mapping; temperature/status registers; online alarms)
  7. Lifecycle (serviceability of cables/readheads; spare availability; calibration capability)

Standards & References


Summary: Mastering the principles, specifications, interfaces, and installation/compensation of optical encoders enables high-accuracy, robust, and diagnosable long-term operation under demanding conditions.