Troubleshooting
Why Backlash Compensation Makes Jog Moves Erratic
Short answer
When the jog increment is smaller than the backlash setting, backlash compensation can fire after every jog, even in the same direction: some jogs move double, some nothing, sometimes the axis reverses, while the DRO advances correctly. Put a dial indicator on the driven member, keep jog increments larger than the backlash, or cut the mechanical play below the increment you need.
On this page
When backlash compensation is on and the jog increment is smaller than the backlash setting, the controller can apply a fresh take-up move after every jog, even when you keep jogging in the same direction. The driven member then lurches: some jogs move double, some move nothing, occasionally the axis backs up, while the DRO keeps advancing. The fix order is short. Measure real travel with a dial indicator, keep the jog increment larger than the backlash setting, or cut the mechanical play below the increment you need. Compensation-acceleration changes will not remove the pattern.
What the symptom tells you #
Backlash is play in the drive train: the travel consumed when the loaded direction reverses before the driven member follows. Compensation exists to cancel that lost travel, and it belongs to reversals only. Read the observations in order:
- Erratic displacement on repeated same-direction jogs. The take-up is being re-applied without a reversal, so the controller's compensation state, not your command, is shaping the motion.
- The DRO advances correctly throughout. The controller believes its own output; the divergence between display and table is downstream, in command delivery, the motor, or the mechanics. The DRO is a commanded-position readout, not a measurement.
- The same behavior from the on-screen jog button and from a pendant. The input device is ruled out.
- Every axis affected the same way. A worn nut, loose gib, or slipping coupling is axis-specific; a machine-wide pattern points at the control chain.
- The pattern is worst at small increments and fades as the increment grows. That gradient is the fingerprint of a take-up that re-fires, not of lost steps.
The ratio that controls it #
While the transmission stays loaded in one direction, repeated same-direction moves should need no further take-up. On the builds reported here, the take-up re-fired after each jog anyway, so what you see per press is your commanded move combined with an injected compensation distance. The ratio between those two decides how violent it looks. One UCCNC report jogged 0.01 against a 0.03 backlash, units unspecified, and saw the axis randomly reverse while the display advanced; the Mach4 case in the worked example below ran the same three-to-one ratio in inches. When the injected distance is three times the jog, each press is mostly compensation, and the table's net travel depends on where the nut sits in the clearance at that moment.
Worked example: a 0.001 in jog against 0.003 in of measured backlash #
The case is the small-lathe report: Mach4 with a UC100 motion controller, jogging from both the screen and a pendant.
Inputs, with their source:
- Measured backlash: 0.003 in, read with a dial indicator on the machine (the reporter's own measurement).
- Jog increment: 0.001 in, entered on the jog control and repeated in one direction.
The rule, in words: compensation should add its take-up once per direction reversal. With the increment below the backlash setting, these builds re-applied it after every same-direction jog, so the commanded move and the injected compensation distance fight each other on every press.
The arithmetic:
- Compensation-to-jog ratio: 0.003 in ÷ 0.001 in = 3. Each jog commands one third of the take-up distance.
- Commanded travel over five same-direction jogs: 5 × 0.001 in = 0.005 in on the DRO.
- Reported indicator travel for those five jogs: 0.001 in + 0 + 0.002 in + 0 + 0.002 in = 0.005 in.
Result: the five-press sum matches the DRO exactly, yet the single steps swing between zero and double the commanded increment. A position built by counting fine jogs is wrong even though a long average agrees with the display, which is why you measure single jogs, not just the end point.
Decision: the boundary in that report was the backlash setting itself — increments below it misbehaved, larger increments behaved. So with compensation on, keep the jog increment larger than the backlash setting, or reduce the mechanical play below the finest increment you actually use. If you need it finer than the play, switch compensation off and approach final positions from one direction so the load takes up the clearance before you measure or cut.
Why the DRO keeps advancing #
Three gaps can open between the commanded coordinate and the table: pulses lost before the drive input, so the drive's position demand is short from the start; a stepper that loses synchronism under the take-up torque; and clearance downstream of the motor encoder, which no motor-side feedback can see. A drive closing its loop on the motor encoder still believes it tracked perfectly. That is the blind spot behind why a pulse-command servo axis loses position between moves: pulses that never became axis position were never wrong from the controller's point of view. On a Mach4 Ethernet SmoothStepper setup, how to detect following error gives the drive-side cross-check. For this fault, the only position measurement that counts is an indicator on the driven member, read signed after every press.
Compensation acceleration: what it can and cannot fix #
In UCCNC, comp.accel sets the acceleration used for the take-up, separate from the axis acceleration. It must sit above the axis acceleration, and the software raises it automatically, so a low number you enter proves nothing about a gentle take-up — read back the effective value after editing. What the reports established:
- Raising it from 240 to 300 made the upsets less frequent — several correct jogs between reversals instead of a jerk on every press — but did not remove them.
- Sweeping the compensation-to-axis-acceleration multiplier between 1.2 and 2 brought no improvement, and lowering the axis acceleration itself from 1.0 to 0.1 brought none either.
- The Mach4 screens the users searched expose no separate compensation setting; one Mach4 setup described its take-up as running at 150% of normal axis acceleration. On Mach4 your levers are the axis acceleration and the jog increment, not a hidden multiplier.
- Mach3 stops the axes while it takes up clearance; UCCNC takes it up on the fly. The same settings therefore produce different torque transients after a controller switch, one reason a machine that behaved under Mach3 misbehaves under UCCNC.
Acceleration does matter in one distinct failure: the take-up is a short, fast move, and a stepper that cannot deliver the torque loses steps there, so the axis falls short without the double-or-zero stepping. That case responds to a lower axis acceleration or more torque within what the mechanics allow. The increment-tied pattern above does not, so stop sweeping multipliers and change the increment.
Checks in order, cheapest first #
| What you observe | Likely cause, cheapest first | Confirming check |
|---|---|---|
| Same-direction jogs move double, zero, or reverse | Jog increment below the backlash setting; take-up re-fires per press | Compare the increment to the backlash setting; raise the increment above it and repeat the same jogs |
| Reversal on every press, clean repeatable pattern | Compensation sequencing in the controller | Switch compensation off and repeat; the pattern vanishing confirms the compensation path |
| DRO advances but indicator travel falls short | Lost pulses at the drive input, lost steps, or mechanical lost motion — the branch covered in what causes a PLC servo axis to lag or stop off position | Watch step and direction at the drive input and the drive's following-error or step-loss count against the indicator |
| Upsets only when presses come fast | A new jog arriving before the previous take-up finishes | One press per second with motion complete between presses, then speed up |
| Jogs misbehave, programmed moves land | Jog-specific command handling | Run the same axis to the same end points as programmed moves |
| Faults only after minutes of running, with a temperature alarm | Thermal, current-driven heating in drive or motor | Read the drive fault history and temperature diagnostics; take it down the drive path, not compensation tuning |
Test procedure: compensation off, then on #
- Save the active profile before changing any parameter.
- Pick one axis with clear travel and mount a dial indicator on the driven member with the stand outside the motion envelope. Keep a hand on feed hold or the E-stop and fingers clear of the table; if the axis keeps moving after the input ends, stop the test instead of jogging again.
- Measure the play: load the mechanism in one direction, reverse slowly, and read the lost travel before the driven member follows, in the units the control uses.
- Compensation off: jog ten times in one direction at your finest increment and record the signed indicator travel per press.
- Compensation on: repeat the identical ten presses and record again. A pattern that appears only now is the compensation path.
- Raise the increment above the backlash setting and repeat; then test a one-directional approach with compensation off.
- Record the chain before comparing notes: control software and build (the UCCNC report ran build 1.2047), controller (UC300ETH with a UB1 in that report, UC100 in the Mach4 cases), motion plugin version where one exists, drive type, input device, and affected axes. Configurations that look alike are not alike; keep them separate.
Questions asked
Does the kernel frequency or pulse rate change the erratic jogging?
No. One report ran the same jogs at 25 kHz and at 100 kHz kernel frequency with identical results, which rules the pulse rate out. What swamps each move is the compensation distance the controller injects, not how fast the pulses arrive. Leave the kernel frequency where it is and fix the increment-to-backlash relationship first.
Why would every axis on the machine show the same behavior?
Because the cause sits in the control chain, not in one axis's mechanics. A worn nut, loose gib, or slipping coupling is axis-specific and shows play whether compensation is on or off. When all axes misbehave the same way with compensation on and behave with it off, the common element is the software path that re-applies the take-up after each jog.
Can I run the machine without backlash compensation?
Yes, if you can approach every final position from the same direction, because the load then takes up the clearance before the cut or measurement. Turn compensation off and verify with an indicator that a reversal move lands inside your tolerance. The feature that truly needs a reversal is the one to fix mechanically or to program with a one-directional approach.
Will lowering the compensation acceleration stop the lost steps?
Only in the falls-short case, and only within a limit: the controller requires the compensation acceleration to sit above the axis acceleration and raises anything entered below it, so a very low number never actually runs. Reports that swept multipliers above the axis acceleration saw no change, because their real problem was the jog increment sitting under the backlash setting.


