ClassA Motor

Why does my encoder or servo give a position error?: following error and feedback faults

A position error alarm means the commanded and measured positions drifted too far apart. The cause is either the motor could not follow, or the feedback reported the wrong position. How to tell which side is wrong before changing gains.

Updated 2026-11-28

The short answer

A servo position error alarm means the drive found that the difference between commanded and measured position exceeded its limit. Either the motor did not reach the commanded position, because torque saturated, the mechanism bound, or the loop was poorly tuned, or the feedback reported the wrong position, because of encoder noise, a wrong resolution setting, a loose coupling or a slipping mount. Decide which side is wrong before changing gains.

Following error and resolution

Following error is e = commanded position − actual position, usually counted in encoder counts. Example: a 2,500 PPR encoder with 4× quadrature decoding gives 10,000 counts per revolution, so each count is 360 ÷ 10,000 = 0.036°. A position error limit of 1,000 counts equals 36°, or one-tenth of a revolution. If the drive's counts-per-revolution setting is wrong, every position value is scaled wrongly and the alarm appears with normal motion.

Feedback faults

  • Encoder cable routed alongside motor power cable. Use a shielded pair and keep it separate from power.
  • Shield grounded at both ends, or at the wrong end. Follow the drive maker's grounding rule.
  • A and B swapped, which reverses the apparent direction and makes the error grow quickly.
  • Differential signals (A+/A−) wired as single-ended, or an open-collector output on a differential input.
  • Encoder supply below its minimum voltage at the far end of a long cable.

Mechanical and tuning faults

  • Coupling slip, a loose set screw, or a belt that stretches. The encoder sees the motor, not the load.
  • Brake that does not release fully, so the motor fights the load.
  • Torque saturation: the motor is at its peak current and cannot follow a fast move. Reduce acceleration or check the load.
  • Inertia ratio too high. Many drives recommend a load-to-rotor ratio well under 10, and tuning is difficult above that.

How to check it

  • Read the following error during a slow move, then during a fast move. Error that grows only with speed points to tuning or torque limits.
  • Check the counts-per-revolution parameter against the encoder label.
  • Look at the coupling and mount with the motor stationary. Any wobble or slip is a fault.
  • Check the encoder supply voltage at the encoder connector, not at the drive.

How to fix it

Fix the feedback path first: correct the resolution setting, reroute and shield the cable, and tighten the coupling. Then check for torque saturation and reduce the acceleration if needed. Only then change the position loop gain, and make small steps. Raising the error limit hides the problem and can cause collisions.

Common mistakes

  • Raising the position error limit just to stop the alarm.
  • Changing gains before checking the cable, the coupling and the parameters.
  • Assuming an encoder fault when the motor is at torque limit.

Power · Torque · Speed

P (kW) = T (N·m) × n (rpm) / 9550

Solve for:

Sourcing a motor or production equipment from China? We can find and contact the right factories for you in Chinese. Ask on WhatsApp →