AutomateDirectUSAMotion LibraryShop the parts catalog

Troubleshooting

Diagnosing Servo Axis Position Drift in the Drivetrain

Servo and stepper motion Published 9 min read

Short answer

The drift is lost motion between the motor encoder and the load: the position loop closes at the motor shaft, so the gearbox, coupling, pulleys and belt sit outside it. Split motor-reported position from an independently measured load position at one reference with witness marks on every hub. A one-direction offset that grows for hours while the motor reads on target is index loss — slip or jumped teeth — until the marks prove otherwise.

On this page
  1. Why the drive stays green while the load drifts
  2. Symptom-to-cause checklist
  3. The isolation test: one reference position and witness marks
  4. Reading the results
  5. Worked example: 2 mm of drift on a 40 kg belt axis at 700 mm/s²
  6. Building the transmission error budget
  7. When a second encoder earns its place
  8. Questions asked

About 2 mm of drift over three to four hours, with the drive reporting the axis on target and no following error, is lost motion between the motor shaft and the load. The position loop closes at the motor encoder: gearbox, coupling, pulleys and belt all sit outside it, so the controller can hold the motor exactly where it should be while the load walks away. The deciding number is the difference between motor-reported position and an independently measured load position, taken at one reference position with witness marks across every shaft-to-hub interface. On a motor–gearbox–coupling–belt transmission, a one-direction offset that grows hour after hour is index loss — slip at a hub or jumped belt teeth — until the marks prove otherwise.

Why the drive stays green while the load drifts #

The controller compares its commanded position with motor-encoder feedback and torques the motor until the two agree. Everything after the motor shaft is outside that comparison. A position reading that sits perfectly still while the physical load shifts a few millimetres is therefore the feedback telling the truth about the motor shaft; the loss is after it.

Lost motion comes in three signatures, and they do not mix:

  • Backlash — clearance in a gear mesh, a coupling or between pulley and belt teeth — shows as a direction-dependent band: approach a point from one side and the load lands in one place, approach from the other and it lands elsewhere. Gearbox makers specify it at the output shaft in degrees or arc-minutes; in a belt drive it comes from tooth clearance and shrinks with correct tension and reduced-clearance pulleys.
  • Compliance — belt stretch, coupling windup — shows as a force-dependent offset that grows with transmitted force and returns when the force drops.
  • Index loss — a hub slipping on its shaft, or the belt jumping teeth — moves the entire band irreversibly in one direction.

Backlash and compliance bound the error; they cannot accumulate it. A monotonic drift on an axis that reverses continuously is index loss or a command-side shift until a measurement says otherwise.

Symptom-to-cause checklist #

Work down this list cheapest check first; each line ends with the confirmation that rules it in or out.

  • Drive on target, load off target. Lost motion downstream of the motor encoder. Confirm by comparing motor-reported position with an independent load measurement at one reference, with witness marks across each interface.
  • Offset changes with approach direction. Gearbox backlash, coupling windup or belt elasticity — cheapest to check because it needs no teardown. Approach the same point from both directions under the same load; the difference is the combined band.
  • Offset grows in discrete steps. Belt jumping teeth, or a pulley or coupling slipping. Trend the load position and inspect the marks after each step.
  • Offset grows smoothly as the machine warms. Thermal growth, or belt stiffness and preload changing with temperature. Log load-position error against gearbox and ambient temperature over a cold-to-hot cycle.
  • Following error non-zero at standstill. Control-loop bias, steady load torque or missing integral action — common on vertical axes. Trend commanded position, motor actual and following error together; add integral action only after the mechanical path is clear.
  • Positioning-complete window coarser than the drift. A wide in-position or lag-error window reports "done" while the axis is off. Read the window settings and compare them with the 0.01 mm resolution the axis is configured for.
  • Motor and load both off together. Command, scaling, reference or homing problem. Check absolute targets, the rotary-to-linear transformation and reference status, and scribe the motor shaft itself.
  • Feedback or communication faults in the diagnostic buffer. Encoder, cable or connector path. Read the buffer and inspect the wiring; a checksum-checked absolute encoder link that logs no faults is a weak candidate for a silent 2 mm offset, but an encoder hub loose on the motor shaft is not — witness that hub too.

The isolation test: one reference position and witness marks #

