AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Servo Encoder Alarm AL-20: Isolate Amp, Cable or Encoder

Servo and stepper motion Published 7 min read By AutomateDirectUSA engineering team

Short answer

Disconnect U, V and W at the amplifier and power up: if AL-20 stays, suspect the amplifier; if it clears, megger the motor windings against the IEEE 43 minimum, then read the encoder supply at the motor end of the cable to split cable from encoder. Never megger with the drive still connected.

On this page
  1. What AL-20 actually reports
  2. Four moves that waste the repair
  3. Quantities to measure and what each one separates
  4. The isolation sequence, in order
  5. The insulation number, calculated
  6. The decision
  7. Why encoder-only replacement is not a bench swap
  8. Prove the fix holds under motion
  9. Questions asked

An AL-20 on an MR-J2 turret amplifier does not tell you which part failed, and replacing the encoder first is the most common wrong move. Disconnect U, V and W at the amplifier and power the machine up: if the alarm persists, the amplifier is the prime suspect; if it clears, the fault rides the motor path, and a megger test on the windings followed by a supply measurement at the motor end of the cable settles cable versus encoder. The whole split takes under an hour and needs only an insulation tester, a meter, and the pinout from the amplifier manual.

What AL-20 actually reports #

The amplifier reads rotor position from the encoder over a serial link on its CN2 connector and feeds that data to both the commutation logic and the speed loop. It raises AL-20 when that data stream is corrupted or interrupted, or when the encoder supply sags under load. In the MR-J2 alarm list, code 20 is the encoder alarm raised during operation; the neighbouring code covers the same fault family at power-on. Confirm the exact wording and cause list in the instruction manual for your amplifier version, because the wording names the circuit, not the failed part.

Four physical mechanisms produce it:

  • Supply drop. The encoder runs from a low-voltage supply carried in the same cable. A worn flexing cable or an oxidized pin adds resistance and pulls the voltage down at the encoder under load.
  • Noise coupling. The amplifier output switches fast; damaged shielding, a missing shield bond at the amplifier end, or motor leads bundled with the encoder cable inject noise into the serial pair.
  • Winding or lead insulation breakdown. Leakage from U, V or W to ground raises ground-fault noise that disturbs the encoder circuit even when the encoder itself is healthy.
  • Encoder failure. Coolant contamination, a failed internal circuit, or a damaged disc or stub at the motor end.

Four moves that waste the repair #

  • Ordering an encoder before any isolation test. Three of the four mechanisms above survive a new encoder untouched.
  • Repeated power cycling or alarm reset. A reset only clears the latch; a marginal link recovers briefly and faults again when the axis moves or heats up.
  • Swapping the amplifier blind. If the real fault is winding leakage or a damaged cable, the new amplifier inherits the same stress.
  • Meggering with the motor leads still attached to the drive. Test voltage through the output stage can destroy the power module. Always disconnect first.

Quantities to measure and what each one separates #

Quantity Where to read it What it separates
Alarm state with U, V, W removed at the amplifier Amplifier display after power-up Motor power path versus amplifier or encoder side
Insulation resistance, each of U, V, W to protective earth Insulation tester at the free motor leads Winding or power-lead leakage
Encoder supply at the motor end of the cable Meter on the cable supply and return pins, amplifier powered Cable and connector drop versus encoder internals
Continuity and shield bond of the encoder cable Meter, power off, both ends Open conductor, broken shield
Insulation acceptance limit IEEE 43-2000 and the motor manual Pass or fail for the megger reading

The supply and return pin numbers differ by drive family; take them from the manual, never from memory.

The isolation sequence, in order #

  1. Lock the machine out and wait for the amplifier charge lamp to go dark before touching any terminal.
  2. Inspect the axis-side cable and connectors for coolant wicking, crushed jackets and bent pins, then reseat the connector at the amplifier and at the motor. A wiring-focused pass on the connector and shield is covered in the servo encoder connection error alarm article if the alarm is of the connection type instead.
  3. Disconnect U, V and W at the amplifier, insulate the loose ends, and power up. Alarm persists: the amplifier is the prime suspect. Alarm clears: the fault follows the motor path. Note the limit of this step: removing the leads eliminates the winding as a noise or leakage path only, while the encoder cable stays connected, so the amplifier, cable and encoder all remain in play on a persistent alarm.
  4. Megger each of U, V and W to ground with the leads still free of the amplifier, and compare against the limit in the next section. A low reading condemns the motor or its lead set, and the encoder was likely a bystander.
  5. Measure the encoder supply at the motor end of the cable with the amplifier powered. A low reading points to cable or connector resistance; a normal supply with the alarm still latched points at the encoder itself. If the alarm latches despite a continuity test passing, read why a servo encoder alarm survives a continuity test before condemning the meter's result.
  6. Substitute one item at a time only if a spare compatible cable or amplifier exists. Never change two components in one step, and log what you changed.

The insulation number, calculated #

The acceptance standard for rotating-machine windings is IEEE Std 43-2000, which sets a recommended minimum insulation resistance for windings built to modern practice of the rated voltage in kilovolts plus 1, expressed in megohms. For a 200 V class motor such as the HC-SF102:

  • Rated voltage: 0.2 kV
  • Minimum: 0.2 kV + 1 MΩ = 1.2 MΩ
  • Test voltage for a winding rated below 1000 V: 500 V DC

