AutomateDirectUSAMotion LibraryShop the parts catalog

Explainer

Swapping a Servo Resolver for an Encoder: Commutation Rules

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

Short answer

No incremental encoder commutates a brushless servo by itself: the drive must get rotor electrical angle from commutation tracks, an absolute source, or a startup alignment routine. An 8-pole motor makes 4 electrical cycles per shaft turn, so a 1000-line encoder yields 4000 counts per revolution and 1000 counts per electrical cycle — and the encoder must be aligned to electrical zero in the drive's rotation direction. Keeping the resolver and choosing a resolver-input drive is usually the sounder conversion.

On this page
  1. Will a 1000-line incremental encoder run an 8-pole brushless servo?
  2. How many electrical cycles does an 8-pole servo make per shaft turn?
  3. How many counts per electrical cycle does a 1000-line encoder give?
  4. What are commutation tracks and how many does an 8-pole motor need?
  5. Does the encoder have to be mounted at a particular angle?
  6. Why did the alignment look correct on the scope but the motor still ran away?
  7. Is keeping the resolver the better decision for these motors?
  8. What should you verify before the first enable?
  9. Questions asked

An incremental encoder cannot replace a resolver on a brushless servo by itself. Commutation needs the rotor's electrical angle, and an encoder with only A, B and index channels counts motion without knowing where the poles are. The swap works only when the drive can find that angle another way: commutation tracks on the encoder, an absolute feedback source, or a documented startup alignment that moves the rotor to a known angle. For an 8-pole motor the arithmetic is fixed — 4 pole pairs and 4 electrical cycles per shaft turn — and the encoder must be aligned to electrical zero in the drive's rotation direction. On motors with working resolvers, the sounder conversion is usually a drive that accepts resolver feedback, not new encoders.

Will a 1000-line incremental encoder run an 8-pole brushless servo? #

Not on its own: a 1000-line incremental encoder only counts shaft motion, so it runs the motor only when the drive acquires rotor electrical angle at power-up from commutation tracks, an absolute source, or a rotor-alignment routine it supports.

The donor encoders in this conversion typically come from brushed DC servos. A brushed motor commutates mechanically through its brushes and commutator, so its encoder never needed rotor-angle information; expect only incremental channels and an index. That makes them position transducers, not commutation transducers.

When commutation is wrong, current is injected at the wrong angle relative to the rotor field: the motor draws high current, produces little torque, heats quickly because copper loss rises with the square of current, vibrates, or accelerates uncontrolled until the drive faults. More resolution fixes none of that; only the correct electrical relationship does.

Settle one thing in the documents before buying anything: whether the drive commutates sinusoidally or in a brushless-DC scheme, and which feedback types it accepts in each mode. "AC brushless" on the motor nameplate does not settle that; the motor data and the drive's supported motor and feedback modes do.

How many electrical cycles does an 8-pole servo make per shaft turn? #

Four: an 8-pole motor has four pole pairs, so electrical angle advances four full 360° cycles for every one mechanical shaft revolution, and commutation repeats four times per turn.

Electrical angle = pole pairs × shaft angle, taken modulo 360°:

  • pole pairs = 8 poles ÷ 2 = 4
  • one electrical cycle = 360° ÷ 4 = 90° of shaft rotation

At 90° of shaft rotation the electrical angle has completed a full cycle and the pattern starts over. The resolver was reporting this relationship to the drive; removing it removes the rotor-angle source, which is a different loss from losing position counts.

How many counts per electrical cycle does a 1000-line encoder give? #

1000 counts per electrical cycle: 1000 lines times four quadrature edges is 4000 counts per shaft revolution, and 4000 divided by four pole pairs is 1000 counts per electrical cycle, or 0.36° electrical per count.

Calculated example for these exact inputs (1000-line encoder, 4× edge decoding, 8-pole motor):

Quantity Arithmetic Result
Counts per mechanical revolution 1000 lines × 4 edges per line 4000 counts
Counts per electrical cycle 4000 counts ÷ 4 pole pairs 1000 counts
Electrical angle per count 360° ÷ 1000 counts 0.36°
Mechanical angle per count 360° ÷ 4000 counts 0.09°
Counts per electrical cycle at 1× decoding 1000 counts ÷ 4 pole pairs 250 counts, 1.44° electrical per count