Make every mark with the axis de-energized under your plant's lockout procedure, and run the logged cycles only with guards in place, as the machine's risk assessment requires.

  1. Command the axis to a repeatable reference position, always approaching from the same direction. Record commanded position, motor actual position and following error from the drive, and measure the physical load position against a fixed datum with a dial indicator.
  2. Scribe continuous witness lines across every boundary the torque crosses: motor shaft to gearbox input, gearbox output to coupling, coupling to driven shaft, shaft to pulley, and the encoder hub if it is accessible. Mark both pulleys vertically with a square and photograph everything.
  3. Mark the belt-to-pulley tooth phase at both pulleys — a line from a pulley tooth across the belt flank. A jumped tooth shifts that phase by one tooth pitch even when every shaft mark still aligns.
  4. Record belt tension, reference status, and gearbox, drive and ambient temperatures, using the same instruments at the same points every time.
  5. Run the production duty cycle and log commanded position, motor actual, following error and load position at intervals short enough to show whether the change is gradual or stepwise.
  6. Return through the same approach direction at each checkpoint and photograph the marks before anything else moves.
  7. Repeat one full checkpoint from the opposite direction. The repeatable difference between the two approaches is the backlash-plus-windup band; any error beyond that band is real lost motion.

Reading the results #

  • Motor shaft at its mark, hub marks aligned, belt phase aligned, load off the datum: the loss is inside the belt span or at an interface you have not marked. Re-check tooth wear and tension first, then every keyless bushing and clamp.
  • One hub's marks separated: that joint slipped. Re-seat it, repair the fit and torque its fastener to the value in that component's documentation.
  • Belt phase shifted by a tooth pitch: the belt jumped. Tension to the belt supplier's specification and inspect the pulley teeth for wear.
  • Motor shaft itself off its mark while the drive still reports on target: the command or reference path moved the target, or the encoder hub slipped and the drive chased a false reading. Check the command stream — including integer-increment execution, where a controller that sends real-valued increments without carrying the remainder drops up to one increment per move in a consistent direction — the transformation convention, and the encoder hub marks.
  • A direction difference of a few hundredths of a millimetre: backlash band. Budget it, do not chase it as drift.

Worked example: 2 mm of drift on a 40 kg belt axis at 700 mm/s² #

Inputs, each with its source:

  • Load mass 40 kg, translating (machine data).
  • Acceleration 700 mm/s² (0.7 m/s²), deceleration 500 mm/s² (0.5 m/s²), continuous reversals at 700 mm/s (motion profile).
  • Gearbox ratio 8:1, rotary-to-linear transformation 207.65 mm, measurement resolution 0.01 mm (axis configuration; confirm whether 207.65 mm is travel per motor revolution or per gearbox-output revolution before using either).
  • Motor encoder 19-bit single-turn: 2^19 = 524,288 counts per revolution (motor datasheet).
  • Observed load drift of 2 mm over 3–4 hours (independent load-side measurement).

The rules in words: inertial force equals mass times acceleration; the motor-side angle of a load drift equals the drift divided by the travel per revolution; a belt stretches by force times length divided by modulus times area.

The arithmetic:

  • Acceleration force: 40 kg × 0.7 m/s² = 28 N. Deceleration force: 40 kg × 0.5 m/s² = 20 N. On a vertical axis, gravity adds 40 kg × 9.81 m/s² = 392.4 N before either.
  • 2 mm ÷ 0.01 mm = 200 resolution increments.
  • 2 mm ÷ 207.65 mm per revolution = 0.00963 rev; × 360° = 3.47° at the shaft the transformation refers to, or 8 × 3.47° = 27.7° at the motor if the figure is per output revolution.
  • 0.00963 rev × 524,288 counts per revolution ≈ 5,050 encoder counts of motor rotation.

The result: the transmission force alternates between 28 N and 20 N with every reversal, so elastic stretch swings with it and returns — it cannot ratchet 2 mm in one direction. That 2 mm equals between 3.5° and 28° of motor rotation, thousands of counts, which the drive cannot miss on the motor shaft.

The decision, with its threshold: if the motor-shaft witness mark has moved by more than a scribe can hide — and 3.5° is clearly visible on a shaft end — the fault is command-side or in the encoder hub, not in the transmission. If the motor mark holds while the load datum reads 2 mm off, the loss is downstream: go straight to the hub marks and the belt-to-pulley phase, and repair whichever joint separated.

Building the transmission error budget #

Once the isolation test has separated band, offset and index loss, put numbers on each piece:

  • Gearbox backlash. Take the arc-minute figure at the output shaft from the gearbox datasheet, divide by 21,600 (arc-minutes per revolution) and multiply by travel per output revolution. On this axis that travel is 207.65 mm or 8 × 207.65 = 1661.2 mm depending on the configured convention, so one arc-minute is worth 0.0096 mm or 0.077 mm at the load. A repeatable two-direction difference is the same signature relied on when diagnosing ball screw backlash, noise and vibration on a screw-driven axis.
  • Belt elasticity. Extension is ΔL = F × L / (E × A): force times free length over tensile modulus times belt cross-section, with L, E and A from the belt supplier's data for the exact belt. With F = 28 N from the example, the extension is whatever that division gives for your belt; it tracks force in both directions and returns at rest. When the teeth are worn or the belt has taken a set and re-tensioning no longer holds the phase marks, replace it with a timing belt matched to the pulleys.
  • Coupling windup. Angle equals torque over torsional stiffness, θ = T / k_θ, with k_θ from the coupling datasheet and T from the load force and the pulley radius. Like belt stretch, windup is reversible.

