AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Encoder phase error when mixing servo motor and drive brands

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

Short answer

An encoder phase error that stays identical after every A/B swap, direction reversal and motor-lead change is a compatibility verdict: the drive has no documented way to align commutation with the feedback your motor carries. Run the checks in order, and if the signals pass, replace one side of the pairing or fit a drive whose manual documents a startup alignment routine for third-party incremental-encoder motors.

On this page
  1. What the drive actually needs from the encoder
  2. Why your polarity swaps changed nothing
  3. The four lines a mixed pairing must hold
  4. Checks, cheapest first
  5. The two fixes that work
  6. Verify the repaired pairing
  7. The decision, case by case
  8. Questions asked

Your mixed pairing is the fault, not your soldering. When a drive raises the same encoder phase error after you have swapped A and B, inverted the complementary pairs, reversed the direction setting and swapped motor leads, it is telling you it cannot derive the rotor's electrical angle from the feedback this motor carries. Quadrature and index pulses are standardized signals; the commutation reference a drive builds from them is not, and every maker bridges that gap with its own method. The checks below take about an hour with a scope and a meter. If the signals pass, stop rewiring: the fix is a matched motor-drive family or a drive that documents a startup alignment routine for third-party incremental-encoder motors.

What the drive actually needs from the encoder #

To produce torque, a brushless servo drive places stator current at a controlled angle to the rotor field, so it must know the rotor's electrical angle continuously, including the instant it enables. An incremental encoder reports displacement from wherever the shaft sits, not absolute angle, so at power-up the drive knows nothing about the pole positions until something bridges the gap. Makers bridge it three ways: Hall tracks in the motor that report the angle coarsely; a startup routine that finds the offset between the encoder's zero and the rotor's electrical zero, the "wake and shake" search; or a proprietary serial or absolute encoder that carries the angle in its protocol.

A drive built around the third method has no firmware path from A, B and index pulses to commutation at all. Wire it perfectly and it still announces the fault; one drive family prints the alarm as PHASE ENCODER OUTPUT ERROR. Your oscilloscope proves the signals exist, amplitude, quadrature, one index per revolution, and nothing more. The differential pairs themselves follow the EIA-422 (RS-422) standard, which fixes only the balanced driver and receiver levels; it says nothing about the commutation contract, which is why two boxes can both speak standard differential quadrature and still refuse each other.

Why your polarity swaps changed nothing #

Swapping A and B, inverting a complement or reversing the direction setting changes exactly two things: which way the count runs and which way the motor turns. A direction setting or the alignment routine absorbs either one, so no combination of them can touch an alarm that survives all of them. That persistence is the diagnostic clue: a fault indifferent to every polarity variable sits above polarity. Either the drive cannot establish commutation from this feedback at all, or it is waiting for a different kind of signal on that port. If your motor and drive are actually one matched family, the same alarm has ordinary causes, and isolating wiring, encoder or drive on a matched servo pairing walks that path; everything below assumes you already know the pair is mixed.

The four lines a mixed pairing must hold #

A motor from one maker can run on another maker's drive, but only while all four of these hold. Check them against the two datasheets and the drive manual:

  • Electrical interface. The encoder's output type and supply must match the drive's encoder input: differential pairs into a differential receiver, single-ended into single-ended, at the supply voltage the encoder datasheet requires (5 V is common). A differential encoder feeding a single-ended input fails this line.
  • Channel set. A and B in quadrature plus one index per revolution, complements included where differential. If the motor also carries Hall tracks, the drive must use them or ignore them cleanly. The naming side, which label maps to which channel, is covered in matching encoder signal names between motor and servo drive.
  • A documented alignment path. The manual must document a startup routine that finds and stores the electrical offset for a motor the maker did not build. This is what such documentation looks like: one single-axis drive family's datasheet lists brushless, direct-drive, frameless, induction, linear and spindle motors as compatible with incremental encoder feedback.
  • No proprietary handshake. The feedback port must not expect the maker's own serial or absolute encoder protocol. A port that speaks only its native protocol fails here no matter what arrives on the wires.

If the third or fourth line fails, the pairing cannot work, and no cable, pinout or parameter changes that. Treat a manual that is silent on third-party motors as a no, not a maybe.

Checks, cheapest first #

Run these in order and stop at the first failure. Each entry names its confirming check.

  1. Read the alarm's definition. Find your drive's exact alarm text in the manual's alarm table. The entry states when the alarm is raised, whether signal abnormal during motion or commutation not established at enable. Confirming check: the table entry, plus whether the alarm appears at enable or only while running.
  2. Encoder power. Measure the encoder supply at the drive-side connector, and at the encoder if reachable. Confirming check: the datasheet voltage on the meter, under load.
  3. Signal integrity. Scope each pair while hand-turning the shaft. Confirming check: steady amplitude at the datasheet level, A and B offset by a quarter period, one index pulse per revolution, all clean through a full slow turn.
  4. Counts and direction. If the drive exposes a feedback counter, mark the shaft and use it. Calculated example, not a measurement: a 2048-pulse incremental encoder yields 2048 × 4 = 8192 counts per revolution, because quadrature decoding clocks four counts per pulse period. Confirming check: one hand revolution steps the counter 8192 counts, and the count runs backward when you reverse.
  5. Configured feedback type. In the drive's motor and encoder settings, find which feedback types the port accepts, whether incremental, Hall or serial absolute, and what it is set to now. Confirming check: the setting against the manual's feedback section; a port that offers only the maker's own protocol fails here.
  6. The alignment path. Search the manual for the third-party alignment routine and its supported motor list. Confirming check: printed instructions and a motor-type list that includes your motor's kind. Silence fails.