Decision from those inputs: 0.36° electrical per count is smooth enough for sinusoidal commutation, so resolution is not the blocker — the startup rotor angle is. If the drive counts one edge per line instead of four, 250 counts per electrical cycle is coarser but still workable; what must be right is which convention the drive expects, because entering lines where the drive wants decoded counts scales the axis by a factor of four.

What are commutation tracks and how many does an 8-pole motor need? #

An 8-pole motor needs a commutation pattern that repeats every 90° of shaft rotation — four repeats per turn — so the encoder's commutation period, not its channel count, must match four pole pairs.

Commutation tracks are Hall-equivalent signals built into the encoder. They report coarse rotor angle at standstill, the drive starts on them, and it then interpolates the incremental channels for fine sinusoidal commutation. Three tracks is the common arrangement, giving six valid states of 60° electrical per electrical cycle.

The "2-, 3- or 4-channel commutation encoder" question is therefore aimed at the wrong number: the track count is the signal pattern, while the pole count is the repeat period. An encoder whose commutation pattern repeats twice per revolution will commutate a 4-pole-pair motor at the wrong mechanical intervals and produce exactly the high-current, low-torque behavior described above. Take the commutation pole count from the datasheet of the exact encoder before ordering, and match it to the motor's 4 pole pairs.

Does the encoder have to be mounted at a particular angle? #

Yes: the encoder must sit at electrical zero, where the drive's commanded field and the rotor's actual magnetic angle agree, set either by rotating the encoder housing on its hub, by storing an offset in the drive, or by the drive's own alignment routine.

Three legitimate methods, in order of preference:

  1. The drive's alignment routine. It injects current into one phase, pulls the rotor to a known electrical angle, and latches the offset. Follow its documented current and time limits; they exist because the winding heats while held.
  2. Back-EMF scoping. Spin the shaft slowly in the drive's positive direction — a lathe at a few hundred rpm is enough for a stable trace. The winding star point is normally inaccessible, so build an artificial neutral from three equal resistors, 1 kΩ each as a typical value, one per phase, joined as the scope's reference. Center the commutation channel's transition on the peak of that phase's back-EMF sine, then repeat for the other two phases.
  3. Physical adjustment. Loosen the encoder body, rotate it to the position the drive documentation defines as zero, and lock it.

Safety: never apply line voltage to a winding to pull the rotor into position. Use the drive's routine or a current-limited DC source at the motor's documented phase current; mains on a servo winding overheats the insulation within seconds and leaves energized pins exposed.

Why did the alignment look correct on the scope but the motor still ran away? #

Because the shaft was spun the wrong way: reversing the rotation reverses the electrical relationship between the encoder channels and the winding back-EMF, so an encoder centered while turning clockwise reads displaced when the drive turns the motor counter-clockwise.

One reported case: an encoder centered on the winding peak with the shaft turned one direction produced immediate acceleration and a drive fault at first enable, and realigning the same encoder with the shaft spun in the drive's rotation direction restored normal running. Reported outcome, not a law — but it makes rotation direction a first-order check, not a refinement.

Most drives can invert feedback direction in software, and that is worth knowing, but the robust fix is to align in the direction the drive actually turns the motor. Confirm as well that channel A leads channel B in that direction.

Is keeping the resolver the better decision for these motors? #

For motors with working resolvers, yes: choose a resolver-input drive instead of converting feedback, because the resolver already provides absolute rotor angle for commutation and resolver drives commonly emit an emulated encoder signal for the CNC controller.

The options, best first for a motor you already own:

  • Resolver-input drive: the drive derives rotor angle from the resolver and closes position on it. Start from selecting a replacement servo drive for resolver motors.
  • Resolver plus a plain incremental encoder: the resolver keeps commutation, the encoder feeds the controller's position input, and the add-on needs no commutation tracks. Check that the controller accepts an external feedback input, and set its scaling to the encoder's counts per revolution.
  • Emulated encoder output: if the drive supports it, feed the CNC from the drive's programmable-resolution output instead of adding a transducer.
  • Full conversion: only when the drive supports encoder commutation and you can do the electrical-zero alignment in its direction.