A winding measuring at or below that minimum fails, whatever the alarm text says. For the general method on any motor you suspect, a separate guide to megger and winding tests walks through the test setup and the readings. Your motor manual may state its own acceptance figure for that exact part family; where it does, it governs.

Worked cable-side example, with illustrative inputs: suppose the encoder draws 200 mA and the cable loop resistance, both conductors, is 2 Ω. The drop is 0.2 A × 2 Ω = 0.4 V, so a 5.0 V supply at the amplifier end arrives at 4.6 V. Take the encoder's rated supply and its minimum operating voltage from the encoder datasheet; those figures, not these example ones, decide pass or fail.

The decision #

  • Alarm stays with the motor leads disconnected: the amplifier is the prime suspect. Replace or repair it, and do not run a new amplifier until steps 4 and 5 have cleared the motor and cable, or it inherits the same fault.
  • Alarm clears and the megger reads below the 1.2 MΩ minimum: the motor winding or its leads are breaking down. Repair or replace the motor; the encoder was a symptom, not the cause.
  • Alarm clears, insulation passes, and the supply at the motor end reads low: the cable or a connector is the fault. Replace the cable, dry and replace any coolant-soaked connector, and bond the shield at the amplifier end.
  • Alarm clears, insulation passes, and the supply reads normal: the encoder itself is the remaining suspect. Move to the replacement caveats below.

Why encoder-only replacement is not a bench swap #

Mechanically the encoder is a separate assembly on the HC-SF shaft end, but on a synchronous servomotor its angular position relative to the rotor magnets sets the commutation angle. An encoder fitted without that factory phase alignment gives the wrong current angle: weak torque, overcurrent, or an alignment-related alarm on the first move. Treat encoder-only replacement as a job for the manufacturer's service organization or a repair shop with the alignment fixture. Order the exact encoder type from the motor nameplate rather than assuming one part number covers every motor in the frame, and read replacing a servo motor encoder before you commit to the swap.

Prove the fix holds under motion #

  • Power up and watch the amplifier display at standstill for several minutes with no alarm.
  • Index the turret through every station in both directions at normal speed; intermittent cable faults usually show only when the cable flexes.
  • Watch the load ratio on the display while indexing. A rise against the other axes suggests wrong commutation or mechanical drag, not a cured encoder fault.
  • Re-run the insulation test if the leads were disturbed, and re-verify the shield bond at the amplifier.
  • Run a warm cycle: repeat the indexing after an hour of operation, because thermally marginal connections fail hot, not cold.

Log each step and its result. A test that removes one suspect and then restores it can mask an intermittent, and the log is what turns a lucky restart into a verified repair.

Questions asked

Which alarm code covers an encoder fault at power-up instead of during motion?

On the MR-J2 alarm list, code 16 is the encoder alarm raised at power-on, while 20 is the encoder alarm raised during operation. The isolation steps are the same, but a fault that shows before the axis ever moves points harder at connector seating, wiring or the amplifier, because the cable has not yet flexed.

What does a healthy winding read on the insulation tester?

Far above the 1.2 MΩ floor. A sound low-voltage winding typically reads in the gigohm range, with leakage in the nanoamp range on a 500 V DC test. A reading that climbs during the test is normal dielectric absorption; a flat low reading means moisture or breakdown. Dry the motor and retest before condemning the winding.

Do I need to check the turret brake after the repair?

Yes. After any motor or encoder replacement, verify the brake releases on command and holds at rest before jogging the axis. Then re-establish the turret reference positions, because the rotor-to-encoder relationship and the absolute position between rotor and mechanical stop may both have changed.

Keep reading

  • Troubleshooting

    Fix Servo Travel Error After Swapping Resolver and Encoder

    Travel that does not match the position display after a resolver-to-encoder swap is a scaling fault: the drive or the technology axis is still converting counts with the other feedback's increments per revolution. Measure one commanded move and divide actual by displayed travel; a constant ratio equal to the resolution ratio names the encoder data. Fix both layers, re-home, then re-tune.

    Servo and stepper motion

  • Explainer

    Mounting a Motor Encoder Behind a Belt Reduction

    No, not for commutation: field-oriented control switches phase current against the rotor's electrical angle, which only a sensor on the motor shaft reports directly. Behind a 10:1 belt, a 4096-count encoder gives about 410 counts per motor revolution — enough counts per pole to turn a 6-pole motor, but belt lash and multiplied noise put a load-dependent error inside the current loop. Use the belt-side sensor for velocity only; commutate from the motor shaft and add an output encoder if you need load position.

    Servo and stepper motion

  • Troubleshooting

    Servo Drive Over-Speed Alarm: Causes and Checks

    An over-speed alarm means the drive measured motor speed above the limit configured in its speed-limit parameter, not that the motor is broken. Confirm whether the limit, the command, the ramps, false encoder feedback, unstable tuning or a load that back-drives the motor put it there, cheapest first, and never raise the limit to silence a trip whose cause you have not confirmed.

    Servo and stepper motion