Troubleshooting
Why Servo Zero Position Drifts After Many Revolutions
Short answer
A zero that wanders only after many load revolutions is almost always a mechanical scaling error: a rounded gearbox ratio or a load-units-per-revolution value that does not equal one real load revolution. The error grows in proportion to travel, so re-zeroing the encoder cannot fix it. Classify the error first, correct the ratio, then set the origin.

On this page
When a servo axis returns to its home position and the displayed zero is off only after many load revolutions, the encoder is usually fine and the mechanics data is not. A zero that drifts in proportion to travel is a scaling error: a rounded gear ratio entered in the drive, or a load-units-per-revolution value that does not match one real load revolution. Re-zeroing the encoder removes the symptom for a moment and the drift comes back, because the drive keeps converting motor motion to load motion with the wrong factor. Fix the ratio first, then set the origin once.
Classify the error before touching the encoder #
Each failure class has a different signature. Compare what the operator sees against this list, cheapest checks first:
- Same offset at the same physical spot, present immediately after power-up: stored reference or coordinate offset is wrong, or the absolute-encoder origin was never adjusted.
- Error grows with the number of load revolutions and keeps the same sign: mechanical scaling error, most often a rounded gear ratio or a wrong load-units-per-revolution value.
- Error changes sign with approach direction: backlash, coupling play or load slip in the drivetrain. That is a mechanical inspection job, and the drivetrain-side diagnosis is the same one used for servo axis position drift in the drivetrain.
- Error differs every time the operator confirms home: manual positioning repeatability, not a drive fault at all.
The first check costs nothing. Apply a witness mark to the motor-side and load-side components, run several complete motions, and return to the mark. A fixed coordinate difference means the origin is wrong. A difference that gets larger each pass means the scaling is wrong.
Get the exact gearbox tooth counts #
The drive derives load position from motor-encoder motion, so every stage between motor and load enters the conversion. Nameplate ratios are often rounded decimals; a nameplate that says 49.9 may really be a two-stage 50:1 built from exact tooth counts. Ask the mechanical department or read the gearbox datasheet for the input and output tooth counts of each stage, reduce the full train to one exact ratio, and enter it the way the commissioning tool expects (typically numerator and denominator, not a decimal). A ratio entered as 49.9 when the true ratio is 50:1 is 0.2 percent off, and 0.2 percent accumulates on every revolution until the machine zero is visibly displaced.
Also inspect the physical transmission while you are there: a loose coupling, a slipping belt or key movement produces error no encoder adjustment can remove. Mark the motor-side and load-side parts, turn through a known number of revolutions, and confirm the physical relationship matches the configured ratio with no progressive displacement.
Check the load units per load revolution #
In position-control configurations that use load coordinates, one parameter defines the load units per load revolution; in the SINAMICS-style mechanics configuration that parameter is p2506. The value you enter must equal one real load revolution in your engineering-unit convention, exactly. If the machine uses 0.01 degrees per load unit, one true load revolution is 36000 load units, and the nearby rounded number 36000 is only correct if it really is exact. The scaling check is simple: jog through one complete load revolution and expect the displayed change to equal exactly one revolution's worth of load units; jog through several and expect no accumulating closure error. If scaling arithmetic in your control keeps tripping you up, the same unit-per-revolution bookkeeping appears in the pulse-scaling calculation for step-and-direction servo axes.
Worked example: a 50:1 rotary table entered as 49.9 #
Inputs: a rotary table with a true single-stage 50:1 gearbox (exact tooth counts 100 input teeth to 2 output teeth for the purposes of this example), configured as 49.9 in the mechanics data; the load coordinate uses 0.01 degrees per load unit, so one load revolution is 36000 load units; the operator commands 50 complete load revolutions, which is 18000 degrees of commanded table travel. These are example values, chosen to show the arithmetic.
The rule: position error from a ratio mistake grows in proportion to travel. Error fraction = (true ratio − entered ratio) ÷ true ratio. Accumulated closure error = error fraction × commanded travel.
Arithmetic: error fraction = (50 − 49.9) ÷ 50 = 0.002. Commanded travel = 50 load revolutions × 360 degrees per revolution = 18000 degrees. Accumulated closure error = 0.002 × 18000 degrees = 36 degrees.
Result: after 50 load revolutions the table displays a zero 36 degrees away from the physical witness mark, and the error after 100 revolutions would be 72 degrees — it doubles with the revolution count.
Decision: any closure error that doubles when the revolution count doubles is scaling. Enter the exact ratio, verify one load revolution moves exactly 36000 load units on the display, and only then adjust the encoder origin. A closure error that is the same fixed amount at one revolution and at fifty is a stored-offset problem instead, and the origin adjustment alone fixes it.
Setting zero without a home switch #
Some machines physically cannot take a home sensor, and an operator-confirmed home is the fallback. Accept that it is inherently less repeatable than a switch: a person aligning a mark jogs by hand, and their repeatability is limited by visual alignment, jog resolution, stopping behavior and backlash. Make the procedure tight anyway:
- Jog past the home position so every approach comes from the same direction.
- Approach the witness mark at the lowest practical jog speed.
- Stop the axis and wait until feedback is stationary.
- Confirm that the load, not just the motor shaft, sits on the mark.
- Trigger the confirmation once, deliberately, and watch the drive's reference status so the control can tell a completed operation from an ignored one.
If the application ever grows past manual homing, a physical sensor with one approach direction is the upgrade path.
Then adjust the absolute encoder origin #
With incremental feedback, holding a set-reference input at logic 1 latches a known encoder event and the offset follows. With absolute feedback that input alone does not rewrite the origin — the drive already holds its shaft position persistently, so nothing appears to happen. Use the drive's absolute-encoder adjustment or actual-position-setting function instead:
- Place the load at the defined physical home using the manual procedure above.
- Open the absolute-encoder adjustment function in the commissioning interface.
- Enter the required machine coordinate (zero here) and execute the adjustment; confirm the drive reports success.
- Save the changed parameters so the reference survives power-off — an unsaved origin is exactly why an absolute encoder error persists after the battery and encoder have been replaced.
- Read the actual position again without moving the axis to confirm it stayed at zero.
The adjustment changes the coordinate relationship only. Run it after the ratio and load-unit checks pass; run it before, and the drift returns on schedule.
The decision, restated: error fixed at every location means fix the stored offset; error proportional to revolutions means fix the exact gear ratio and the load-units-per-revolution value first, then set the origin once; error that flips with approach direction means inspect the drivetrain mechanically.
Questions asked
Why does the set reference mark input not reset an absolute encoder position to zero?
On incremental feedback, a reference mark latches a known encoder event and the control applies a stored offset. On absolute feedback the drive already knows its shaft position persistently, so a reference request alone does not rewrite the coordinate. Use the drive's absolute-encoder adjustment or actual-position-setting function to assign zero to the current physical position, then save the parameters so the change survives power-off.
How do I find the exact gearbox ratio when the nameplate only shows a rounded decimal?
Get the exact tooth counts of each stage from the gearbox datasheet or the mechanical department, then build the ratio as input teeth divided by output teeth. A nameplate figure such as 49.9 may hide a true 50:1 two-stage ratio. Enter the whole-number ratio the commissioning tool expects, not the rounded nameplate decimal, and verify one full load revolution moves exactly one revolution's worth of load units.
Can an operator-confirmed home be as repeatable as a home switch?
No. Its repeatability is limited by how well the operator visually aligns the mark, the jog resolution, stopping behavior and backlash. A dedicated home switch with one approach direction repeats mechanically. If no switch fits the machine, define one physical witness mark, always approach it from the same direction at the lowest practical jog speed, and confirm only after motion has fully stopped.
The error reverses sign when the axis approaches from the other side. Is that still a scaling error?
That pattern points to backlash, coupling play or load slip rather than scaling. A scaling error accumulates in proportion to travel and keeps its sign; a clearance error changes with approach direction. Check the drivetrain mechanically first, and if scaling also looks suspect, run the revolution-count test from one consistent direction so the two effects stay separated.