If the first four pass and the fifth or sixth fails, that is the verdict: the pairing is incompatible, and the alarm was honest from the start.

The two fixes that work #

Fix one: return to a matched family. Motor and drive from one maker's compatibility table, where the offset relationship is the maker's problem and the manual names both parts together. This is the default decision for a new build or a machine you cannot afford to debug. The wider question of mating an old motor to a new drive is covered in what decides old servo motor and new drive compatibility.

Fix two: a drive that documents the bridge. Keep the motor and choose a drive whose manual documents the "wake and shake" alignment for third-party incremental-encoder motors, with your motor type on its list. The trade is real: the rotor makes a small search move at every power-up to find the offset. On a horizontal, back-drivable axis that is a brief twitch and nothing more. Where the load must not move at enable, a vertical axis, a high-ratio gearbox or an axis with tight clearance, the search move is unacceptable, and the right pairing is a motor with Hall tracks or absolute feedback, a drive that uses them, and a holding brake released only after enable.

Verify the repaired pairing #

  1. Before the first enable, uncouple the load or place the machine in the safe state its risk assessment defines; a servo commutated to a wrong offset can accelerate to full speed instead of holding position, so treat the first enable of any new pairing as a hazardous step governed by the machine's ISO 12100 risk assessment.
  2. Power up and let the alignment routine finish; the rotor makes its search move and settles.
  3. Enable at zero speed; the shaft resists a light hand torque without stepping.
  4. Jog slowly in both directions; counts follow direction and the alarm stays absent.
  5. Cycle power once more; with a pure incremental encoder the search repeats at every power-up, and that is normal.
  6. Re-couple, load the machine, and run the axis through its normal cycle before returning it to production.

The decision, case by case #

  • Alarm unchanged after every reversal, signals pass: mixed-brand incompatibility. Replace one side; more rewiring will not help.
  • New build, or a machine that cannot sit waiting for experiments: a matched motor-drive family from the maker's compatibility table.
  • The motor must stay: apply Fix two above, after confirming your motor's type is on that drive's supported-motor list.
  • Load must not move at power-up: no alignment search; Hall or absolute feedback with a drive that uses it, brake sequenced after enable.
  • Manual silent on third-party motors: incompatible until the maker's documentation says otherwise; a capability that exists is documented, because using it requires written instructions.

Questions asked

What does the "wake and shake" routine actually do to the motor at power-up?

The drive pushes a current pattern through the windings that pulls the rotor to a known electrical angle, reads the encoder count where it lands, and stores the difference as the offset between feedback zero and electrical zero; from then on it commutates from the incremental counts. The twitch at enable is the rotor being pulled to that known angle, so the shaft must be free to move: a routine fighting an engaged brake or a locked shaft cannot find its reference.

Does a higher-resolution encoder remove the phase error?

No. Resolution adds counts, not the commutation reference; the alarm is about the missing offset, so no pulse count fixes it. For scale, 8192 counts per mechanical revolution on an 8-pole motor, which has four pole pairs, is 2048 counts per electrical revolution, about 0.18 electrical degrees per count, already far finer than commutation needs. Spend the money on a drive that documents the alignment, not on more pulses.

Can a signal converter or a specially wired cable fix a mixed pairing?

Only if the failure is the electrical interface. Signal converters, single-ended to differential or level shifters, fix the line layer and nothing else; they cannot create an alignment routine or strip a proprietary protocol handshake. If your scope shows clean differential pairs arriving at the right pins, a converter changes nothing, because the missing bridge lives in the drive's firmware, not on the wires.

Does the index channel matter for the alignment?

The offset search usually reads the quadrature counts, so the index is not what finds the offset, but keep it correct anyway: drives commonly use the index to verify feedback at enable or to home the axis, and a dead index pair raises an alarm that looks much like a phase error. Scope it like A and B, one clean pulse per shaft revolution at the level the datasheet states.

Keep reading

  • Troubleshooting

    Servo encoder disk slip: fixing the commutation angle after a shift

    A loosened encoder disk screw let the disk shift, so the drive's commutation angle no longer matches the rotor and the axis trips a following error at power-up. Stop power-cycling and trial rotation: they cannot recover the original reference. Restore the angle with the motor manufacturer's documented alignment procedure, verify against the procedure's error limit, or send the motor to a qualified servo repair shop.

    Servo and stepper motion

  • Troubleshooting

    Fixing a grid align error after a servo motor rebuild

    The zero-return switch made, but the control finished its alignment move without seeing the encoder's marker pulse. Verify the encoder connector, cable and the Index Invert A and Index Invert B fields first; if those are right, loosen the motor coupling, rotate the motor 180 degrees on the ballscrew and re-home — the documented field fix that clears the alarm when the marker sits outside the alignment move.

    Servo and stepper motion

  • How-to

    Synchronizing a servo motor and encoder through an S7-1200 PLC

    You never synchronize a servo motor's own encoder from the S7-1200: the drive aligns it at commissioning. The PLC's job is the outer loop only — read an external encoder on a high-speed counter, scale it to engineering units, and trim an analog speed reference to the drive while the current and speed loops stay inside the drive.

    Servo and stepper motion