AutomateDirectUSAMotion LibraryShop the parts catalog

Troubleshooting

Servo Drive Encoder Phase Alarm: Isolate Wiring, Encoder or Drive

Sensors, encoders and machine vision on the machine Published 7 min read

Short answer

An encoder phase error alarm means the drive is not receiving A and B as clean square waves 90° apart, and the cable is the most common cause. Check in order of cost — connections, waveforms on a scope, encoder mounting, drive parameters — then decide encoder versus drive by substitution: the fault that follows the encoder condemns the encoder; the fault that stays with the drive condemns the drive's feedback input circuit.

On this page
  1. What does an encoder phase alarm on a servo drive mean?
  2. How do I check the encoder cable and connectors first?
  3. What should the A and B signals look like on a scope?
  4. When is the encoder or its mounting at fault?
  5. Which drive parameters must match the encoder?
  6. How do I decide between the encoder and the drive?
  7. When is it safe to reset the alarm and trust the repair?
  8. Questions asked

An encoder phase error alarm on a servo drive means the drive is not receiving channels A and B as clean, complementary square waves, so it disables the axis rather than command motion on corrupt feedback. Fix it in order of cost: cable and connectors first, then the signals on a scope, then encoder mounting, then drive parameters, and finally substitution to split encoder from drive. Panasonic drives report this fault as Alarm 20; other drives word it as an A/B phase or encoder signal error. The deciding test is always the same: the fault that follows the encoder condemns the encoder, and the fault that stays with the drive condemns its feedback input circuit.

What does an encoder phase alarm on a servo drive mean? #

The drive expects two square waves, A and B, of equal frequency offset by 90 electrical degrees; the alarm trips when one channel is missing, distorted, or shifted so that quadrature counting becomes unreliable.

An incremental encoder issues pulses on two channels as the shaft turns. The drive reads direction from which channel leads, and position from the edges: four counted edges per cycle, which is why a two-channel encoder resolves four times its line count. The phase alarm is the drive stating that this relationship broke — one channel flat, ringing, or lagging by something other than a quarter cycle.

This is a signal-quality fault, not a battery or data fault. If your drive shows an absolute-encoder alarm instead, follow troubleshooting an absolute encoder status alarm on a servo drive, which is a different isolation path.

Where the symptom appears points at the cheapest checks first:

What you see Check first Confirming check
Alarm at enable or at standstill Open conductor, unseated connector Pin-to-pin continuity, both ends disconnected
Alarm only at rated speed Marginal signal path or input filter Scope A and B at full speed against the calculated frequency
Alarm after the motor was handled or shipped Code disc or mounting damage Inspect disc and mounting, then substitution
Alarm persists with a known-good encoder and cable Drive feedback input circuit Drive diagnostic, then repair or replace the drive

How do I check the encoder cable and connectors first? #

Start there because wiring is the most common cause in practice, and the checks cost minutes: inspect the run, verify continuity pin to pin, then flex the cable through its travel while monitoring.

Before opening any connector, disable the drive, lock out the supply, and wait out the DC bus discharge time the drive manual specifies, because the bus holds a hazardous charge after power-off.

  1. Walk the full cable run and note pinch points, sharp frame edges, tight cable-track bends, and any section that moves with the axis.
  2. Reseat both connectors and check the locking hardware; look for bent or pushed-back pins and for coolant, oil, or chips inside the housing.
  3. With both ends disconnected, measure each conductor pin to pin against the wiring diagram: every conductor near zero ohms, and no conductor reading to the shield or to another conductor.
  4. Leave the meter on each conductor in turn and flex the cable by hand through its complete travel; a reading that flickers marks a break the eye cannot see.
  5. Verify the pinout mapping itself — when encoder and drive come from different makers, signal names do not always line up, and the working method is matching encoder signal names between motor and drive.

A re-termination or a replaced cable section that stops the alarm closes the case. If every check passes, move to the oscilloscope.

What should the A and B signals look like on a scope? #

Two square waves of equal amplitude and frequency, one quarter of a period apart: for a 2500 pulse per revolution encoder at 3000 rpm that is 125 kHz per channel, an 8 microsecond period, and a 2 microsecond A-to-B edge offset.

Show the arithmetic from the encoder's own numbers. Calculated example for those inputs:

  • Channel frequency: 3000 rev/min ÷ 60 s/min = 50 rev/s; 50 × 2500 pulses/rev = 125,000 Hz = 125 kHz.
  • Period: 1 ÷ 125,000 Hz = 8.0 µs.
  • Quadrature offset: 90° is a quarter cycle, so 8.0 µs ÷ 4 = 2.0 µs between a rising edge of A and the corresponding edge of B.

Scope at the drive's encoder terminals with the axis jogged, using a differential probe or two probes and channel math on line-driver pairs. Then judge what you see:

  • One channel flat: that conductor or its driver is open — back to the continuity checks.
  • B edges sitting 0.5 µs from A instead of 2 µs: (0.5 ÷ 8.0) × 360° = 22.5°, far from quadrature — the signal path or the encoder is bad, so go to substitution.
  • Rounded, ringing, or unequal-amplitude edges: compare against the amplitude your encoder's output type specifies in its datasheet, and scope again at full speed, because a path that passes at jog speed often fails at rated frequency.

When is the encoder or its mounting at fault? #

When wiring and waveforms check out at the drive terminals but the signals distort at the encoder, or after the motor has been dropped, shipped loose, or overloaded: shock and rough handling crack or wear the code disc, and damaged optics or a wobbling disc corrupt A and B.

