Explainer
Why a servo calibrates again after every power cycle
Short answer
An incremental encoder without an index carries no rotor-angle information across a power cycle, so the drive must physically align the shaft before it can commutate — up to one electrical revolution, 180 mechanical degrees on a two-pole-pair motor. Shortening the calibration scan does not shorten that jump; only feedback whose position survives power-off removes it.

On this page
Your drive calibrates after every power cycle because the encoder leaves it no choice. An incremental encoder without an index reports changes of position only: when power returns, the count restarts from zero no matter where the shaft stopped, so the offset you saved points into a coordinate system that no longer exists. Before it can produce controlled torque, the drive must learn the rotor's electrical angle, and with no index the only way is to move the shaft to a known magnetic position. That movement is the jump. Its size is set by the motor's pole count — up to one electrical revolution, 180 mechanical degrees on your two-pole-pair motor — and no calibration-trajectory setting shortens it.
What power-off erases #
An incremental encoder without an index reports motion, not position. Two pulse trains in quadrature tell the drive how far the shaft has moved since counting began, and counting begins at zero every time the electronics power up. The shaft can be standing exactly where it was at power-off; the count still reads zero, and it would read the same zero from any other position.
The saved calibration is only half a reference. What it stores is the offset between encoder counts and the rotor's electrical angle. To commutate, the drive needs that offset plus a valid count for the shaft's present position; the power cycle destroyed the second half, which makes the first unusable until the shaft sits at a position whose electrical angle is known. Placing it there is the jump. Saving the configuration is still worth doing — it preserves motor parameters and the calibration settings — but on its own it cannot restore the reference.
Alignment and homing answer different questions. Magnetic alignment establishes the electrical angle for torque production; homing establishes the machine coordinate that position commands use. A drive can commutate correctly while the machine position is unknown, and a home switch, however repeatable, does not tell the drive the electrical angle. Running absolute position control with an incremental encoder takes extra references by design; that article covers the machine-coordinate side of the problem.
Electrical angle sets the travel #
In a brushless motor the electrical angle runs p times faster than the shaft, with p the number of pole pairs, so one electrical revolution spans 360/p mechanical degrees. Count poles carefully: a rotor described as four-pole has two pole pairs, because pole pairs are half the pole count, and brushless rotors are commonly built with two, three or four pole pairs.
The startup alignment injects a current vector at a fixed electrical angle, and torque pulls the rotor to the nearest stable point of that field. The stop position after power-off is arbitrary, so the travel is arbitrary too. With the field held steady the rotor takes the shortest path, which stays within half an electrical period — up to 90 mechanical degrees at two pole pairs — and drives that sweep or confirm direction while aligning can use a full electrical period. Design the mechanism for the full period.
| Pole pairs | Rotor poles | Mechanical degrees in one electrical revolution |
|---|---|---|
| 1 | 2 | 360 |
| 2 | 4 | 180 |
| 3 | 6 | 120 |
| 4 | 8 | 90 |
The same motion reads twice as large in electrical degrees as in mechanical degrees at two pole pairs, which is why a half-turn of the shaft can be reported as a full 360 electrical degrees.
Treat the alignment as motion nobody commanded: include it in the machine's risk assessment (the ISO 12100 process), keep hands and tools clear of the axis at power-up, and give couplings, cable tracks and guards clearance for the full budget.
Why the scan distance cannot shorten the jump #
A typical power-up calibration runs two stages. First the snap: the drive applies the alignment current and the rotor takes the shortest path to the stable magnetic position — the distance is fixed by where the shaft happened to stop, not by any setting. Second the scan: the drive sweeps back and forth over its configured scan distance to measure the encoder's counting direction and scale.
The scan-distance setting in your firmware's encoder configuration governs only the second stage. Cutting it trims the sweep and shortens total calibration time; the snap is untouched, because until it has happened the drive cannot know which way or how far the shaft must move. Cutting it below the documented minimum starves the direction and scale check and can fail calibration outright, so take the minimum from the documentation for the exact firmware version installed and change one setting at a time.
Some firmware versions split an offset-only calibration from the full scan. An offset-only run skips the sweep but still snaps the shaft to the alignment point: it saves time, not travel.
High current and reversed rotation are angle-error symptoms #
Commute with an angle error and the torque from a given current scales with the cosine of that error: full torque at zero error, half at 60 electrical degrees, none at 90, reversed beyond. A drive running on a missing or stale reference therefore shows two signatures. The position or velocity loop sees no useful response and winds its integrator until the current limit, so the motor draws heavily and heats its copper while doing little shaft work. Once the error passes the zero-torque point, the axis moves against the command. After a power cycle, both symptoms mean the angle reference is gone; re-establish it instead of retuning the current loop or raising current limits.
Worked example: counts, degrees and torque loss #
Inputs for a calculated example — none of these are measurements or catalog data:
- Pole pairs p = 2 (a four-pole rotor).
- Encoder resolution 2400 counts per revolution, no index.
- Design travel budget: one full electrical revolution.
- Assumed angle error when running without re-calibration after a power cycle: 120 electrical degrees.
Travel budget in mechanical degrees: 360 / p = 360 / 2 = 180 mechanical degrees. Travel budget in shaft revolutions: 180 / 360 = 0.5 revolutions. Travel budget in encoder counts: 0.5 × 2400 = 1200 counts. Weight of one count: (360 × p) / 2400 = 720 / 2400 = 0.3 electrical degrees per count — fine resolution, useless without a starting coordinate. Torque at the assumed error: cosine of 120 degrees = −0.5, so the drive delivers half its torque capability opposite the commanded direction, at full current.
These numbers are a calculated example for these inputs, not a measured result. The mechanism needs the clearance computed above, and the last line is why skipping the power-up calibration is not an option on this hardware.
The decision for each case #
The travel is acceptable. Keep the incremental encoder. Set the drive to run its calibration at every power-up, before any enable, and give the mechanism the full-period clearance from the table. Leave the scan distance at the documented default unless calibration time matters.
The travel must be zero. The reference has to survive power-off, which means an absolute encoder the drive can actually read: match the encoder's interface against the drive's documented supported list before anything is bought, because a serial-only absolute encoder may not work on your drive. A resolver is the rugged variant that keeps reporting shaft position through heat, shock and vibration; using a resolver as absolute position feedback after power-off covers that route. Calibrate the offset once, save it, and at every power-up the drive reads the true angle and enters closed loop without moving. One honest limit: entry into closed loop is motionless only until the first setpoint differs from the shaft's measured position — that move is commanded, not calibration.
The travel must be bounded, not zero. Use an encoder with an index pulse. The offset between the index and the electrical angle is calibrated once and saved; at power-up the drive rotates only until it meets the first index edge — at most one mechanical revolution, in a configured direction. Where the mechanism has one guaranteed rest position, some drives also document a fixed-offset startup mode; treat it as valid only while that rest position is enforced by hardware, not by procedure.
Questions asked
Will a battery-backed absolute encoder keep the reference across power cycles?
Yes, while the battery holds. The encoder keeps reporting true shaft position with the power off, so the offset saved in the drive stays valid and the axis can enter closed loop without alignment motion. The battery is a wear item: when it fails the position reference fails with it, and the drive raises an encoder fault at startup instead of jumping. Replace it at the interval the encoder maker states, and prove the first power-up after replacement before the axis goes back into production.
Can a hard stop or a spring make the saved offset usable?
It can, under two conditions: the mechanism itself forces the same rest position at every power-up, and the drive documents a fixed-offset startup mode. Calibrate once at that rest position and save the offset. It fails silently when anything leaves the shaft elsewhere — a back-driven load, hand movement during maintenance, a brake that drifted — and the axis then shows the familiar high-current or reversed-rotation symptoms. Verify repeatability with a shaft mark across several power cycles before trusting it.
How do I measure the real startup travel before deciding?
Mark the shaft, free the load if the mechanism allows it, and power-cycle about ten times from different stop positions, recording the travel each time. Take the largest value you see as the design number and confirm it against the pole-pair count in the motor datasheet, because assuming the wrong pole-pair count doubles or halves the expected jump. While you are at it, record the drive's calibration state and peak current during the same test.
Does a load on the shaft change the calibration?
Yes. The alignment current has to pull the rotor fully to the stable magnetic position. A stiff gearbox, a brake that has not released or a jammed mechanism can stop the shaft short, and the drive then captures an offset that is wrong even though calibration reports success. Free the load during calibration where the design allows it, and confirm with a shaft mark that the rotor actually settled before the scan stage began.