Explainer
What an External Encoder Position Loop Needs to Close
Short answer
The axis reference an encoder block returns is a measurement, not a loop: an external encoder closes the servo position loop only where the drive or motion controller documents a secondary feedback assignment for the commanded axis. Verify direction, scaling, motion-block compatibility and encoder-loss faulting before you enable, and tune for the reversal transient the backlash now creates inside the loop.

On this page
An external encoder on the output side of a backlash-heavy gearbox can regulate load position directly, but only where the drive or motion controller documents a secondary feedback path for the commanded axis. Until that assignment exists, the reference your encoder block returns is a measurement, not a loop: motion blocks can read it, but no torque follows it. This article sorts out what that reference actually is, where the position loop is allowed to close, what the backlash does once it sits inside the loop, and how to scale and prove the feedback path before you enable it.
An axis reference is a handle, not a feedback path #
The encoder function block did its job: SMC_Encoder counts the load encoder and returns an AXIS_REF, a handle other motion blocks can reference to read or monitor position. What it did not do, and cannot do on its own, is attach that position to the servo axis's control.
Commanding an encoder axis produces no torque. No drive is wired to it, so a move command on that reference changes a number and nothing else. Likewise, passing the encoder's reference into the servo axis's command blocks does nothing unless the motion library documents a feedback relationship between the two axes. No block arrangement implies closed loop; the relationship either exists as a documented configuration or it does not exist.
An external encoder can play three roles:
- A measured axis: position display, monitoring, comparison, logging.
- The feedback source of another axis's position loop, the only role that closes a loop.
- The input to a supervisory correction that re-commands the servo after it settles.
Role two is the one you want, and it is granted by documentation, not by wiring.
Where the loop is allowed to close #
There are exactly two places a load-side position loop can live, and you must find out which one your system offers before touching a block.
The servo drive. Many servo drives accept a second encoder input, described in their manuals as the secondary, load or measuring encoder, and run dual-loop control: the motor encoder closes the fast velocity and commutation loops while the load encoder closes the outer position loop. Robot controllers work this way as standard practice, keeping the motor-side loop and adding a slower loop on the output side, because gear backlash separates motor angle from tool position.
The motion controller. Alternatively the controller computes the position loop on the external encoder and sends velocity commands to a drive that no longer positions on its own, the division of labor covered under what an external motion controller does for servo drives. Either way the structure is the same two-loop scheme, and it is the same architectural question raised by where the position loop closes in a servo conversion: feedback can only see what the loop it sits in can act on.
Your documentation check is therefore narrow: does the drive manual or motion library explicitly describe assigning a non-motor encoder as position feedback for the commanded axis, and which motion blocks accept an axis configured that way? If no such assignment is documented, your case is decided in the last section: measurement only.
Backlash moves from the error into the loop #
Closing on the load encoder removes lost motion from the settled position: the loop keeps correcting until the output itself reaches the target, whichever direction the approach came from. It does not remove the mechanics, and the dead band now sits inside the loop, where it behaves badly.
- Inside the band the motor turns while the output stands still, so the loop gain is effectively zero and the integrator winds on a frozen error.
- On exit the wound-up integrator drives overshoot; with enough outer gain the axis limit-cycles across the band instead of settling.
- A repeatable band can be fed forward as a direction-dependent offset, but only one identified on your own machine by approaching the same target from both sides; a compensation constant copied from another axis will be wrong.
The design answers are anti-windup that holds the integrator while the output is not responding, a modest outer position gain, and a measured band before any tuning: hold the output, rock the input and read the motor encoder between the two contact points, the same discipline as a measure, adjust and verify machine-tool backlash procedure. A band you have not measured is a number you cannot tune around.
A worked scaling example #
This is a calculated example, not a measurement. Say the servo carries a motor encoder of 262144 counts per revolution, drives the load through a 10:1 reduction, and the lost motion measured at the load shaft is 0.25°. The load encoder, mounted through a zero-backlash fine-pitch pair, makes 8192 counts per load revolution, and the move is a 90° point-to-point.
Scaling the load encoder:
- Resolution: 360° / 8192 = 0.044° per count.
- Target: 90° / 360° × 8192 = 2048 counts.
- The dead band at the load: 0.25° / 0.044°, about 5.7 counts.
- The same band at the motor: 0.25° × 10 = 2.5°, and 2.5° × 262144 / 360°, about 1820 motor counts.
Direction check: command a small +1.0° move at the load. The motor should turn +10° and the load encoder should count up by about 23 counts (1.0° / 0.044°). If the count goes down, invert the sign in the encoder scaling; the documented direction setting is where this is fixed, not a swapped wire.
Reversal arithmetic: with an outer position gain of 5 1/s, an error equal to the dead band commands 5 × 0.25° = 1.25°/s at the load, which is 12.5°/s at the motor. Crossing the 2.5° band then takes 2.5 / 12.5 = 0.2 s, during which the output does not move at all, so the anti-windup has to hold the integrator for at least that long.
The payoff, still a calculation for these inputs: with motor feedback alone, approaches from opposite directions can settle up to the full band apart, 0.25° or 5.7 counts. With the load encoder closing the loop, both approaches converge to 2048 counts ±1, that is ±0.044°, about six times tighter, provided the loop crosses the band without a limit cycle.
Checks before you enable the loop #
Run these in order; each one has stopped a real commissioning.
- Polarity and scaling, from the direction test above. If the outer loop's sign is wrong, correction becomes positive feedback and the axis runs to a limit on its first correction.
- Motion-block compatibility: confirm the blocks that command the axis accept it configured with external feedback. Some libraries restrict which commands run on such an axis, and finding out at runtime is expensive.
- Rollover and homing: an incremental load encoder needs a homing sequence and documented handling of its count wrap inside the feedback assignment.
- Encoder loss: a disconnected load encoder freezes the position the loop sees, the error never changes, and the integrator ramps the motor toward whatever lies ahead. The configuration must raise a fault and stop the axis on loss; prove it by pulling the connector during commissioning, at reduced torque. An axis already tripping on feedback faults is telling you the same path is fragile, and a servo external scale error alarm is diagnosed from that path outward.
- Commissioning limits: first moves at limited torque and speed behind the machine's safeguards, because ISO 12100 requires the risk assessment to identify the hazards of a changed control structure and reduce them before anyone is exposed to the axis.
The decision for each case #
The drive documents a secondary or measuring encoder input. Close the position loop in the drive on the load encoder; the motor encoder keeps commutation and velocity. Tune the outer gain low with anti-windup, enable the encoder-loss fault, and accept the reversal crossing on every direction change, 0.2 s in the example, as the price of a settled error at encoder resolution.
The motion controller documents an external measuring encoder for the commanded axis. Close the loop there and leave the drive as a velocity servo. The five checks above apply unchanged, and stability now depends on the controller cycle time as well as the mechanics.
Neither documents the assignment. The encoder is measurement, full stop. Two honest paths remain: supervisory correction, where the axis settles on motor feedback, you read the error between target and measured load position and re-command the trimmed target a bounded number of times, or a mechanical fix with preloaded or split gearing, finer-pitch teeth, or a belt stage that carries the backlash outside the measured span. What you must not do is wire the encoder reference into the servo's command blocks and call the result closed loop: no torque follows that reference, and the servo never sees the output.
Questions asked
Which documentation terms show that a controller supports load-side feedback?
Look for an assignment described as secondary feedback, dual feedback, measuring encoder or load encoder for the commanded axis, together with the list of motion blocks that accept an axis configured that way. An encoder function block that only returns an axis reference proves measurement, not feedback; the documented assignment is what closes the loop.
Will closing the loop on the load encoder remove the mechanical backlash?
No. The lost motion stays in the gearbox; the loop absorbs it in the settled position and shows it instead as a reversal transient and a possible limit cycle. If the measured band is too wide to tune around, the fixes are mechanical: preloaded or split gearing, finer-pitch teeth, or a belt reduction placed outside the measured span.
How fine must the load encoder be?
Match its step to the tolerance you promise, because the step becomes the settling quantum: choose counts per revolution so one step is a tenth or less of the allowed error. The example encoder's 0.044° step suits a tolerance near half a degree, and its several counts across the dead band are enough for the loop to see the reversal cleanly.
Can I correct backlash from the PLC without closing a loop?
Yes, as a slower supervisory scheme for point-to-point moves: let the axis settle on motor feedback, read the error between target and measured load position, then re-command the trimmed target and repeat a bounded number of times. It removes backlash from the final position only after standstill, so it does nothing during contouring or on moves that must settle quickly.


