AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Why Gain Changes Cannot Smooth a Rough Servo Axis

Servo and stepper motion Published 7 min read By AutomateDirectUSA engineering team

Short answer

Gain changes cannot smooth an axis that sticks, has backlash, or lacks torque: the position loop only commands correction, and into stick-slip or clearance the stronger correction hits harder. Check breakaway versus running torque, reversal lost motion, and the load-to-rotor inertia ratio first; on a mechanically clean axis, raise the position-loop gain in small recorded steps until instability appears and back off one step.

On this page
  1. Three signatures, one rough axis
  2. Mechanical checks, cheapest first
  3. The inertia ratio that decides whether gains can work
  4. Torque capacity: second calculation
  5. Raising the gain, only after the mechanics pass
  6. The decision, case by case
  7. Questions asked

If a servo axis stays rough through every gain adjustment, stop adjusting gains. A position loop can only turn position error into a torque command, and three conditions defeat it: stiction that builds torque and then breaks away unevenly, backlash that lets the motor move without the load, and a motor that runs out of torque because the reflected load inertia or the acceleration demand is too steep. More gain drives a stronger correction into exactly those discontinuities, so it usually makes the roughness worse. Work through the mechanical checks in order of cost, run the two calculations that settle the inertia and torque questions, and only then step the position-loop gain up in recorded increments until instability shows — and back off one step.

Three signatures, one rough axis #

Before changing anything, split the roughness into its signature. Current is the fastest way in: motor torque is close to proportional to the torque-producing current, so the current trace across one rough move usually names the case. Use the motor's torque constant from its documentation to relate the two — a displayed current value is not by itself a calibrated torque reading.

  • Stiction (stick-slip): the axis sits still while torque builds, then jumps and overshoots, repeating in small bites through the move. Confirming check: breakaway torque measured against running torque, with a torque wrench where the shaft allows it.
  • Backlash: clean in one direction, position lost or a clunk on every reversal; the motor's own encoder counts motion the load never makes. Confirming check: an indicator on the load while the motor side is moved and marked.
  • Torque or inertia limit: roughness worst through acceleration and decel, with current pinned at the drive's limit during exactly that window. Confirming check: the current trace plus the torque budget calculated below.

A fourth pattern — an axis that jogs in steps while the current fluctuates — is its own diagnosis, covered in Diagnosing a Servo Axis That Jogs in Steps With Fluctuating Current.

Mechanical checks, cheapest first #

Before any by-hand check, isolate the drive from its supply, block gravity axes, and release stored energy; an axis that the drive or a brake was holding can move once power is gone. Then order the checks by cost:

  1. Turn the load by hand over full travel, allowing for brakes, worm gearing, and seals that add normal resistance. Tight spots, a notch, or drag that varies with position is a mechanical finding, not a tuning finding.
  2. Inspect couplings, set screws, keys, and hubs. A loose set screw or a slipping clamp hub mimics stiction and backlash at once, so confirm hub hardware before believing any electrical theory.
  3. Run a reversal test with a dial indicator on the load. Move the motor side a small amount, mark it, reverse, and read the indicator: motion at the motor with none at the load is lost motion, and the reading is the clearance. The fuller walk-through for screw-driven axes is in Diagnosing CNC Ballscrew Backlash and Axis Drift.
  4. Measure breakaway and running torque with a torque wrench where the shaft arrangement allows it, in both directions and at consistent positions. These two readings feed the torque budget below.
  5. Pull the current trace across the rough move from the drive's monitoring function. Current pinned at the drive's limit during acceleration is the undersized-motor signature, whatever the gains say.
  6. Check belt tension, chain slack, and bearing condition along the drive path. Roughness that repeats once per shaft revolution points at the rotating elements, not the loop.

The inertia ratio that decides whether gains can work #

Compare the load inertia reflected to the motor shaft against the motor's own rotor inertia — never a raw load figure against a rotor figure. For a speed ratio r (motor speed divided by load speed), reflected load inertia equals load inertia divided by r squared.

Worked example, with illustrative inputs: a rotary table whose fixture and part give 30 kg·cm² of load inertia, direct-coupled to a motor whose datasheet lists 1.5 kg·cm² of rotor inertia.

  • Ratio = 30 ÷ 1.5 = 20:1. Published sizing guidance for servo drives commonly calls 1:1 to 3:1 ideal and expects ratios above 10:1 to oscillate with poor settling no matter how the loops are tuned. These bands are rule of thumb — the drive vendor's sizing document for the exact motor governs — but no gain setting rescues a 20:1 mismatch.
  • Add a 3:1 gearbox between motor and table: reflected inertia = 30 ÷ 3² = 30 ÷ 9 = 3.33 kg·cm², and the ratio becomes 3.33 ÷ 1.5 = 2.2:1, inside the band. The trade runs both ways: the motor now turns three times the table speed, and the torque check in the next section decides whether it still fits.

These are calculated numbers for these inputs, not a measured result for your machine; take the rotor inertia from the datasheet of the exact motor. How a specific ballscrew ratio plays out on a real axis is worked through in Tuning a Servo Axis With a 6:1 Ballscrew Inertia Ratio.

Torque capacity: second calculation #

An undersized motor rails at its current limit during the hardest part of the move. Position error then grows because the loop is commanding torque the hardware cannot deliver, and the drive may trip a following-error fault mid-move. More gain commands still more torque that does not exist.

Continue the example with the direct-coupled numbers, before the gearbox: total inertia = 30 kg·cm² + 1.5 kg·cm² = 31.5 kg·cm² = 0.00315 kg·m², and a move of 0 to 1,200 rpm in 0.1 s.

  • Angular acceleration = (1,200 ÷ 60) ÷ 0.1 = 200 rev/s²; × 2π = 1,257 rad/s²
  • Acceleration torque = 0.00315 kg·m² × 1,257 rad/s² = 3.96 N·m
  • Add the 0.5 N·m running friction measured with the wrench in the checks above: about 4.5 N·m demanded at the motor on every move.

