,

Encoders for Motors: Types, Wiring and Replacement Guide

Isometric illustration of an orange industrial motor with a gray encoder mounted on its rear shaft, cabled to two white

If you work with encoders for motors, you need to know which type fits which motor, how to wire it, and what to do when it fails. This guide covers each of those points in one place. It also explains why a servo motor can fail after an encoder swap even when the motor and encoder are both good.

On this page

What a motor encoder is and what it does

What is an encoder for a motor and what does it do?

A motor encoder is a feedback sensor on the motor shaft. It turns shaft motion into electrical signals. The drive uses those signals to know position, speed and direction. Then it compares actual motion with the command and corrects any difference.

You may also hear it called a motor feedback device, servo encoder, or rotary encoder for a motor. Some people call it a motor speed sensor or position sensor. For signal basics such as quadrature, read our “What Is an Encoder?” post. However, this guide stays on the motor side.

Why does the encoder matter for motor control accuracy?

The feedback device sets a basic limit on a servo system. In short, the drive cannot control what it cannot measure. As a result, the quality of the motor encoder decides how precisely position and velocity can be held.

Which motors use encoders

Which motors need or use an encoder?

However, not every motor needs one. The need depends on the motor type and how you control it.

Three motors of different types in an isometric view: a blue servo motor with an orange encoder and cable, a gray induction
Only the leftmost motor has a plug feeding wires back to the controller.
  • Servo motors: the encoder gives rotor position for commutation (switching current to the right winding) and for the control loops. Industrial servos mostly use incremental encoders, absolute encoders or resolvers.
  • VFD-driven AC induction motors: you need an encoder only for closed-loop modes. Plain V/Hz and open-loop (sensorless) vector do not use one.
  • Stepper motors: an encoder adds closed-loop feedback. These encoders are often incremental.
  • Brushless DC motors: Hall sensors or encoders give rotor position.

For motor-side detail, see our Servo Motors Explained, Stepper Motor Guide and 3 Phase Motor VFD posts.

Types of motor encoders

Dynapar lists motor encoder types as incremental, absolute, linear, rotary, magnetic, optical and resolver. However, industrial servo systems mainly use incremental encoders, absolute encoders and resolvers. This section covers the ones you will meet most.

Incremental encoders: what is the difference from absolute?

An incremental encoder sends quadrature pulses, usually with one index pulse per revolution. It gives position relative to the last position. So it loses its place when power drops, and you need a reference or homing move to restart. Also, it costs less, which is why it is common.

On servo motors, an incremental encoder can also add U, V, W channels. These are commutation channels. They tell the drive where the rotor poles sit at start-up so it can energize the right windings.

Output type matters too. For example, differential line-driver outputs (A, /A and so on) handle noise much better than single-ended outputs.

Absolute encoders: single-turn and multi-turn

An absolute encoder reports a unique digital value for each shaft angle. Therefore the drive knows position at power-up with no homing. A multi-turn absolute encoder also counts full turns. Multi-turn versions are the typical choice for industrial servo motors, because the axis keeps its place across many revolutions.

You can stack an absolute and an incremental encoder on one shaft for redundant feedback. However, absolute feedback is not always worth the money. If speed control is the encoder’s only job, absolute feedback may be an unneeded expense.

As one example of resolution, Oriental Motor’s NX series servo motors use a 20-bit absolute encoder for low vibration at low speed.

What happens when a multi-turn encoder battery fails?

Some multi-turn absolute encoders keep the turn count in memory that a backup battery powers while the drive is off. Others count turns without a battery, so check which type you have. If a battery runs out or you unplug it, the turn count can be lost. The single-turn angle stays valid, but the full position is not.

When that happens, the drive usually shows a battery or multi-turn data alarm. Follow this order:

  1. Replace the battery. Many manuals say to do it with control power on, so the data survives.
  2. Clear the alarm as the drive manual describes.
  3. Reset the multi-turn data, then re-home the axis so the machine zero is correct again.

Because the position reference may have shifted, check axis limits and travel before you run in production.

