Rotary encoder frequency and resolution
An incremental rotary encoder outputs PPR (pulses per revolution) on channels A and B shifted by 90°. At shaft speed RPM:
- f_pulse = PPR · RPM / 60 Hz
- f_quad = f_pulse · Q (Q = 1, 2 or 4)
- Δθ = 360° / (PPR · Q)
Worked example
For a 2500 PPR encoder running at 1500 RPM with 4× quadrature decoding on a 50 mm wheel:
- Channel A frequency = 2500 × 1500 / 60 = 62.50 kHz
- 4× decoded count rate = 250.00 kHz (10 000 counts/rev)
- Angular resolution = 0.0360° (2.16 arcmin) per count
- Linear surface speed = π × 0.05 m × 25 rev/s = 3.927 m/s (15.71 µm/count)
Frequently asked questions
What is the difference between PPR and CPR?
PPR (pulses per revolution) counts full cycles on a single channel (A). CPR (counts per revolution) after 4× quadrature decoding equals 4 × PPR because both rising and falling edges of A and B are counted.
When should I switch from open-collector/HTL to RS-422 differential?
Above ~50 kHz or cable runs longer than 10–15 m near VFD motor drives, use an RS-422 differential line driver with 120 Ω receiver termination — see the RS-422 encoder circuit.
How fast does my PLC high-speed counter need to be?
Size the PLC HSC or MCU timer bandwidth to at least 2× the 4× decoded quadrature frequency so edge jitter and duty-cycle asymmetry never drop counts.