Convert every term through the same documented transformation the controller uses, add worst cases only where they can act simultaneously in the same direction, and keep the direction-dependent band, the force-dependent offset and the irreversible index loss in separate columns.

When a second encoder earns its place #

As a diagnostic instrument, a load-side encoder is worth mounting immediately: its trend is the measurement this whole diagnosis turns on, and it distinguishes gradual growth from steps without a dial indicator. As a permanent fix it only works in a dual-loop architecture — position closed on the load, velocity and torque closed on the motor — which the drive must support and which is tuned differently from a single loop. The placement trade-offs behind the related choice of mounting a motor encoder behind a belt reduction apply to this decision in reverse: every element you place between the feedback and the load becomes error the loop can no longer see.

Questions asked

Can belt stretch alone explain drift that keeps growing?

No. Elastic extension follows the transmitted force and returns when the force drops, so it produces an offset that tracks acceleration and load, not one that accumulates hour after hour. A one-direction drift on an axis that reverses continuously points to index loss — a pulley or coupling slipping on its shaft, or the belt jumping teeth — or to a shifted command or reference, and witness marks across each interface separate those.

How do I convert gearbox backlash into position error at the load?

Take the arc-minute figure at the gearbox output shaft from the gearbox datasheet, divide by 21,600 to get the fraction of a revolution, and multiply by the travel per output revolution. With 207.65 mm per output revolution, one arc-minute is about 0.0096 mm at the load; if that figure is travel per motor revolution through an 8:1 box, output travel is 1661.2 mm and one arc-minute is about 0.077 mm. You can also read the whole band directly: put a dial indicator on the load, reverse direction under normal load, and measure the gap.

Should I add a second encoder on the load side?

Use one as a diagnostic instrument right away: its trend tells you whether the error grows gradually or in steps, which separates thermal and compliance effects from slip. Turning it into compensation needs a dual-loop architecture that closes position at the load while the motor-side loop handles velocity and torque; wiring a load encoder into a single-loop drive closes nothing and can destabilize the axis.

Could integer command quantization cause the 2 mm?

Yes, in one specific way: a controller that sends real-valued position increments as integers without carrying the remainder can drop up to one increment per move, always in the same direction, and those drops accumulate over hours of cycles. Your axis resolves 0.01 mm, and 2 mm is 200 increments, so a lost fraction of one increment per move over a 3 to 4 hour production run is arithmetically plausible. Check it in the command stream before teardown: log commanded position versus an independent load measurement and see whether the offset grows in tiny uniform steps matching the move count.

Is the encoder at fault when the drive shows no following error?

Usually not the encoder itself: a checksum-checked absolute encoder link that logs no faults in the diagnostic buffer is a weak candidate for a silent 2 mm offset, because a lost position inside the encoder would show as a following error the moment it happened. The realistic encoder-side fault is mechanical: the encoder hub slipping on the motor shaft, which shifts the feedback itself so the drive reports on target while the motor shaft has physically moved. Witness-mark the encoder hub like every other interface, and read the diagnostic buffer for communication faults before ruling the path clear.

Keep reading

  • How-to

    Synchronizing Two Servo Axes on One Heavy Lift

    Yes, two servos can raise one 900 lbf fixture — gear both real axes to one virtual master, trip a cross-axis position fault that halts the master when either side strays, watch the two motor currents separately, and counterbalance each side so the holding brakes stop drifting the level away. Identical independent commands are not synchronization.

    Servo and stepper motion

  • Troubleshooting

    Why a Servo Axis Runs Away During Tuning

    A servo that completes its commanded move, then throws itself into reverse at full speed while the velocity command has no effect, has a feedback fault: reversed encoder direction, or open, crossed or noisy encoder wiring. Uncouple the motors, verify feedback polarity and continuity with the drive disabled, then retune from default gains. Raising gains cannot fix positive feedback.

    Servo and stepper motion

  • Explainer

    Mounting a Motor Encoder Behind a Belt Reduction

    No, not for commutation: field-oriented control switches phase current against the rotor's electrical angle, which only a sensor on the motor shaft reports directly. Behind a 10:1 belt, a 4096-count encoder gives about 410 counts per motor revolution — enough counts per pole to turn a 6-pole motor, but belt lash and multiplied noise put a load-dependent error inside the current loop. Use the belt-side sensor for velocity only; commutate from the motor shaft and add an output encoder if you need load position.

    Servo and stepper motion