Sin/cos encoders, resolvers, optical and magnetic

Sin/cos (analog) encoders send smooth waves instead of square pulses. The drive interpolates them, which means it divides each wave into many small steps, for very high resolution. HIPERFACE works this way: after the first absolute reading, the drive tracks the sin/cos signals.

Motor encoders are most commonly optical or magnetic. In contrast, resolvers suit harsh environments.

How does a resolver work, and how do I wire and test it?

A resolver is a small rotating transformer with no electronics inside. The drive sends it an AC excitation (reference) signal. Two stator windings then return a sine signal and a cosine signal. Their sizes change with shaft angle. A resolver-to-digital converter in the drive turns those two signals into an angle.

A resolver usually has six wires: one pair for excitation, one for sine and one for cosine. Use shielded twisted pairs, and keep each pair together. Also, match the pairs to the drive pinout exactly, because swapped pairs give wrong or unstable angle readings.

To test one with the power off, measure the winding resistance of each pair with an ohmmeter. The sine and cosine windings should read close to each other. Compare all readings with the motor datasheet. Then check the cable for opens, shorts and shield damage. A scope on the sine and cosine signals shows more, but you need the drive’s excitation running.

Should I use an encoder or a resolver?

Use a resolver when the environment is harsh. Use an encoder when you need the resolution, digital data or memory that serial encoders offer. Whichever you pick, the drive must support it.

Signals and communication interfaces

Parallel signals

First, parallel interfaces are the simple ones. They include quadrature pulse outputs (TTL or HTL) and sin/cos signals. For example, the drive reads each channel on its own wire pair.

Orange slotted code disc beside a motor shaft, a small sensor board with cables, a coiled cable, and a control box on a
Slot gaps on the disc are what the sensor reads as pulses.

What is the difference between TTL, HTL and line driver outputs?

TTL outputs are usually differential line drivers (RS-422 style) that run on a 5 V supply. HTL outputs are push-pull and run on a higher supply, often 10 to 30 V, so 24 V is common. HTL signals swing close to the supply voltage. Because of that, HTL gives good noise margin on long runs in industrial panels.

Do not mix them. A 5 V input can be damaged by an HTL signal, and a TTL signal may be too weak for an HTL input. Check both the supply voltage and the signal level on the encoder datasheet and the drive card. Some encoders offer a wide supply range and selectable output, so confirm the exact part.

How do I pick PPR for a closed-loop VFD or servo?

More PPR gives finer feedback and smoother low-speed control. However, the pulse rate rises with speed. Pulse frequency equals PPR times rpm divided by 60. For example, a 1024 PPR encoder at 1800 rpm gives 30,720 Hz on each channel.

So check that frequency against the maximum input frequency of the drive card. Also, many drives count all four edges of the quadrature signal, which multiplies resolution by four. Start with the PPR the drive manual recommends, and only go higher if the application needs the extra resolution.

What are EnDat, BiSS, SSI, HIPERFACE and DRIVE-CLiQ?

Next, these are serial interfaces. They send position as digital data. Because each is a different protocol, they do not mix.

InterfaceKey points
SSIClock and data, one-way. Little error checking (double transmission and a parity bit). Some encoder makers call it a legacy interface.
EnDatHeidenhain’s proprietary protocol. The controller supplies the clock. The encoder has memory the controller can read and write, so it can carry more data than SSI.
HIPERFACEProprietary, from Max Stegmann GmbH. The data channel is asynchronous, with no clock from the controller. It includes sin/cos signals.
HIPERFACE DSLRuns on a 2-wire RS-485 interface with power on the same pair.
BiSSOpen protocol. It adds a CRC (error check) to every transmission. It can run point to point or on a bus.
DRIVE-CLiQ and Fanuc SerialProprietary, drive-vendor-specific. DRIVE-CLiQ is most often seen in Siemens-based systems.

BiSS-C, EnDat 3 and HIPERFACE DSL are similar in capability and support functional safety. However, EnDat 3 and HIPERFACE DSL carry licensing costs.

