Troubleshooting
What causes a PLC servo axis to lag or stop off position
Short answer
Sort the fault into three cases before touching a parameter: a move that arrives late but on target is a timing problem; a stop at the same wrong position is a scaling or target problem; a stop that varies is sensor, mechanics or tuning. Capture one move end to end, change one element per test, and tune last.

On this page
A servo axis that sometimes lags, or stops away from the commanded position, is three different faults wearing one symptom. A move that arrives late but lands on target is a timing problem somewhere between the sensor input and the drive ramp. A stop at the same wrong position every time is a scaling or target problem, and gains cannot fix it. A stop that wanders is sensor repeatability or mechanics, with tuning as the last hypothesis rather than the first. Split the symptom into its three cases, capture one complete move end to end, then change one element per test. This article gives the checks in the order they cost least to run, two worked examples that turn a measured offset into its cause, and the decision for each case.
Split the symptom into three cases #
Place the misbehaving cycle in one bucket before touching a drive parameter. Each bucket has its own causes, ordered by how cheap they are to check, and one confirming test:
- Late arrival, correct final position. Check first how often the program samples the sensor input, then the update interval of the motion command path, then the drive's acceleration ramp. Confirming check: capture the sensor transition, the command issue and the drive's move start for one cycle; the largest gap between consecutive events is where the delay lives.
- The same wrong position every time. Check the programmed target in the program logic first, then the scaling on the command side, then the scaling on the feedback side. Confirming check: compare the commanded target, the drive feedback and a dial indicator on the load. An offset that stays a fixed fraction of the commanded distance is scaling.
- A stopping position that varies run to run. Check sensor repeatability and mounting first, then mechanical lost motion, then feedback signal integrity, and only then tuning. Confirming check: ten identical cycles from the same physical trigger. A spread wider than the process tolerance indicts the sensor or the mechanics, not the loop.
Capture one move end to end #
Record one repeated move without changing anything:
- the sensor input state and the moment it changes
- the moment the program issues the motion command
- the commanded target position
- the drive's feedback position over the move
- the in-position or done status and any drive fault state
- the error code the motion instruction reports when it errors, because controllers log why a motion instruction failed and that code is cheaper evidence than any guess
Run the identical command at least ten times under the same load. Then change one element per test: one sampling change, or one scaling entry, or one program value, rerun the same move, and keep the change only if the captured traces improve. Two changes in one test cannot tell you which one worked. When a test writes drive parameters under power, treat the axis as able to move on the write: keep hands and gauges clear and follow the machine's lockout practice and risk assessment.
Late but on target: budget the delay #
Everything between the physical event and visible motion adds delay, and the largest term dominates. A program usually samples the sensor at the end of a scan, so the trigger waits up to one scan interval before the logic sees it. The motion command then crosses to the drive at the network's update interval, and the drive builds torque through its ramp before motion shows.
Worked example, with illustrative inputs only: a worst-case scan interval of 8 ms, a command path update interval of 2 ms and 2 ms of ramp build-up give a worst trigger-to-motion delay of 8 + 2 + 2 = 12 ms. At a commanded speed of 500 mm/s the axis travels 500 mm/s × 0.012 s = 6 mm past the trigger point before it visibly starts, late yet on target every cycle. The repair follows the budget: cut the largest term first. Moving the sensor capture into a faster task, or letting the drive capture the sensor transition on its own high-speed input, removes the scan wait; a shorter update interval helps only after that, and a stiffer ramp last. Halve the largest term and the lateness halves, because the other terms are unchanged.
The same separation between real servo lag and a suspicion of bad wiring decides the fix for non-circular servo cuts, where the fault proved to be lag, not the encoder wiring.
The same wrong position: scaling and target, never gains #
An offset that repeats exactly is arithmetic, not dynamics. On one stopped cycle compare three numbers: the commanded target in the program, the drive's feedback position, and an independent dial-indicator measurement of the load. Which two disagree says where the fault sits. Program and dial disagree: the programmed point is wrong. Dial and drive feedback disagree: the feedback scaling reports a position the load does not occupy. Command and feedback agree with each other but not with the dial: the command scaling sent the axis to the wrong place.
Worked example, calculated for these illustrative inputs: the scaling entry was written for a feedback device of 8,192 counts per revolution, but the fitted motor's encoder gives 10,000 counts per revolution and the entry was never updated. Commanded 50.0 mm, the axis converts the target with the old ratio and reaches 50.0 mm × (8,192 / 10,000) = 40.96 mm, short by 9.04 mm.
The measured fraction 40.96 / 50.0 = 0.8192 equals 8,192 / 10,000 exactly, which is the signature of a resolution mismatch; at a 25.0 mm command the shortfall is 25.0 mm × (1 - 0.8192) = 4.52 mm, so the absolute offset changes with distance while the fraction does not. Had the true encoder been the smaller of the two numbers, the axis would overshoot by the same fraction instead. Take counts per revolution from the datasheet of the exact encoder and motor in service, enter it where the drive or controller expects its feedback resolution, and re-verify against the dial indicator.
Two neighbours of scaling: inverted or swapped command and feedback signs show up as motion away from target, instant reversal or a fault on enable, so check polarity first whenever the axis runs the wrong way, not when it merely stops short. And an offset equal to a fixed mechanical step belongs to lost motion, covered next.
Decision: correct the scaling entry or the programmed target; tuning cannot move a stop that is wrong by a constant fraction.
The position that varies: sensor, mechanics, then the loop #
Work cheapest first. Repeatability: present the same trigger ten times and record the drive's feedback position at the instant the input turns on, each time. A gauge block brought against the sensor at one fixed stop makes the physical side identical every run. Compare the spread of the ten recorded positions with the tolerance the process needs; a wide spread indicts the sensor, its mounting or its wiring before the drive is touched.
Lost motion: with the drive disabled and the machine locked out, rock the load by hand and watch the dial indicator against the drive feedback. Motion at the dial with no change in feedback is backlash or slack between motor and load. Check hub set screws, keys, belt engagement and the joint between motor and driven shaft; a joint that is worn, slack or slipping is repaired with a new flexible coupling, not tuned away.
Feedback integrity: a loose connector, a broken shield or a marginal transmitter can drop counts during motion. Position that creeps while the motor is parked is its own feedback-path fault, and servo position counts up while the motor is stationary walks that diagnosis.
Only when repeatability, mechanics and feedback all pass does the control loop become the suspect.
Tuning last, one group at a time #
Tuning is a hypothesis about dynamics, and it only explains late or wandering behaviour once timing, target, scaling and mechanics have passed. Its signature is visible in the capture: feedback trails the command through acceleration, overshoots the target, or settles differently after identical, correctly timed commands. Record every drive setting before the first change, follow the drive maker's documented tuning procedure, change one parameter group at a time, and verify both the motion profile and the final stopped position after each change, because a gain set that improves the profile while moving the stop is not a fix. Never tune to compensate for a late sensor transition, a wrong target, a scaling mismatch or lost motion; those faults return the moment the load or speed changes. When an axis stays rough regardless of the gains, the cause sits outside the loop, as why gain changes cannot smooth a rough servo axis shows.
The decision for each case #
- Late but accurate: the fault is timing. Find the largest term in the trigger-to-motion budget (scan sampling, command update, ramp) and cut that term first. Expect the arrival time to improve while the final position stays where it was.
- Same wrong position: the fault is scaling or the programmed target. Enter the counts per revolution from the exact encoder's datasheet or correct the target, verify against a dial indicator, and leave the gains alone.
- Varying stop: the fault is sensor, mechanics or feedback until proven otherwise. Pass the ten-trigger repeatability test and the backlash check first, then tune one parameter group at a time, verifying profile and final position together.
Gate the next step on a signal that watches the load, because an axis can satisfy the controller while the work misses; the classic version is why a servo feeder stops on motor position, not strip position. Acceptance for any of the three cases is the same ten cycles that started the troubleshooting: every move begins on the sensor event, the stopped position matches the dial indicator, and the run-to-run spread sits inside the process tolerance.
Questions asked
Is a following error during a move itself a fault?
A following error is the gap between commanded position and feedback position while the axis moves, and it is expected during acceleration and deceleration. It becomes a fault only above the following-error limit stored in the drive. When that fault repeats at modest speed, read the logged error magnitude first: a value that grows with speed points to feedback resolution or scaling, while one present at standstill points to binding or lost motion.
Why does the program report done before the load has arrived?
Done or in position means the drive's feedback entered the in-position window, a settable band around the target stored in the drive parameters, not that the load reached a machined datum. A wide window, backlash between motor and load, or an external sensor watching the workpiece can all separate done from physical arrival. Narrow the window once the mechanics are sound, and gate the next step on the signal that actually measures the work.
Can retuning hide a late sensor event?
No. Tuning changes how the axis follows the command it is given; it cannot make the command start earlier. A move that arrives late but on target has its delay upstream, in how often the program samples the sensor, in the command path's update interval, or in the ramp. Retuning an on-target axis usually trades the delay for overshoot or a following-error trip at the same final position.
Which single test separates a scaling fault from lost motion fastest?
Measure the stopped position against a dial indicator at two clearly different commanded distances, for example 200 mm and 800 mm on a long axis. An offset that is the same fraction of distance at both targets is scaling or target logic. An offset that changes with the direction of approach, or that closes after rocking the load, is backlash or slack in the drive train.