The donor 1000-line encoders fit the second option as position feedback, or the fourth on a drive that has a rotor-alignment routine. They do not fit a drive that demands commutation tracks at power-up.

What should you verify before the first enable? #

Five settings, in order: motor pole pairs (4), feedback scaling in lines versus counts, feedback direction, electrical-zero offset, and the drive's current limit set low for the first enable — with the motor uncoupled and the shaft clear.

  1. Pole pairs = 4. Entered as 2 or 8, the drive commutates at half or double the correct rate.
  2. Counts per revolution: jog one full turn by hand and read the position change; expect 4000 counts for a 1000-line encoder with 4× decoding. A fourfold discrepancy is a lines-versus-counts mix-up, and a travel error after a feedback swap is usually this scaling, covered in fixing a servo travel error after swapping resolver and encoder.
  3. Feedback direction: command a small positive move and confirm the position and the direction agree. Correct inversions in the drive's feedback settings, never by swapping motor phase wires.
  4. Electrical zero: run the drive's alignment routine, or the scope method, in the drive's positive direction.
  5. Electrical interface: differential line-driver levels, supply voltage and channel naming must match the drive's encoder input — the same discipline as matching encoder signal names between motor and servo drive.

Then enable with the current limit reduced and the load uncoupled. Weak torque with high current means an electrical-angle error, not a tuning problem; fix the angle before touching any loop gains.

Questions asked

Does the drive need commutation tracks, or can it find the rotor angle itself?

Some servo drives can commutate with only an incremental encoder by running an alignment move at power-up: they inject current into one phase, pull the rotor to a known electrical angle, and latch the offset. The trade-off is a small shaft jerk at every power-up, and the rotor must be free to move that far. If the axis must hold through a power cycle, or the load fights the bump, use commutation tracks or absolute feedback instead.

How do I tell whether I entered lines instead of counts in the drive?

Command one full revolution and measure the move. A 1000-line encoder decoded at four edges per line must show 4000 counts per turn; an axis that travels four times too far, or only a quarter of the distance, has a lines-versus-counts mix-up. Correct the scaling parameter in the drive, then re-verify, before touching the electrical-zero alignment.

Is a resolver less accurate than an encoder for a CNC axis?

Not in a way that should decide it. The controller sees what the drive outputs: with a resolver drive that is an emulated encoder at programmable resolution, and with an encoder drive it is the decoded count per revolution. Set the emulated resolution high enough for the mechanics and the transducer type stops being the limit; choose on drive support and on the counts per revolution the controller actually receives.

Can I keep the resolver and still add an encoder for position?

Yes, and it is the low-risk split: the resolver keeps commutation and a plain incremental encoder without commutation tracks feeds the controller's position input. Verify the controller accepts an external feedback input, set its scaling to the encoder's counts per revolution, and mount the encoder on the shaft or screw where position should be measured. The add-on then needs no electrical-zero alignment.

Keep reading

  • Explainer

    Are Servo Motor Absolute Encoders Really Battery-Backed

    Most servo motors sold as absolute use incremental feedback whose multi-turn count lives in battery-backed memory. The battery feeds a microamp retention circuit, not the operating draw, which is why the hold runs about two years powered down. Change the battery with the control powered so the count survives.

    Sensors, encoders and machine vision on the machine

  • How-to

    How to Identify Geared Resolver and Encoder Feedback on Old Servos

    Treat the resolver plus its geared 1:4 and 1:80 channels as one integrated coarse-and-fine, multi-turn position package: the resolver reads absolute angle within one shaft revolution, and the geared channels count revolutions above it. Identify each channel by resistance checks, ratio counting and waveform capture before choosing a replacement drive, because the resolver model number alone establishes neither commutation nor multi-turn position recovery.

    Sensors, encoders and machine vision on the machine

  • How-to

    Matching Encoder Signal Names Between Motor and Servo Drive

    Matching capability labels do not prove a motor and drive will talk. Map the sine and cosine pairs by function, then resolve index, data and clock and the commutation definition from both datasheets into a function-based cable schedule, because the connectors will not match pin for pin.

    Sensors, encoders and machine vision on the machine