Can I swap one serial encoder for another?

No, not unless the drive supports the protocol. For example, a HIPERFACE encoder will not work on an SSI-only input. The drive’s feedback input must support the one in use.

How do I find out which encoder interface my motor or drive uses?

Check three places in this order:

  1. First, the motor nameplate or catalog number.
  2. Next, the drive’s feedback card or option manual, which lists the supported interfaces.
  3. Finally, the encoder datasheet, which names the protocol and supply voltage.

Encoders on VFDs: when closed-loop feedback is worth it

Do I need an encoder on a VFD-driven induction motor?

Not for plain V/f or open-loop (sensorless) vector. However, you need an encoder and a feedback card for closed-loop vector, or for V/f with encoder.

Yaskawa describes four control methods for induction motors on a VFD: V/f, V/f with encoder, open-loop vector and closed-loop vector. Plain V/f needs no encoder. Closed-loop vector gives 200% starting torque at 0 rpm, the highest speed response (over 50 Hz) and a 1:1500 speed range.

V/f with encoder is not common. You must buy the encoder and feedback card, and the gain over standard V/f is small. In that mode, the encoder’s PPR (pulses per revolution) also limits the higher operating frequency.

What drive option card does closed-loop vector control need?

The drive needs an encoder feedback (PG) option card or a built-in feedback input. Delta’s instruction sheet titles the EME-PG01 as a pulse generator card for the VFD-E series. Check the drive manual for the correct PG card for each Delta series. Allen-Bradley PowerFlex drives use optional encoder modules too, but confirm the exact catalog number in the Rockwell manual.

Third-party summaries say pulse-encoder closed-loop vector typically uses HTL or TTL encoders of 1024 to 2500 ppr. Still, treat that as a hint only and confirm it in your drive manual. For drive selection and wiring, see our 3 Phase Motor VFD posts.

How to choose or match a replacement encoder

How do I choose a replacement encoder for a motor?

First, gather the data you have. Write down this checklist before you order anything:

  • Motor and drive make and model
  • Feedback type (incremental, absolute, resolver)
  • Interface and protocol
  • Supply voltage
  • Resolution (PPR or bits)
  • Single-turn or multi-turn
  • Mounting style (hollow-shaft, tapered shaft, servo flange)
  • Connector and pinout

Also, never mix protocols. In addition, a same-protocol encoder can still need parameter or alignment data programmed into it.

For servo motors, the safe route is usually the original motor-maker feedback unit, or a unit a repair shop has programmed. The reason is that alignment data is held in or tied to the encoder.

How do I read a nameplate or part number to cross-reference an encoder?

Start with the motor nameplate. Copy the maker, full model number and serial number. Then look for a label on the encoder itself, since many encoders carry their own part number and serial number.

Part numbers often code the key traits, such as interface, resolution, supply voltage, shaft or flange style and connector. However, each maker uses its own code. Decode it only with that maker’s catalog, and do not guess from a similar-looking number. Then compare every item in the checklist above against the replacement datasheet.

If you cannot decode a number, send clear photos of both labels and the connector to the shop. That is faster than ordering by trial and error.

Mounting, wiring and shielding

How should an encoder be mounted on a motor?

Keep hollow-shaft and drive-shaft alignment as good as you can. EPC says poor alignment reduces accuracy and bearing life and adds vibration. Also, make sure the drive shaft is free of burrs. Use the recommended torques on clamping bolts and couplings. Finally, a tapered-shaft encoder may need a removal tool.

Orange rotary encoder mounted via coupling to a blue motor shaft, with cables running to three drive units and a workbench
Coupling bolts are shown evenly spaced, so tighten them in a star pattern.

How should encoder cable be routed, shielded and grounded?

Because noise is the top cause of odd encoder behavior, cable practice matters. Follow these points:

  • Use low-capacitance, twisted, shielded pair cable with differential signals.
  • Keep paired outputs such as A and /A in the same twisted pair.
  • Run the cable in conduit or tray away from power cables, motor leads and VFD output cables.
  • Also keep the signal wire continuous from encoder to controller. Avoid splices.
  • Match the termination resistor to the cable impedance, typically 70 to 150 Ω.
  • Supply regulated power within ±2%.

