Troubleshooting
Why servo encoder position loss returns after mastering
Short answer
When absolute position keeps vanishing after a clean mastering pass, the mastering is not at fault: the battery-backed encoder is losing its zero, usually through a backup battery at the end of its roughly two- to three-year life. Measure the pack under load, replace it below its window, master once, then run the power-cycle retention test; position that still drifts with a healthy battery means the encoder itself is due for replacement.

On this page
- Why does absolute position disappear again after a mastering pass?
- Which symptoms point to the battery and which to the encoder?
- How do you measure the backup battery so the reading means something?
- What must be ready before you master again?
- What retention test separates a bad battery from a bad encoder?
- When should you stop re-mastering and replace the encoder?
- Questions asked
When a servo axis loses absolute position again after a full mastering pass, stop re-mastering and test the cause: mastering only rewrites the reference, so a fault that survives it lives in the battery-backed encoder or in its backup battery. On a two-shift cell the usual culprit is a battery pack at the end of its service life, and the fix is one battery, one mastering pass and a retention test. Position that drifts while the machine runs is the other case, and it ends at encoder replacement. The checks below decide between them in about a day with tools you already have.
Why does absolute position disappear again after a mastering pass? #
A mastering pass only rewrites the reference mark and never touches the cause, so position that keeps disappearing afterwards is the encoder's battery-backed count dying at power-down, and the first suspect is the backup battery. The encoder on the back of the servo motor, often called a pulse coder on robot controllers, holds multi-turn absolute position in a counter that the backup battery powers whenever the machine is off, which is why servo motor absolute encoders are really battery-backed. When the pack falls below its retention window, the counter dies at each power-down, the controller raises the battery-zero alarm (BZAL, servo alarm 62) at the next power-up, and the axis needs mastering again. The new reference holds only until the next shutdown. Position that drifts during a run with no power cycle is a different fault: the count is being corrupted inside the encoder itself, and no battery change will touch it.
Which symptoms point to the battery and which to the encoder? #
The pattern of the loss decides the diagnosis before any instrument comes out: loss that follows power-downs is the battery or its connector, while drift or jumps during a running cycle point at the encoder itself. The table maps what the operator reports to the cheapest confirming check.
| What you see | Most likely cause | Confirming check |
|---|---|---|
| Position lost only after a long power-down, a week or more | Backup battery near end of life | Loaded voltage, controller off |
| Position lost at every power-up | Battery flat, or battery lead and connector fault | Loaded voltage, then connector pins |
| Position drifts mid-program, controller running | Encoder hardware failure | Retention test after mastering; encoder signals on a scope |
| Battery-zero alarm at power-up | Count lost because the battery depleted | Replace battery, master, run the retention test |
| Mastering data missing alarm | Calibration data overwritten or not restored | Compare with the calibration sheet, restore the image |
The battery-zero alarm is BZAL, servo alarm 62 (SRVO-062) on these controllers; around it you will meet the pulse-coder error SRVO-038, the mastering-data-missing alarm SYST-035 and the power-on mastering required PRIO-005. One behaviour is not data loss at all: an axis that re-runs its zero routine at every start with no alarm and no lasting offset, and why a servo calibrates again after every power cycle covers that startup pattern.
How do you measure the backup battery so the reading means something? #
Measure the pack under the encoder's load with the controller switched off for at least 60 seconds, because a worn battery can show almost normal voltage open-circuit and collapse the moment current flows. These controllers use more than one battery class, 6 V alkaline packs of four D cells and lithium packs in more than one voltage, so take the acceptance window from the documentation of the pack fitted to your axis. For the 6 V alkaline pack the loaded window is roughly 5.4 to 6.4 V, and for the 6 V lithium family roughly 5.6 to 6.0 V. Below the window, replace the pack before you master anything; a mastering session on a weak battery is how the fault returns after the next weekend.
A worked example, with example readings rather than a measurement from your cell: a 6 V alkaline pack shows 6.1 V open-circuit and sags to 4.9 V under the encoder load. The sag is 6.1 − 4.9 = 1.2 V, and the loaded value sits 5.4 − 4.9 = 0.5 V below the floor, so that pack is replaced, not re-tested. The reverse case exists too: a field report had the battery-zero alarm latched while the pack still measured 3.1 V, in range for the smaller lithium packs, which moves the search past the battery to the lead, the connector pins and finally the encoder's backup circuit. When you do replace a pack, follow the controller's documented sequence; on most of them the control stays powered during the swap so the count survives it, while a cold swap costs the position and adds a mastering pass.
What must be ready before you master again? #
Four things need to be at the cell before the mastering screen opens: the master calibration sheet, a controller image backup taken while the robot was still mastered, a battery verified under load, and the model's mastering fixture or alignment marks.
- Master calibration sheet. The factory sheet with each axis's pulse counts. Without it a full mastering produces a robot calibrated against the wrong zero, the worst outcome because it looks finished.
- Controller image backup. Taken from the teach pendant's file utilities while the robot is in a known-good mastered state. A backup taken after the loss preserves the fault, not the reference.
- A battery that passed the loaded check. A pack that has not passed it does not go into a mastering session.
- Mastering fixture or alignment marks. The model's mastering block or scribe marks, photographed before anything is dismantled.
What retention test separates a bad battery from a bad encoder? #
Master once with a verified battery, power down for 5 minutes and check, then power down for 24 hours and check again: a pass clears the encoder, and a second loss with the battery in range condemns it.
- Replace or verify the battery, then master the suspect axis with single-axis quick mastering at its marks; use full mastering with the calibration sheet when several axes lost counts.
- Power down for 5 minutes, power up and confirm no battery-zero alarm and that the position held.
- Power down for 24 hours, power up and confirm the position against a fixed reference such as a tooling target or scribe mark.
- If the cell allows, include a weekend power-down; the long off-time is exactly when a marginal pack fails.
One caution belongs here: mastering means jogging the axes with the cell energised, so run it with the gate closed, nobody inside, and the machine's own mastering procedure in hand as its manual describes. A pass on both checks means the battery was the whole fault: put the pack on a two- to three-year replacement schedule and return the cell to production. A failure with the battery measuring in range moves you to the encoder decision.
When should you stop re-mastering and replace the encoder? #
Replace the encoder when the retention test fails with the battery in range, or when position drifts during a running cycle, because in both cases the count is dying inside the encoder and no reference rewrite survives that. On most robot servos the encoder is integrated into the motor housing and the maker supplies it only as part of the motor assembly, so the official replacement is the whole unit; servo repair specialists commonly replace the encoder alone and recalibrate it. After either swap, re-master, re-enter the values from the calibration sheet and run the retention test again. If the alarm survives even a new battery and a new encoder, the fault sits on the drive side or in the wiring, and why an absolute encoder error persists after battery and encoder replacement walks that case.
The decision for each case:
- Battery below its window: replace the pack, master once, pass the retention test, run.
- Battery in range but the alarm latched: inspect the battery lead and connector pins first, then treat it as encoder hardware.
- Position lost at every power-up with a good battery and connector: encoder replacement.
- Drift during a running cycle: encoder replacement without further mastering attempts; re-mastering only hides it between failures.
- Mastering data missing: restore the image and re-enter the sheet before blaming any hardware.
Questions asked
How long does an absolute encoder backup battery last?
Plan on roughly two to three years on a two-shift cell, and less when the machine sits powered off for long stretches or the controller cabinet runs hot, since both drain the pack faster. Replace on that schedule instead of waiting for the battery-zero alarm: by the time that alarm appears, the count is already gone and every affected axis needs mastering again.
Is single-axis quick mastering enough to fix a robot that keeps losing position?
No, it is a diagnostic and a stopgap. Quick mastering rewrites one axis reference from the mastering marks in minutes, which makes it ideal for the retention test, but it does not touch the cause. An axis that loses position again within days while its battery measures in range has a failing encoder, and the next step is replacement rather than another mastering pass.
Why can I not buy the encoder separately from the motor?
Servo repair specialists often replace the encoder alone and recalibrate it on the bench, which is the route worth asking about once the retention test has condemned the encoder rather than the battery.
Does a battery-zero alarm at power-up always mean the battery is dead?
Not always. If the alarm stays latched with a pack that measures in range, the fault sits downstream: the battery lead, the connector pins, or the encoder's backup circuit. Replace the battery first anyway because it is the cheapest check, then inspect the connector, and only then treat a persistent alarm as encoder hardware.

