Troubleshooting
Why an encoder feedback fault stops servo homing
Short answer
Errors 31221 and 6057 mean the encoder feedback is disturbed before the position loop can home, so re-homing cannot fix it. Diagnose the chain from connector contacts, coupling, cable bends and shield to supply and A/B signals, cheapest first, then re-reference with the machine's existing routine once the signal stays valid through staged low-speed moves.

On this page
- Why does an encoder error stop the homing search?
- What do ACOPOS errors 31221 and 6057 tell you?
- What should you record before clearing the faults?
- Which checks find an encoder fault fastest?
- What count rate should the encoder show at a known speed?
- When is it safe to jog and re-reference the axis?
- Can you restore homing without the source program?
- Questions asked
When a servo or stepper axis cannot find its reference point and the HMI shows 31221 and 6057, the fault is in the encoder feedback chain, not in the reference logic. 31221 reports a disturbed encoder signal; 6057 is the position loop refusing that load feedback. Because the loop cannot prove travel, every reference command stops before it starts, and no re-homing, offset change or program rebuild can make a missing signal valid. Movement that looks normal does not acquit the encoder: a stepper develops torque from winding current alone, so the mechanism can travel plausibly while the counts stand still. The checks below run from free inspection to instrumented measurement, then the article gives a staged return to motion for a machine whose source code is unavailable.
Why does an encoder error stop the homing search? #
A reference search is a closed position-loop move, so it needs valid load encoder data to prove travel; when 31221 marks that data as disturbed, the loop answers with 6057 and refuses every reference command before it starts.
A homing routine drives the axis toward a switch or a datum at a controlled speed and uses counted distance to know where it is at every moment. Without feedback the controller would push blind toward a hard stop, so blocking the move is the drive protecting the mechanism. That is also why repeated homing attempts are the wrong first move: each one commands motion the controller cannot supervise. The symptom set — two alarms, no reference found, an axis that still moves — therefore separates into one observed fact (the signal is invalid) and one trap (the motion proves nothing). If the encoder-valid state is solid and only the switch is missed, you are in the other fault family: why proximity switch inputs fault only during homing. Here the validity indication is the discriminator between the two.
What do ACOPOS errors 31221 and 6057 tell you? #
Read as a pair, 31221 is the cause and 6057 is the consequence: the drive first flags a disturbed encoder signal, then the position loop refuses that load feedback, and the order of the two in the diagnostic buffer proves which came first.
The text of 31221 is documented in the ACOPOS error list shipped as Acp10err-en.txt in the Acp10man library; 6057 is the fault the position loop controller raises when the load encoder data is unusable.
| Error | Raised by | Documented text and reading |
|---|---|---|
| 31221 | encoder interface | "Encoder error: Cable disturbance or signal disturbance" — the drive saw a missing, corrupted or noisy signal |
| 6057 | position loop controller | "Position loop controller: Load encoder error" — the loop rejected the feedback it was handed |
Read both in the controller diagnostic buffer rather than only the HMI alarm list: the buffer carries timestamps and axis numbers, and a Cartesian machine has one feedback chain per axis, so the axis assignment tells you which cable to touch. When 31221 precedes 6057 on the same axis, treat it as one fault — the disturbance is the root cause and the load encoder error is downstream — and do not spend time on the reference routine.
What should you record before clearing the faults? #
Write down both error numbers, their timestamps, the axis each belongs to and the encoder-valid state before you clear anything, because the buffer order is the only evidence that separates the disturbance from its consequence.
- Both error numbers with timestamps and axis numbers, taken from the controller diagnostic buffer.
- The encoder-valid indication and the actual position value at standstill.
- Motor and encoder identification from the nameplates on the installed hardware.
- The hardware configuration's encoder type, resolution, supply requirement and scaling. A recreated hardware configuration proves only that the modules can be addressed; it does not prove the original motion configuration survived a controller swap or a reset.
- Photos of connector orientation and shield termination before anything is unplugged.
Which checks find an encoder fault fastest? #
Work upward from the free checks: connector contacts and the encoder coupling first, then cable bend points and the shield, then the encoder supply, and only then signal measurements at both cable ends.
Remove power before you disconnect or reseat feedback wiring, and work to your machine's energy-control procedure: in the US, OSHA 1910.147 requires a written lockout procedure, a lock and tag on every energy source, and verification of isolation before anyone opens the circuit.
- Connector contacts and shells. Bent, recessed or contaminated pins are the cheapest cause of a disturbed signal. Confirm by inspecting every pin, reseating the connector and watching whether encoder validity holds.
- Encoder coupling. A loose or slipped coupling decouples counts from motion even when the signal is electrically perfect. Confirm with motion disabled: mark the coupling, move the axis by hand where the mechanism safely allows, and check the actual-position value tracks continuously and in the right direction.
- Cable bend points. Disturbances that appear only during flex or acceleration point at the cable; a servo fault at one axis position points to the cable carrier is the same failure seen from a different symptom. Confirm with power on but motion disabled: monitor encoder validity while flexing the cable slowly through its normal bend range.
- Shield termination. Check the shield is continuous from the encoder shell to the drive's ground point and terminated as the drive's wiring documentation requires; as a rule of thumb the common arrangement is a continuous shield bonded at the drive end, so treat a floating or frayed shield as a defect. Confirm with a continuity measurement.
- Encoder supply under load. Measure at the encoder connector, not only at the drive terminals, and compare with the encoder datasheet; a supply that sags when loaded is its own fault family, covered in why a servo encoder supply collapses under load. Confirm the measured value is inside the datasheet range at the encoder end with the axis enabled.
- A and B signals at both ends. Compare waveforms at the encoder connector and at the drive input against the datasheet's signal levels, and apply no generic voltage criterion, because TTL, HTL and differential outputs differ. Signal good at the encoder and bad at the drive means the cable; bad at both ends with the supply good means the encoder's output stage; good at both with counts still wrong means the drive input channel or its configuration.
What count rate should the encoder show at a known speed? #
A healthy quadrature encoder shows a predictable pulse rate at any known speed, so one frequency measurement separates a missing channel, a dead output driver, a broken conductor and a scaling error.
An incremental encoder outputs two square waves, A and B, 90 electrical degrees apart; the direction of travel is which channel leads, and a four-count decoder counts every edge of both. Lose one channel and the decoded count rate halves while direction can no longer be decided reliably — the sporadic form of that loss is what incremental encoder missing counts after a cut cycle looks like on a machine that still runs.
Worked example, calculated for these inputs and not a measured result: an encoder with 2000 pulses per revolution, four-count decoding, a 5 mm ballscrew lead, a 30 mm/s jog.
- Turn rate: 30 mm/s ÷ 5 mm/rev = 6 rev/s.
- Decoded resolution: 2000 pulses/rev × 4 = 8000 counts/rev.
- Count rate: 6 rev/s × 8000 counts/rev = 48,000 counts/s.
- Channel A frequency: 6 rev/s × 2000 pulses/rev = 12,000 pulses/s, a 12 kHz square wave with an 83 µs period.
- A 2 s jog covers 60 mm and must accumulate 96,000 counts.
Put your own pulse count, lead and speed through the same lines, then read the result: roughly half the expected counts with the direction stuck means one channel is open; no signal at the encoder end with the supply in range means the encoder's output driver is dead and the encoder gets replaced; a full signal at the encoder end and nothing at the drive input means the cable or its connector gets repaired; expected frequencies at both ends with the position value still scaled wrong means the configured resolution or scaling is the fault and the wiring stays. A handheld meter on AC volts cannot resolve these frequencies — use an oscilloscope or the drive's own counter and trace.
When is it safe to jog and re-reference the axis? #
Jog only after the signal is statically valid: encoder-valid solid at standstill, the actual position tracking smoothly and in the right direction under safe hand movement, and the supply inside the encoder's documented range.
Then verify in stages, not in one leap:
- A low-speed jog, watching commanded against actual position: same sign, continuous, no jumps, validity solid.
- The machine's existing reference sequence from several safe starting positions; it must reach the same physical datum and report a repeatable machine coordinate every time.
- A traverse of the working range with the cable moving through its normal flex, watching validity and the diagnostic buffer.
- A limited production cycle, checking position deviation during acceleration, travel and settling.
- A controlled restart: some applications must reference again after power-up and others restore retained state, and the existing program with the machine documentation decides which result is correct.
Can you restore homing without the source program? #
Yes, as long as the controller still runs the original application: use only the machine's existing operator reference command, whose direction, switch function and travel envelope you can observe, and change nothing else.
Without source you cannot edit the sequence, and you should not invent one: a new search built on guessed offsets can establish a believable but mechanically wrong coordinate system, which surfaces later as a crash rather than an alarm. What observation at low speed can establish is the direction of the existing command, the switch response and the datum repeatability — enough to trust the routine, not enough to rewrite it. If the program itself was lost with a controller swap or reset, the correct path is restoring a verified controller backup, because a hardware configuration alone is not a machine backup; rebuilding the application is the last resort and needs the motor data, encoder resolution, scaling, limits, reference switch function and coordinate origin from documentation and measurement.
The decision for each case:
- 31221 ahead of 6057 with the signal invalid: repair the feedback chain — connector, cable, shield, supply or encoder — then re-reference with the existing routine.
- 6057 with clean signal checks: correct the configured encoder type, resolution or scaling and leave the wiring alone.
- Motion that looks normal while the counts misbehave: trust the counts, not the motion, and fix feedback before any homing.
- Program lost with the controller: restore a verified backup; rebuild only from full machine data.
Questions asked
Can a stepper axis keep moving with a dead encoder?
Yes. A stepper develops torque from winding current alone, so with the feedback dead the output stage can still move the load in a way that looks normal; only the position readout proves where it actually went. Standing still is no safer: holding current keeps heating the windings through copper loss, so repeated homing attempts add heat without adding information. Diagnose the signal before commanding more moves.
Does error 6057 always mean the encoder itself is broken?
No. 6057 only says the position loop rejected the load encoder data. The cause can be wiring, the supply, the encoder, or a configuration mismatch: an encoder type, resolution or scaling entered wrongly after a controller swap raises the same fault with perfect signals. Never replace the encoder on 6057 alone; the buffer order and the signal checks decide.
How can you confirm the configured resolution matches the encoder?
Where it is safe, make exactly one encoder revolution by hand and read the counted value: a quadrature encoder decoded four ways must show four times its rated pulses per revolution. Any other ratio means the configured resolution or decoding mode does not match the hardware. Mark the coupling first so coupling slip cannot masquerade as a scaling error.
What instruments do these checks need?
A multimeter covers supply and continuity. The pulse checks need an oscilloscope or the drive's own counter and trace functions, because a handheld meter on AC volts cannot resolve a high-frequency square wave reliably. You also need the datasheet of the exact encoder for its supply voltage, signal levels and pulse count; generic voltage rules cause more misdiagnosis than they prevent.