Ground the shield at one point only, to avoid ground loops. However, sources disagree on which end. EPC and US Digital say the controller end. One third-party guide puts the drain wire at the encoder end.

So follow the encoder and drive manufacturers’ instructions. Never change grounding in a way that bypasses the machine’s safety or EMC design.

Also, do not ground the encoder case through both the machine and the cable wiring. Shaft currents can harm bearings, so Dynapar suggests isolating the encoder from them, for example with grounding brushes on the motor shaft. That protects both the encoder and the motor bearings.

How long can an encoder cable be?

The limit depends on the interface, the signal speed, the cable capacitance and the supply voltage drop. In general, faster clock or pulse rates cut the allowed length. Long runs also drop the supply voltage at the encoder, so use heavier conductors for power if the datasheet allows.

Exact limits differ for incremental line driver, SSI, EnDat, BiSS and HIPERFACE DSL, and they depend on the specific encoder and drive. Take the number from the encoder datasheet and the drive feedback manual, and use the cable type they name. If your run is longer than the listed limit, pick another interface or move the drive closer instead of guessing.

Testing and troubleshooting a motor encoder

How do I test a motor encoder?

First, lock out the drive and wait for the DC bus to discharge before you disconnect encoder cables or open the motor. For details, follow the drive manual. Then work through these steps:

  1. Check the supply voltage at the encoder under load. A third-party guide says a 24 V encoder should stay above 21 V.
  2. Next, inspect the cable, connector and shield for damage.
  3. Then check wiring at the drive or PLC for loose terminals.
  4. Turn the shaft slowly by hand. Incremental pulses should be consistent and evenly spaced.
  5. On an absolute encoder, check that the output changes with shaft position.
  6. After that, use an oscilloscope to look for noise.
  7. Finally, use a feedback tester, or connect the encoder to the control system and check the response.

Before you replace the encoder, also look for cracked solder joints on the encoder board.

How do I wire and test Hall sensors (UVW) on a brushless DC or stepper?

Hall sensors are three small switches that sense the rotor magnets. They give the drive a coarse rotor position, in six steps per electrical cycle. Wire the supply, the ground and the three outputs (often labeled U, V, W or A, B, C) to the matching drive pins. Many Hall outputs are open collector, so they need pull-up resistors. Check the motor datasheet.

To test, power the sensors and turn the shaft slowly by hand. Watch each output with a meter or scope. Each one should switch on and off in turn, and the three together should step through six valid states. A reading of all high or all low is not valid. If the motor runs rough or draws high current, the Hall wires may not match the motor phase order, so check the maker’s wiring chart.

What causes encoder errors, jitter or lost counts?

Overall, most causes are wiring, noise or alignment. This table maps common symptoms to likely causes.

SymptomLikely causeWhat to check
Feedback or commutation fault right after power-upEncoder and motor mismatch, or wrong alignmentPart match, alignment data, zero position
Intermittent count errors or jitterNoise, ground loop, shield problemShield grounding, cable routing, scope trace
No signalLow supply voltage, wiring, cable damageVoltage under load, pinout, connector
Rough running, heat or buzzing after the motor was openedEncoder alignmentAlignment angle and phasing

For motor-side faults, see our Servo Motors Explained post.

What do drive fault codes like Yaskawa PGo mean?

Codes differ by maker and drive series, so always read the fault list in your own manual. Two common Yaskawa examples help. PGo means the drive sees no encoder (PG) signal, which points to a broken wire, a loose connector or a dead encoder supply. dEv means speed deviation: the actual speed does not follow the command, which can come from bad feedback, wrong PPR settings or a mechanical problem.

Rockwell Kinetix drives and other servo drives report feedback faults too, but the names and numbers vary by model. Look up the exact code in the drive’s manual, then check the cable, connector, supply and settings before you replace the encoder.