Encoder manufacturers document disc breakage and wear from improper loading and mechanical stress, so treat any impact event as a suspect even when the motor still turns. Check the mounting screws against the installation spec, confirm the encoder sits square and concentric, and look for oil or dust film on the disc and optics. On motor-mounted encoders, worn motor bearings let the shaft run out and drag the disc with it; a motor that squeaks before it hunts often carries bearing damage that reaches the feedback, so read servo motor squeak then hunting: bearing or feedback damage before pulling the encoder.

The confirming check is comparison: signals clean at the drive end but distorted at the encoder end condemn the encoder; distorted at both ends with a proven cable leave encoder and drive, and substitution splits them.

Which drive parameters must match the encoder? #

Three of them: pulses per revolution, signal type, and the encoder input filter setting; each value comes from the encoder datasheet and the drive's function manual, and a mismatch mimics a hardware fault.

Pulse count sets the scale: a 2500 pulse per revolution encoder with 4× quadrature decoding gives 4 × 2500 = 10,000 counts per revolution, so 360° ÷ 10,000 = 0.036° per count. A wrong count usually surfaces as wrong travel and a following-error alarm rather than a phase alarm, but set it right before judging the signals.

Signal type must match the electronics: an open-collector encoder driving a differential input gives marginal levels that pass at jog and collapse at speed, so fit the pull-up the encoder datasheet calls out. The input filter matters the same way — from the example above, a 125 kHz signal has a 2 microsecond quarter period, so keep any configurable encoder input filter well below that figure at your maximum speed, within the range the drive manual allows.

How do I decide between the encoder and the drive? #

By substitution: put a known-good encoder on the same drive with the same cable and parameters, or run the suspect encoder on a second compatible drive — the fault that follows the encoder is the encoder's, and the fault that stays with the drive is its feedback input circuit.

Work cheapest to dearest. Swap the cable first, then the encoder, and only then judge the drive. Before condemning a motor-and-encoder pair, clear the motor-side basics covered in how to tell if a servo motor is actually faulty; a motor that fails those checks takes its integrated encoder down with it. On the drive side, run whatever diagnostic routine the drive offers, and check its environment — sustained heat and vibration age the electronics that decode feedback.

The decisions:

  • Fault follows the encoder to the second drive: replace the encoder, or the motor if the encoder is integrated.
  • Fault stays with the drive under a known-good encoder, a proven cable, and correct parameters: the drive's feedback input circuit has failed, so repair or replace the drive.

When is it safe to reset the alarm and trust the repair? #

After a specific defect has been found and corrected: reset once, jog the axis through its full travel, then run a production-speed cycle while watching the alarm history; a repair is proven only by a full shift without recurrence.

Do not reset to clear an alarm you have not explained — that erases the symptom you need for diagnosis. After a verified repair, monitor through the machine's real motion cycle, including the cable track's worst bend and the axis's rated speed, because those two conditions expose a marginal path. If it returns, let the recurrence point: tied to one cable position, it is the cable run; tied to top speed, the path or the filter setting is still marginal; otherwise rerun the isolation from the scope step, because the first pass missed the fault.

Questions asked

Can the encoder cable cause a phase alarm even when it looks fine?

Yes. A conductor can read correct continuity at rest and open only when the cable flexes at a bend or in a cable track, and coolant or chips inside a connector can bridge pins only under vibration. Flex the cable by hand through its full travel with the drive disabled and watch the meter; a reading that flickers condemns the cable.

What encoder frequency should I expect on the scope at full speed?

Channel frequency is speed times pulse count: revolutions per second multiplied by the encoder's pulses per revolution. A 2500 pulse per revolution encoder at 3000 rpm gives 50 × 2500 = 125 kHz, one full cycle every 8 microseconds and a 2 microsecond gap between A and B edges. If one channel shows a much lower frequency, edges are missing or the count is wrong.

Is it safe to keep resetting the alarm and running?

Reset it once after a repair to confirm the fix, then monitor. The drive trips on this alarm because it has lost true position; repeatedly resetting and re-enabling an axis whose feedback is corrupt risks a discontinuous or runaway move under closed-loop command. If the alarm returns within a shift, stop resetting and run the isolation sequence.

Why does the phase alarm appear only at high speed?

Because the signal degrades as frequency rises. Cable capacitance rounds the edges, a marginal amplitude shrinks further, and an input filter set in microseconds starts eating edges it passed at jog speed. Scope both channels at rated speed and compare against the calculated frequency; a signal clean at ten percent speed and distorted at full speed points at the signal path or the filter setting, not the disc.

Keep reading

  • Troubleshooting

    Troubleshooting an Absolute Encoder Status Alarm on a Servo Drive

    The alarm has two documented triggers: the encoder failed its internal status check, or the encoder turned faster than its rated speed after control power was applied. Work from the cheapest check to the decisive one: cable and connector integrity, encoder supply voltage measured under load, shaft motion in the power-on window, then drive settings. Replace the encoder only when all of those pass and the alarm still returns.

    Sensors, encoders and machine vision on the machine

  • Troubleshooting

    Absolute Encoder Error Persists After Battery and Encoder Replacement

    When an absolute-encoder alarm survives a new battery and a new encoder, stop buying parts and split the chain: verify 3.6 V at the encoder-side battery connector, continuity-check the cable and shield, confirm the controller interface, then run the documented mastering or initialization the axis needs after any encoder swap.

    Sensors, encoders and machine vision on the machine

  • Troubleshooting

    Troubleshooting an Absolute Encoder Multi-Turn Counter Alarm

    A multi-turn counter alarm means the encoder's accumulated-revolution count is corrupt or lost. Work the causes in cost order — backup battery (replace any cell under 3.0 V), cable and shielding, the drive's documented counter reset — and replace the encoder only when the alarm survives all three. The alarm names the fault domain, not the failed part.

    Sensors, encoders and machine vision on the machine