If the motor's peak torque from its datasheet sits under that figure, the axis is rough exactly in the acceleration window and no gain fixes it; shorten the acceleration demand or resize the motor. With the 3:1 gearbox, motor-side inertia falls to 0.000483 kg·m² (3.33 + 1.5 kg·cm²) and the motor works at three times the angular acceleration, about 3,771 rad/s², for roughly 1.8 N·m plus a third of the friction — but it must reach 3,600 rpm for the same table move, so speed margin decides too.

A fault that arrives when acceleration ramps increase is the same story from the drive's side: Why a Servo Faults When Acceleration Ramps Increase walks through it.

Raising the gain, only after the mechanics pass #

  1. Record every existing gain, then return the loop gains to the documented defaults for the configured motor and feedback. A deliberate defaults restore, not a blanket reset that can clear unrelated axis configuration.
  2. Build one repeatable test move: same distance, speed, acceleration, and direction every run, at reduced energy, with clear travel.
  3. Capture position error and current on the same signals for every run, using the drive's scope or trace function.
  4. Raise the position-loop proportional gain one small recorded step per run. On many drives it is a single gain field in the position-loop group of the tuning screen. Change nothing else between runs.
  5. Stop at the first instability: ringing on the error trace, an audible buzz, current spikes, or settling that gets worse.
  6. Back off one step and keep that value. If the drive offers a separate response or feed-forward setting, adjust it on its own, one change per run.
  7. If the axis moves on its own during this procedure, stop and treat that as a separate fault: Why a Servo Axis Runs Away During Tuning covers it.

The decision, case by case #

  • Stiction confirmed — breakaway torque far above running torque, jump-and-overshoot signature: fix lubrication, seal drag, alignment, or bearing preload. Gain changes mask it at best and hit harder at worst.
  • Backlash confirmed — measured lost motion at reversal: take up or replace the worn element. When the clearance lives in the joint between the motor shaft and the driven shaft rather than inside a gearbox, fitting a low-backlash flexible shaft coupling sized to the two shafts and the torque is the repair.
  • Inertia ratio outside the band — the 20:1 case above: change the ratio with a gearbox or belt stage, or resize the motor. Gains cannot close an inertia gap.
  • Current pinned in acceleration — cut the acceleration demand or resize the motor, then re-run the torque budget with the new numbers before touching gains.
  • Mechanically clean, ratio in band, torque in budget — raise the position-loop gain by the procedure above. The correct setting is the last stable step minus one step.

Questions asked

The axis is smooth cold and rough after an hour of running — is that still a gain problem?

Usually not. Warm-up changes the mechanics: lubricant thins, bearing preload and seal drag shift, and a motor near its thermal limit loses torque headroom. If the gains were set on a cold machine, retune it warm, and watch motor and gearbox temperature against their documentation while the roughness develops. A stick-slip signature that fades as the machine warms points at lubrication, not at the position loop.

How do I estimate load inertia without a CAD model?

Estimate it from geometry. A solid cylinder of mass m and radius r turning about its own axis has J = ½mr²; a part far from the axis of rotation has J = mr² with r the distance to its center of mass. A linear load on a screw of lead P reflects to the motor as J = m(P/2π)². For example, 10 kg on a 10 mm lead screw reflects as about 0.25 kg·cm², so the screw itself and any gearbox usually dominate, not the carried load.

Should I run the drive's auto-tune before manual gain stepping?

Yes, as the fastest baseline. Auto-tune estimates the connected inertia and sets a starting set of loop values; it cannot remove stiction or backlash, so a mechanically caused signature will survive it. Record its result, verify it with the same repeatable test move you use for manual stepping, and continue the raise-until-unstable, back-off-one-step procedure from there.

Is there a safe numeric range for the position-loop gain?

No. The number is meaningless outside its drive, motor, feedback resolution, and connected inertia: the same value that is gentle at a 2:1 inertia ratio can be unstable at 15:1. Trust only the documented default for the configured motor as a starting point, and find the stable maximum by the step test — the last gain before ringing or audible buzz begins, minus one step.

Keep reading

  • How-to

    Tuning a Servo Axis With a 6:1 Ballscrew Inertia Ratio

    Yes, a 6:1 load-to-motor inertia ratio is tunable. The 5:1 figure is a screening guideline, not a stability limit; 5:1 to 10:1 axes commission routinely at modest bandwidth. Verify the reflected-inertia arithmetic, fix backlash and compliance first, raise gains stepwise, and notch-filter only a resonance you have measured.

    Servo and stepper motion

  • How-to

    Calculating Servo Axis Acceleration for Torque Sizing

    Acceleration for servo torque sizing comes from the commanded profile, not a rule of thumb: a = v/t_a with ramp distance s_a = v²/(2a). Convert to motor torque with T = (m·a + F_process + F_friction)·p/(2π·η) + J_total·(2π·a/p), then check peak, continuous and inertia-ratio limits.

    Motors, gearboxes and drives sizing

  • How-to

    Changing a servo axis gear ratio at runtime with MC_GearIn

    The load-gear values of an S7-1500 positioning axis are start values, so a write from the user program is rejected. To change the ratio during operation, command a virtual master axis and couple the real axis with MC_GearIn, whose ratio is a runtime parameter; the fallback is WRIT_DBL plus a technology object restart, which costs memory-card life.

    Servo and stepper motion

Why a Servo Axis Hunts at Standstill After Tuning