How do I calculate positioning resolution from encoder and screw lead: a worked example
Positioning resolution is screw lead divided by counts per screw revolution. Worked examples for servo, reducer and stepper axes.
Updated 2026-11-28
1. The direct answer
Positioning resolution is the smallest linear move the axis can command. Divide the screw lead by the number of counts the controller sees per screw revolution. Counts per screw revolution equals encoder lines × 4 (quadrature decoding) × the gear ratio between motor and screw, or the drive's electronic gear value if it is set in pulses per revolution. Resolution is not accuracy: lead error, backlash and thermal growth set how close the axis really lands.
2. The formulas
- Counts per motor revolution = encoder lines per revolution × 4 (A/B quadrature decoding).
- Counts per screw revolution = counts per motor revolution × i, where i is motor turns per screw turn.
- Resolution (mm per count) = screw lead (mm) ÷ counts per screw revolution.
- Counts per mm = counts per screw revolution ÷ lead. The controller's position unit is the inverse of this.
- Stepper: steps per screw revolution = full steps per motor revolution × microsteps × i. Resolution = lead ÷ that value.
- Rotary axis: degrees per count = 360 ÷ counts per output revolution.
3. Worked examples
Example A: ball screw lead 10 mm, servo encoder 2500 lines per revolution, direct coupled (1:1), drive set to quadrature.
- Counts per motor revolution: 2500 × 4 = 10 000.
- Counts per screw revolution: 10 000 × 1 = 10 000.
- Resolution: 10 mm ÷ 10 000 = 0.001 mm = 1 µm per count.
- Same axis with a 5:1 reducer (5 motor turns per screw turn): 50 000 counts per screw revolution, resolution 0.2 µm.
- Example B: 1.8° stepper (200 full steps), microstepping 16, lead 8 mm, direct. Steps per revolution = 200 × 16 = 3200, so resolution = 8 ÷ 3200 = 0.0025 mm = 2.5 µm per microstep.
- Example C: 17-bit absolute encoder (131 072 counts per revolution), lead 10 mm, direct: 10 ÷ 131 072 = 0.076 µm per count.
4. Resolution, accuracy and speed
In Example A the encoder can place the axis to 1 µm. If the screw has ±10 µm error over 300 mm, the real accuracy is far worse. Resolution sets the smallest step; accuracy sets how close that step lands to the target. Measure both separately with a laser or dial indicator.
- Set a resolution finer than the smallest move the process needs. A common engineering habit is to aim at a fifth to a tenth of that move so rounding does not dominate.
- Check counting speed: counts per second = counts per revolution × rpm ÷ 60. At 10 000 counts per revolution and 3000 rpm this is 500 000 counts per second, which must be within the encoder and drive input frequency rating.
- Many servo drives accept an electronic gear setting, so you can set 10 000 pulses per screw revolution directly and avoid rounding in the controller.
5. Common mistakes
- Using encoder lines instead of counts. Forgetting the ×4 quadrature factor makes the resolution look four times coarser than it is.
- Forgetting the reducer or pulley ratio, or inverting it. The ratio must be motor turns per screw turn; a 5:1 reducer means the motor turns five times.
- Changing the stepper microstep setting without updating the steps per revolution in the controller.
- Treating resolution as accuracy.
6. How to choose and check
- Write down the lead, encoder lines or stepper steps, microstep setting and gear ratio.
- Compute counts per mm, resolution, and the maximum count rate at top speed.
- Compare the resolution with the smallest required move.
- Measure accuracy across the stroke, and use lead-error compensation if the drive supports it.
Stepper resolution & pulse rate
Pulses/rev = 360 / step angle × microsteps; f = v / lead × pulses/rev
Sourcing a motor or production equipment from China? We can find and contact the right factories for you in Chinese. Ask on WhatsApp →