Servo motor encoder repair and alignment

Why does a servo encoder need alignment, and when?

Alignment sets the encoder position to the rotor’s magnetic poles. As a result, the drive switches current at the right moment. A motor and encoder can both be fully working and still fail if the alignment angle is wrong.

Motor with exposed orange encoder disk clamped in a bench vise beside a dial indicator, screwdriver, and encoder control box.
Rotor position feedback ring sits exposed on the shaft for angle checks.

In addition, alignment angles differ between manufacturers and are often unique to a motor, because they may be stored in the encoder memory. Alignment within about ±3 electrical degrees gives a motor that runs efficiently in most applications. However, absolute encoders are not exempt. Their zero position and phasing also need a check after replacement or relocation.

When is alignment needed?

  • Whenever you replace the encoder.
  • Following bearing or brake work, because that requires removing the encoder.
  • Also after winding repair, even if no one touched the encoder.

A common mistake is removing the encoder before you check and record its alignment. Do not remove it unless the repair needs it, and plan alignment as part of any bearing job.

How do I align a servo encoder step by step?

Exact steps differ by motor and drive maker, so follow the manual first. This is the general method:

  1. Lock out the drive. Mark and record the old encoder position and any stored offset.
  2. Mount the new encoder, but leave the housing loose enough to turn.
  3. For DC injection, use a current-limited DC supply on motor leads U and V, with the polarity and current the manual gives. The rotor then snaps to a known electrical position.
  4. Turn the encoder housing until the index or zero point, or the absolute angle reading, matches the value in the manual. Then tighten the clamps.
  5. Remove the DC supply and reconnect the motor. Check that the drive reads the correct angle.
  6. Run the motor with no load. Check direction, current and smooth running.

Many drives offer an auto-alignment (phasing or auto-tune) routine instead. The drive finds the offset itself, and the motor may move, so free the shaft first. On serial encoders, the offset is then saved in the encoder or the drive.

What tools do I need for encoder alignment?

  • The motor and drive manuals, plus the drive configuration software
  • A current-limited DC power supply, if you use DC injection
  • A multimeter and an oscilloscope
  • A torque wrench and the right hex keys
  • A removal tool for tapered-shaft encoders

Why does a servo motor fault right after power-up following an encoder swap?

The alignment to the rotor is probably wrong or was never programmed. A fault right after power-up usually points to an encoder and motor mismatch. In fact, a mismatch of a few degrees can even cause an emergency shutdown. For example, typical signs are a motor that will not run, a feedback or commutation fault, or rough running. These usually mean the encoder needs aligning and reprogramming.

In addition, when you replace an absolute encoder on an AC servo motor, the motor must also be zeroed (encoder zero adjustment) before it works normally.

What is servo motor encoder repair and what does it include?

Servo motor encoder repair fixes or restores the feedback unit instead of replacing the whole motor. Repair shops describe these typical services:

  • Output calibration and repair
  • Bearing replacement
  • Connector replacement or repair
  • Shaft replacement or repair
  • Optical component replacement or repair
  • Optical test and alignment

On supported serial encoders, such as some Fanuc, Yaskawa and Tamagawa types, a shop can read and program the encoder memory. It then checks alignment and runs the motor. However, not every encoder or motor can be repaired or realigned, so a shop must evaluate yours first.

A good shop also tests before and after. For example, one repair shop describes back-drive and alignment checks before disassembly, then a full-voltage stator test and recorded feedback, back-EMF and alignment data. Finally, ask for a run test and a test report.

Repair or replace, cost and turnaround

Should I repair or replace a servo motor encoder?

Work through these questions:

  1. What failed: the encoder, the cable, the motor or the drive?
  2. How available is a new motor or feedback unit, and how long is the lead time?
  3. Is the motor obsolete?
  4. Is the encoder serial, with data stored inside?

If the cable or connector failed, fix that first. If the motor is obsolete or the encoder holds data you cannot read, repair is often the practical path.

Also compare the repair quote with the price of a new unit. Then add the cost of downtime while you wait for each option. A quick repair on a costly motor often wins, while a cheap motor with a long repair queue may not.

What does encoder repair cost and how long does it take?

However, public pricing is scarce and varies by motor and fault. Turnaround varies the same way, so we do not quote a fixed time here. Precision Electric gives a quote after we evaluate the unit. For a rough drive-side reference only, one source quoted surplus PG cards at about $99 to $250. Treat that as indicative, not as a price from us.

Are there encoder rules for functional safety (SIL or PL)?

Yes. If the encoder is part of a safety function, it must be a safety-rated type that the maker certifies for that use. The drive and the safety manual must also support it. As noted above, some interfaces, such as BiSS-C, EnDat 3 and HIPERFACE DSL, support functional safety.

A standard encoder, or a repaired or substitute unit, may not carry that rating. So do not swap one into a safety circuit on your own. Check the safety manual and the maker’s certificate, and ask the encoder maker or your safety engineer before any change.

Where to find manuals, pinouts and software

Where do I find manuals, pinouts and software for my encoder?

First, check the motor and drive maker’s manual library. Then check the encoder maker’s datasheet, such as Dynapar, Heidenhain or Stegmann/SICK. Next, open the drive’s feedback or option card manual. Finally, use the drive configuration software for encoder parameters and alignment or auto-tune routines.

Isometric illustration of a desk holding a stack of manuals, a loose sheet, a laptop, and an orange rotary encoder for
Paperwork sits apart from the motor and drive, so check the library first.

These references also help:

Common mistakes to avoid

What are the most common mistakes with motor encoders?

  • Grounding the shield at both ends.
  • Routing encoder cable beside VFD motor leads.
  • Splicing signal cables.
  • Specifying an encoder with the wrong protocol or voltage.
  • Removing the encoder without recording alignment.
  • Refitting an encoder after bearing work and expecting the motor to run without alignment.
  • Buying an absolute encoder for a plain speed loop.
  • Using an incremental encoder where position must survive power loss.

When to call for repair or help

When should I send the motor out for repair instead of fixing it on site?

Send it out in these cases:

  • Feedback faults repeat after you check the cable and wiring.
  • The fault began after someone opened the motor.
  • The encoder has memory data you cannot read.
  • You have no test equipment for alignment.
  • The motor is obsolete.

Frequently asked questions

What does an encoder do on a motor?

It turns shaft motion into electrical signals that the drive uses to know position, speed and direction. Then the drive compares those with the command and corrects any difference.

Do I need an encoder on a motor run by a VFD?

Not for plain V/f or open-loop (sensorless) vector. However, you need an encoder and feedback card for closed-loop vector or V/f with encoder. Closed-loop vector gives 200% starting torque at 0 rpm and a 1:1500 speed range, according to Yaskawa.

What is the difference between incremental and absolute motor encoders?

An incremental encoder sends pulses relative to the last position. It loses position when power is lost, so it needs a reference or homing move. In contrast, an absolute encoder reports a unique value for each shaft position and knows where it is at power-up.

Why won’t my servo motor run after the encoder was replaced or refitted?

The encoder alignment to the rotor is probably wrong or not programmed. A servo and encoder can both be good and still fail with the wrong alignment angle. Aligning within about ±3 electrical degrees is enough for most applications.

Which end of an encoder cable shield should be grounded?

EPC and US Digital say the controller end, and one third-party guide says the encoder end. The common rule is a single ground point to avoid ground loops. For that reason, follow the encoder and drive manufacturers’ instructions.

Can I swap an EnDat, HIPERFACE, BiSS or SSI encoder for another?

No, not unless the drive supports the protocol. Each is a different serial interface. The drive’s feedback input must support the one in use.

The right encoder, clean wiring and correct alignment keep a motor running as the drive expects. When you match the interface, ground the shield by the manufacturer’s rules and record alignment before you open a motor, most feedback problems stay small. If you need a servo encoder checked, repaired or quoted, contact Precision Electric, and our shop will evaluate it and give you a quote.