What Is an Encoder? Types, Signals and How They Work

What is an encoder? An illustrated orange servo motor drives a ball screw on a linear rail, wired to a control cabinet.

If you have ever asked what is an encoder and why your drive faults without one, this guide gives you the full answer. You will learn how encoders work, the main types, and the signals and interfaces they use. You will also see how to choose, mount, wire and troubleshoot one for your motor, drive or machine axis.

On this page

What is an encoder?

So, what is an encoder? It is an electromechanical sensor that senses the position or motion of a shaft or axis. Then it turns that motion into an electrical signal a controller can read. That controller might be a counter, a drive or a PLC (programmable logic controller).

Encoder definition and encoder meaning in plain words

In short, the encoder definition is simple: it converts movement into data. The data reports three things: position, speed and direction. For example, a drive reads the encoder to learn how fast the motor turns. Meanwhile, a PLC reads it to learn where a conveyor or axis sits.

Because it reports position, people also call it a position encoder or a shaft encoder. When someone asks what is a rotary encoder, they mean one that measures a turning shaft. In everyday shop talk, though, what is an encoder usually means that rotary type on the back of a motor.

Rotary or linear, incremental or absolute

Every answer to what is an encoder starts with two simple splits. First is the shape of the motion. Second is the type of output signal.

  • Rotary encoder: measures the angle or rotation of a shaft. People also call it a shaft encoder.
  • Linear encoder: measures straight-line distance along an axis.
  • Incremental output: reports movement and direction as pulses.
  • Absolute output: reports a unique value for each position.

From here, this guide to what is an encoder explains what each type does, how it works, and how to pick, fit and fix one. If you already know the basics, skip ahead to absolute rotary encoders, the linear encoder section, or encoders for motors.

What does an encoder do on a machine?

Once you know what is an encoder, the next question is what it does on a machine. In short, it provides closed-loop feedback. Closed loop means the controller checks the real result and corrects any error. The encoder tells the drive or controller where the shaft is and how fast it turns, so the controller can adjust.

Orange motor drives a lead screw on a machine table, with a cable running to a blue control box mounted on the wall.
A metal channel guides the feedback wiring along the wall toward the cabinet.

Why do machines and drives need an encoder?

Without feedback, a drive only assumes what the motor is doing. For example, a VFD (variable frequency drive) running open loop sends a frequency and expects the motor to follow. However, load changes, slip and wear can make the real speed drift. With an encoder, the drive sees the actual speed and position and corrects them.

As a result, encoders make motion repeatable and accurate. That is the practical side of what is an encoder: it turns a guess into a measurement. Typical jobs include:

  • Motor speed feedback on a drive
  • Servo positioning on machine axes
  • Conveyor speed and length counting
  • Robot joint position
  • Packaging machine synchronization

Which encoder type fits which job?

This table puts what is an encoder into everyday plant terms. Treat it as a starting point, because your controller input and environment also shape the choice.

ApplicationTypical encoderWhy it fits
Servo motorHigh-resolution incremental or absolutePrecise speed and position control
Conveyor speedIncrementalCounts pulses for speed and length
Robot jointAbsolutePosition is known at power-up with no homing
Packaging machineIncremental with indexThe index pulse gives a repeatable reference each turn
Precision rotary axisHigh-accuracy absolute opticalFine angle readings with no homing

How a position encoder works

So how does an encoder work? Here is the hands-on side of what is an encoder. Every encoder has three basic parts. First, a code disc (rotary) or a scale (linear) carries a pattern. Next, a sensing element reads that pattern as it moves. Finally, electronics convert those readings into a clean signal.

The pattern can be a ring of slots, fine lines or magnetic poles. As the shaft turns, the sensor sees the pattern change. Then the electronics count or decode those changes into position, speed and direction.

Optical encoders: transmissive and reflective

Optical sensing is the classic picture of what is an encoder: a spinning disc and a beam of light. An optical encoder has a light source, a coding member such as a disc, and a photodetector array (a row of light sensors). In a transmissive design, light passes through slots in the disc to a sensor on the far side. In a reflective design, the disc bounces light back to a sensor on the same side as the emitter. As a result, reflective encoders can be more compact.

Magnetic encoders and other sensing types

For harsh plants, the answer to what is an encoder is often a magnetic one. Instead of light, a magnetic encoder senses a magnetic field. A magnetized disc or scale passes a sensor, often a Hall-effect sensor, which detects changes in the field.

Other sensing principles also exist, including capacitive and inductive designs. You will see them less often on general plant equipment. However, they do appear in some linear and specialty encoders.

What is the difference between optical and magnetic encoders?

Optical encoders read light and can reach very high resolution. However, dust, oil and condensation can block the light path, so they need good sealing. In contrast, magnetic encoders read a field and generally handle contamination, shock and vibration better. So neither type wins everywhere; your accuracy needs and your environment decide.

Resolution and interpolation

So what is an encoder able to detect? The answer is its resolution, the smallest movement it can sense. On a rotary incremental encoder, you usually see it as pulses per revolution. For an absolute encoder, makers quote it in bits.

Interpolation is one way to raise resolution beyond the physical pattern. The electronics split each line or pole period into smaller steps. As a result, the encoder reports finer movement than the disc alone shows.

Incremental vs absolute encoders

After asking what is an encoder, the biggest choice is the output type. So what is the difference between an incremental and an absolute encoder? An incremental encoder outputs pulses that show movement and direction. Then a counter or drive turns those pulses into position, speed and distance. In contrast, an absolute encoder outputs a unique code for each position, so the controller always knows where the shaft is.

Two gray and orange motors with shaft-mounted discs sit on a bench, wired to a terminal block and a small display unit.
The right unit’s stepped, grooved disc differs from the plain disc on the left.

What happens at power-up and after power loss

An absolute encoder keeps its position information when you remove power. An incremental encoder, however, does not track absolute position. As a result, the machine may need homing, which means moving to a fixed reference point to set position again.

FeatureIncrementalAbsolute
OutputPulses (A, B, often Z)Unique code for each position
At power-upPosition unknown until homedPosition known right away
Typical interfaceTTL, HTL, open collectorSSI, BiSS, fieldbus, some parallel or analog
Cost and complexityGenerally simpler and lower costGenerally more complex
StrengthsHigh speed, speed feedback, countingNo homing; position survives power loss
Typical usesConveyors, speed feedback, packagingRobot joints, axes that cannot home easily

A simple decision rule

The real question is not only what is an encoder, but what it must report after a power cut. Choose absolute if homing is impractical or the position must survive a power loss. Otherwise, choose incremental for simple, high-speed, lower-cost counting and speed feedback. For example, a conveyor that only needs speed rarely needs an absolute encoder. However, a robot arm that cannot safely home after a power cut usually does.

Also, if you are weighing an encoder against a resolver, see our post on encoder vs resolver. That post covers the trade-offs in depth, so we do not repeat them here.

Incremental encoders: signals, resolution and outputs

A practical part of what is an encoder is learning to read its signals. Incremental encoders are common on conveyors, drives and many servo motors. This section explains the channels, the counts and the output drivers you see on a datasheet.

What do the A, B and Z channels mean?

To see what is an encoder telling your controller, start with its channels. An incremental encoder produces two square-wave channels, A and B, set 90 degrees out of phase. People call this pattern quadrature. Because the channels are offset, the controller can tell direction: A leading B means clockwise, and B leading A means counter-clockwise.

Many incremental encoders also add an index (Z) channel. The Z channel gives a single pulse per revolution, which marks a reference point for homing. In addition, the index can be gated or ungated, which changes its timing against A and B. So check the datasheet to make sure your controller reads the index the way it expects.

What does PPR mean and how does quadrature decoding change the count?

PPR answers a basic question: what is an encoder able to resolve in one turn? PPR means pulses per revolution, the number of pulses on one channel in one full turn. Industrial encoders range from a handful of PPR to over 10,000 PPR.

However, the controller often counts more than the PPR. With quadrature decoding, it counts rising and falling edges on both A and B, which gives four counts per pulse. So a 2500 PPR encoder gives 10,000 counts per revolution at the controller. Check whether your drive parameter asks for PPR or counts, because a mix-up makes speed and position read four times off.

What is the difference between TTL, HTL and open-collector outputs?

Before you wire anything, ask what is an encoder sending: 5 V signals or 24 V signals? The output driver sets the signal voltage and how well it resists noise. You will see three common types:

  • TTL / RS-422 line driver: Outputs a constant 5 V signal level, no matter the supply voltage. Each channel has a complement (A and A-not), so the receiver can reject noise. This type gives the highest speed and very good noise immunity.
  • HTL push-pull: The output level follows the supply voltage, typically 24 V logic. Push-pull actively drives the line both high and low. Some HTL encoders also send differential pairs for better noise immunity.
  • Open collector (NPN or PNP): The output switches the line to common (NPN) or to supply (PNP). The input needs a pull-up or pull-down resistor. It is simple, but it handles noise and long cables less well.

Some programmable encoders, such as those POSITAL describes, let you set the output driver to HTL or TTL. You can also set the PPR and the pulse direction (A before B or B before A).

Square-wave vs sinusoidal outputs

Most industrial incremental encoders output square waves. Some high-resolution encoders output sine and cosine signals instead, often at 1 Vpp (one volt peak to peak). The drive then interpolates between the waves to get very fine position. To use them, your drive needs a matching sin/cos input.

Match the input and count fast enough

Your receiving input must match the driver type. For example, a 5 V TTL signal may not register on a 24 V HTL input. Also, a 24 V HTL signal can damage an input built only for 5 V.

Next, check counting speed. Missed counts at high speed often come from a PLC scan time that is too slow for the pulse rate. The usual fix is a dedicated high-speed counter module, or a 5 V TTL line-driver output into a matching input. Because this advice comes from general guidance, confirm the limits in your PLC and encoder datasheets.

Absolute rotary encoders

What are absolute rotary encoders? In short, they give a unique value for every shaft position. Because each position has its own code, the position is correct at power-up with no homing. So for robot joints and precision rotary axes, what is an encoder often means an absolute one.

What is the difference between a singleturn and a multiturn absolute encoder?

Here, what is an encoder able to track depends on how many turns it counts. A singleturn encoder gives unique values within one revolution. After 360 degrees, the code repeats. That suits applications where the shaft never rotates more than 360 degrees.

A multiturn encoder also counts full revolutions. Its code combines the position on the disc with the number of turns. Makers count turns in different ways, such as a gear train, a battery or a Wiegand wire (a wire that makes a pulse from a magnetic change, even with no power). By contrast, a singleturn encoder never needs a battery.

Resolution in bits

Makers quote absolute resolution in bits. Each added bit doubles the number of positions, so a 13-bit singleturn encoder resolves 8,192 positions per turn. Catalog examples show the range you will meet:

  • ifm lists singleturn models at 13-bit and multiturn models at 24-, 25- and 31-bit.
  • Hohner lists singleturn resolution up to 21 bits and multiturn up to 30 bits.
  • A Baumer distributor lists one model at 13-bit singleturn plus 16-bit multiturn, with EtherCAT.

These are examples, not standard values. Always check the datasheet for your exact model.

Which interfaces do absolute encoders use (SSI, BiSS, fieldbus)?

In a networked plant, what is an encoder sending is a data message, not a pulse train. An absolute encoder must send its position in the same “language” as your control system. Common options include:

  • SSI (synchronous serial interface): fast serial position data, with the controller supplying the clock.
  • BiSS C: a serial, open and bidirectional interface for servo motors and precision axes that need speed and diagnostics.
  • Fieldbus and industrial Ethernet: CANopen, PROFINET, Profibus, EtherCAT, EtherNet/IP and DeviceNet.
  • IO-Link: a simple point-to-point link to an IO-Link master.
  • Parallel and analog outputs: offered on some models.

Hohner and Baumer catalogs both list many of these options. As a result, one encoder family may come in several interface versions.

Make sure the controller speaks the same protocol

Next, confirm your controller or drive supports the same protocol and version. For example, the Beckhoff EL5042 EtherCAT terminal is a BiSS C master that connects BiSS C or SSI encoders directly. It supports singleturn and multiturn types, supplies 5 V or optionally 9 V, and passes position values up to 64 bits.

Also, some absolute encoders provide incremental A and B signals alongside the absolute data. A drive can use those pulses for speed feedback while the absolute value sets the starting position.

How do I recover a multiturn absolute encoder after a battery or power loss?

This applies to battery-backed multiturn encoders. The battery keeps the turn count alive while main power is off. If the battery dies or you disconnect it, the encoder loses its turn count. The drive then raises a battery or multiturn fault. Gear-train and Wiegand types keep the count without a battery, so this fault does not apply to them.

To recover, follow these steps:

  1. Replace the battery. If the manual allows, change it with control power on, so the count survives.
  2. Clear the fault in the drive or controller.
  3. Move the axis to a known reference point, such as a home mark or hard stop.
  4. Set the zero or preset there, using the drive’s set-position command, a fieldbus preset command, or the encoder’s own preset input if it has one.
  5. Save the new value, then check the position at a second known point.

Each maker uses different commands, so follow the encoder and drive manuals. Also, tell the machine owner, because a changed zero can shift every stored position.

Linear encoders: the straight-line position encoder

Not every answer to what is an encoder involves a shaft. A linear encoder measures straight-line position. A fixed scale carries the position reference, and a readhead moves along it and reads the data. In some machines, the scale moves and the readhead stays still.

Navy linear stage with an orange sensor head riding a silver rail, illustrating a linear position encoder setup.
The lit block sits on a carriage, with cables trailing back toward the housing.

What is a linear encoder and how does it work?

The readhead senses the scale pattern as it passes. Then its electronics turn that pattern into position. Most linear encoders output quadrature square waves, like a rotary incremental encoder, and the edge spacing sets the resolution. Also, interpolation subdivides the scale period to give finer resolution.

Technologies include optical, magnetic, inductive and capacitive. For example, magnetic types use Hall-effect sensors to detect field changes from a magnetized scale. Overall accuracy combines the scale’s own accuracy with readhead error, so both parts matter.

Should I use an optical or a magnetic linear encoder?

Optical linear encoders lead the high-resolution market. However, they need built-in protection from dust and vibration. Contamination also hurts high-resolution encoders more, because their finer patterns are more sensitive to the same amount of dirt.

Magnetic linear encoders use coarser scale periods, typically a few hundred micrometers to several millimeters. Even so, resolution around one micrometer is normal. They also handle shock, vibration, temperature and contaminants better than optical types.

FeatureOptical linear encoderMagnetic linear encoder
SensingLight reading a fine scaleField changes from a magnetized scale
ResolutionHighest; leads the high-resolution marketCoarser scale period; about 1 micrometer is normal
Dirt and contaminantsSensitive; needs built-in protectionHandles contaminants well
Shock, vibration, temperatureNeeds protectionHigher limits
Typical fitClean, high-precision axesDirty or rough environments

As a rule of thumb, look at optical for clean, high-precision work and magnetic for dirty or rough settings. Then confirm the choice against the datasheet.

When to use a linear encoder instead of a rotary one

On a long axis, what is an encoder measuring matters: the motor shaft or the load itself. A rotary encoder on the motor only sees the motor shaft. In contrast, a linear encoder measures the axis directly, so its feedback includes errors from the ballscrew, belt or gears. As a result, the controller can correct for backlash and wear that a motor encoder never sees. That is why servo-controlled motion systems use linear encoders for accurate, high-speed movement.

Encoders for motors: the shaft encoder on your drive system

For many techs, what is an encoder really means “what is that device on the back of my motor?” Encoders for motors give the drive the speed and position feedback it needs for tight control. This section covers where they mount, how they attach and what the drive must know.

What encoders are used for motors, and where are they mounted?

Servo motors typically use high-resolution incremental or absolute encoders, and many have the encoder built in. On induction motors run by a VFD, the encoder often bolts to the non-drive end, opposite the load. In other cases, it sits on a driven shaft or directly on the machine axis.

A VFD that uses encoder feedback needs a matching encoder input, often an option card. That input must match the encoder’s signal type, resolution and protocol.

Shaft and mounting styles

  • Solid shaft: the encoder has its own shaft and connects through a flexible coupling.
  • Hollow shaft: the encoder slides over the motor shaft and clamps to it, with a tether or arm to stop the body from turning.
  • Blind hollow shaft: like a hollow shaft, but closed at one end, so the shaft enters from one side only.
  • Bearingless kit: a separate disc or magnet and sensor that use the motor’s own bearings.
  • Mounting styles: servo, flange, face and foot mounts attach solid-shaft encoders to the machine.

For example, Baumer’s MAGRES EAM580, a 58 mm magnetic absolute encoder, comes in solid shaft, blind hollow shaft and bearingless kit versions. Baumer lists its angular accuracy at up to plus or minus 0.15 degrees.

What the drive needs to know

In other words, ask what is an encoder sending, at what voltage, and in what format. Before you connect it to a drive, gather these details from the nameplate and manuals:

  • Signal type, such as TTL, HTL, sin/cos or a serial protocol
  • Resolution in PPR or bits
  • Encoder supply voltage
  • Protocol and interface version, if absolute
  • Counting direction

Some servo encoders also send commutation, or pole-position, signals. These tell the drive where the rotor magnets sit at startup, so it can energize the right windings. If your servo uses them, the replacement must provide them in the same alignment.

So always check the motor and drive manuals for the exact feedback type. If you work with one common brand, our post on Dynapar encoders covers that line in more detail.

How to choose a position encoder or replacement

Choosing well starts with a plain question: what is an encoder expected to do on this machine? Once you know the job, the specs follow. Work through the steps below in order.

Isometric illustration of several navy and white rotary encoders with shafts, a flanged motor, a coupling, a caliper, and a
Mounting styles vary: square flanges on some units, pedestal bases on others.

How do I choose the right encoder?

  1. Pick rotary or linear, based on the motion you need to measure.
  2. Decide on incremental or absolute, based on whether you can home after power loss.
  3. For absolute, choose singleturn or multiturn.
  4. Set the resolution in PPR or bits.
  5. Match the output or interface to what your controller accepts.
  6. Confirm the supply voltage.
  7. Match the shaft or mounting style and size.
  8. Check the environment: IP rating (dust and water protection), shock, vibration and temperature.
  9. Select the connector or cable type and length.

Check maximum speed against maximum frequency

Next, make sure the encoder can keep up with the shaft. Output frequency equals revolutions per second times PPR. For example, 3,000 rpm is 50 revolutions per second, so a 1,024 PPR encoder outputs about 51,200 pulses per second (51.2 kHz). Then verify that this stays below the encoder’s maximum frequency and the input’s counting limit.

How do I choose PPR or bit resolution for a required accuracy?

Start with the smallest movement you must detect. Then divide the travel per shaft turn by that movement. This gives the counts you need per turn. For example, a ballscrew that moves 10 mm per turn, with a 0.01 mm target, needs 1,000 counts per turn. With four-times quadrature decoding, a 250 PPR encoder gives that.

In practice, pick a resolution finer than your target, because resolution is not accuracy. Accuracy also depends on the encoder’s own error, the coupling and the mechanics. For absolute encoders, each bit doubles the positions, so a 12-bit encoder gives 4,096 positions per turn.

Then check the speed limits. Higher PPR raises the pulse rate at the same rpm. Find the encoder’s maximum output frequency and the PLC high-speed counter’s maximum input frequency in their datasheets. Also see whether the counter quotes its limit in pulses or in counts, since four-times decoding raises the count rate.

Match the interface to the controller

The interface often drives the whole choice. Use HTL or TTL for pulse inputs, SSI or BiSS for fast serial position data, and CANopen, PROFINET or EtherCAT for networks. Otherwise, you may buy a fine encoder that your controller cannot read.

What about safety-rated, hazardous-area, IP and temperature needs?

A standard encoder is not a safety device. For a safety function, such as safe speed monitoring, you need an encoder the maker certifies for that use. Ask for the safety manual and certificate, and check that the rating fits your safety function and your drive’s safety input. Do not assume a standard encoder will do.

For explosive atmospheres, use only an encoder marked for hazardous areas, such as ATEX or IECEx. Read the marking and match it to your zone, gas or dust group and temperature class. Never swap in an unmarked unit.

For ordinary plants, read the datasheet ratings. In an IP rating, the first digit covers dust and the second covers water, so IP67 suits washdown better than IP54. Also check the operating temperature range, plus the shock and vibration limits against your machine.

How do I replace a servo motor encoder and re-align it?

First, record the nameplate, the wiring and the shaft position. Then fit an encoder with the same type, resolution, protocol and mounting. Many serial encoders also store motor data, so use the part the motor maker specifies.

After fitting, the drive must learn where the rotor magnets sit. Depending on the motor, you either set a mechanical alignment with the maker’s fixture or run the drive’s commutation or phasing routine. Some drives store the result as a zero offset. Follow the motor and drive manuals exactly, because a wrong offset can cause rough motion, high current or reverse runaway. Test at low speed with the load safe.

Replacement checklist

On a replacement, the key question is what is an encoder already doing on this machine, so you can match it. Collect these details before you order:

  • Nameplate data and full part number
  • Shaft size and type (solid, hollow or blind hollow)
  • Mounting pattern and flange style
  • Output type (TTL, HTL, open collector, serial or fieldbus)
  • PPR or bit resolution
  • Supply voltage
  • Connector type and pinout

Also, take photos of the nameplate and wiring before removal. That record makes a like-for-like replacement much easier.

Installing and wiring a shaft encoder

Good installation matters as much as knowing what is an encoder and which model to buy. Many encoder problems start with mechanical stress or electrical noise, not with the encoder itself. So follow the encoder and drive manuals closely.

How do I mount an encoder correctly?

  • Use a flexible coupling. The Dynapar installation manual says not to use a rigid coupling, because the coupling must absorb misalignment between shafts.
  • Avoid couplings with backlash or modulation (cyclic speed variation), since both cause signal problems.
  • Keep the encoder and machine shafts as concentric as possible.
  • On a hollow-shaft encoder, line up the shaft receptacle as closely as possible with the motor shaft axis.
  • Lock the coupling screws and tighten them to the torque in your datasheet. One supplier cites 0.6 Nm as typical, but your value may differ.
  • Respect the shaft load limits, and never hammer a coupling or encoder onto a shaft.
  • Do not take the encoder apart. Dynapar warns against disassembly.

How do I wire an encoder correctly?

Even a perfect answer to what is an encoder means little if noise corrupts the signal. Use twisted pairs for differential signals, so A and A-not share one pair. Next, use shielded cable and terminate the shield exactly as the manual says. In addition, keep encoder cable away from motor and VFD power cables, and cross them at a right angle where you must.

Sources give different minimum spacings from VFD output cables, such as 150 mm or 200 mm. Because no single figure applies everywhere, use the spacing in your encoder and drive manuals.

How long can an encoder cable be?

No single length fits every encoder. The limit depends on the output type, the pulse frequency, the cable and the receiver. As a rule, TTL/RS-422 differential outputs reach farther than open collector outputs, which handle long cables least well. HTL sits in between, and its higher voltage helps with noise. Also, the allowed length drops as frequency rises.

So use the maximum length in the encoder datasheet for your output type and frequency. Do not rely on a general figure.

When do I need 120 ohm termination?

Differential TTL/RS-422 lines on long cables or at high frequency can reflect signals. A 120 ohm resistor across each signal pair at the receiver end reduces that. However, many drive inputs already include termination. Check the drive manual first, because adding a second resistor can overload the line driver.

How do I handle supply voltage drop on long runs?

Cable resistance drops voltage between the drive and the encoder. A 5 V encoder is the most sensitive, because it tolerates only a narrow supply range. First, measure the supply at the encoder connector with the encoder running. Then, if it falls below the datasheet minimum, take these steps:

  • Use a larger wire gauge for supply and common.
  • Pair several conductors in parallel for the supply and common.
  • Use sense lines, if your encoder and drive support them.
  • Choose an encoder with a wider supply range, such as one that runs on a higher voltage.

Shield grounding: follow your manual

Shield grounding is an area where sources disagree. One source says to ground the shield at the receiving end to stop leakage current between two ground points. Another warns that grounding both ends can create a ground loop that injects noise. Meanwhile, the Dynapar manual hosted by AutomationDirect gives its own steps for sites with high ground potential differences. So follow the manual for your specific encoder and drive.

Protect bearings on VFD-driven motors

On VFD-driven motors, common-mode voltage and fast switching edges (high dV/dt) can push current through the bearings into the shaft. That current can couple into a shaft-mounted encoder or resolver. To prevent this, fit a shaft grounding ring or an insulated bearing on the non-drive end.

Set the drive or controller parameters

After wiring, set the PPR or resolution, the direction (A before B or B before A) and the protocol. Then jog the motor at low speed and confirm the count direction and scaling. Only after that check should you run at full speed.

How do I configure a VFD or servo drive for encoder feedback?

Menus differ by brand, so use your drive’s manual for exact parameter names. The steps are similar, though:

  1. Remove power, wait for the bus to discharge, then fit the encoder option card if the drive needs one.
  2. Wire the encoder to the card, using the pinout in the manual.
  3. Set the encoder type, such as TTL, HTL, sin/cos or serial protocol.
  4. Enter the PPR or resolution, and the supply voltage if the card sets it.
  5. Set the direction, and turn on the speed or position feedback mode.
  6. Set the scaling to your units, such as rpm or millimeters.
  7. Jog at low speed and compare the drive’s speed reading with the real speed.

Common encoder problems and mistakes

Troubleshooting shows the real-world side of what is an encoder. Most faults fall into three groups: electrical noise, mechanical problems and mismatched settings. Knowing which group you face saves time.

Illustration of a cracked orange motor mount, a multimeter, and a screwdriver beside control cabinets for a rotary encoder.
Cable bundles run from the drive units, so check shielding and routing first.

Why does my encoder lose signal or give errors on a VFD-driven motor?

Electrical noise is the usual suspect. One common pattern is feedback loss on a servo drive, with CRC errors (data check errors) that rise with motor speed. This can come from a shield that is not terminated 360 degrees around the cable, or from a feedback cable run parallel to the VFD cable. Rerouting the cable or using an EMC (electromagnetic compatibility) cable gland, which clamps the shield all the way around, often fixes it.

Also, long motor cables over about 25 m and badly routed feedback cables pick up common-mode noise from VFD output stages. Some guidance adds VFD-rated cable and ferrite beads on feedback cable entries. In these cases, what is an encoder showing you is a wiring problem, not a failed part. Because these tips come from general guidance, confirm them with your drive maker’s instructions.

Fault codes differ by brand and model, so look up the exact code in your drive’s fault list. Still, most feedback faults fall into a few groups:

  • Signal loss or wire break: the drive sees no valid A, B or serial signal. Suspect the cable, the connector, the supply or a dead encoder.
  • CRC or communication error: serial data arrives corrupted. Suspect noise, a poor shield or a loose connector.
  • Overspeed: the feedback shows a speed above the limit. Suspect a wrong PPR setting, a real runaway or noise that adds false counts.
  • Battery low: a multiturn encoder’s backup battery is weak or gone. Replace it, then recover the turn count as described earlier.

How do I test an encoder?

First, lock out the drive and check the cable and connector. Then power the encoder and measure the supply voltage at the encoder connector, not at the drive. It should sit inside the range on the datasheet. Also confirm the common wire is solid.

Next, turn the shaft slowly, by hand if you safely can, and check the signals:

  1. With a meter, watch A and B against common. Each should switch between low and high as the shaft turns. Z should switch once per turn.
  2. With a scope, look for clean square waves on A and B, about 90 degrees apart.
  3. Compare levels with the output type: about 5 V for TTL, and near supply level for HTL.
  4. On differential outputs, check that A and A-not mirror each other.
  5. Reverse the direction and confirm the A and B lead swaps.

Absolute serial encoders send data, so a meter cannot read them. Instead, use the drive’s diagnostics or the maker’s software to read the position and any alarms.

What are the most common mistakes with encoders?

  • Using a rigid coupling, or leaving the shafts misaligned
  • Choosing a coupling with backlash or modulation
  • Putting too much load on the encoder shaft
  • Connecting a TTL output to an HTL input, or the reverse
  • Setting the PPR wrongly, or entering PPR where the drive wants counts
  • Using a singleturn encoder where the shaft must be tracked over several turns
  • Feeding fast pulses into a slow PLC input, which causes missed counts
  • Letting dirt or oil reach an optical encoder or linear scale
  • Opening the encoder to try to fix it

Contamination deserves extra care, because higher-resolution optical encoders and scales are more sensitive to the same level of dirt. Also, for missed counts at high speed, move to a high-speed counter input or a line-driver output.

When to repair or replace an encoder, and where to get one

The last part of what is an encoder, for most techs, is what to do when one fails. Work from the simple checks to the encoder itself. Then decide whether to repair or replace.

Quick triage order

This order confirms what is an encoder receiving (power) and sending (signal) before you blame the part.

  1. Inspect the cable and connector for damage, loose pins and corrosion.
  2. Check the shield termination and grounding against the manual.
  3. Look at the coupling for slip, wear and misalignment.
  4. Measure the encoder supply voltage at the encoder end.
  5. Review the drive or controller parameters.
  6. Only then, suspect the encoder itself.

When should an encoder be repaired or replaced?

Consider repair or replacement when the output is missing or erratic after the wiring and mechanical checks pass. Damaged bearings or a damaged shaft are also clear signs. So is a damaged disc or scale. Because the manufacturer warns against disassembly, send the unit to a qualified repair shop rather than opening it. Our post on Encoder Sales and Repair Services explains how our service works.

Where do I get an encoder, and what is Encoder Products Company?

You can get an encoder from the machine or motor OEM, from an encoder maker, or from an industrial distributor. The OEM route helps when the encoder is built into a servo motor. In other cases, a distributor can cross-reference the nameplate data.

Note that “Encoder Products Company” is a manufacturer’s brand name, not a generic term. For example, GlobalSpec lists Encoder Products Company as the maker of the Model A58HB absolute encoder, with CANopen or SSI and magnetic sensing. So a search for encoder products company points to that maker, not to a product category.

Where to find manuals, catalogs and specs

  • Encoder.com’s rotary encoder guide for basics on rotary types
  • The Dynapar encoder installation guidelines, hosted by AutomationDirect, for mounting and wiring
  • The Baumer, Hohner and ifm absolute encoder catalogs for resolutions and interfaces
  • POSITAL’s incremental encoder interface page for programmable outputs
  • Beckhoff’s EL5042 page for connecting BiSS C and SSI encoders to EtherCAT
  • Delta Motion’s quadrature encoder fundamentals for A, B and index signals

Also, for fieldbus details, use the interface specifications from the group behind each protocol. Your drive or PLC maker’s manual library and setup software are where you set encoder parameters.

What does an encoder cost?

We do not list prices here, because cost varies widely by model. The main cost drivers are type (incremental or absolute), resolution, interface, environmental rating and shaft style. For example, a multiturn fieldbus encoder with a high IP rating usually costs more than a basic incremental unit. For a firm figure, request a quote with the full part number.

Frequently asked questions

What does an encoder do?

An encoder senses the position, speed and direction of a rotating shaft. Linear types do the same for a moving axis. It turns that motion into an electrical signal, and a counter, drive or PLC uses the signal as feedback.

What is an encoder?

Put simply, the answer to what is an encoder is an electromechanical sensor. It converts shaft rotation or linear movement into signals a controller can read. The main output types are incremental, which reports movement, and absolute, which reports a unique position.

What is the difference between an incremental and an absolute encoder?

An incremental encoder outputs pulses that show movement and direction. It needs homing after a power loss. In contrast, an absolute encoder outputs a unique code for each position, so the controller knows the position at power-up.

What are absolute rotary encoders, and what is the difference between singleturn and multiturn?

Absolute rotary encoders give a unique value for each shaft position. Singleturn encoders do so within one revolution, while multiturn encoders also count revolutions. They send position over interfaces such as SSI, BiSS, CANopen, PROFINET or EtherCAT.

What is a linear encoder?

A linear encoder measures straight-line position using a scale and a readhead. Optical types give the highest resolution. Magnetic types, however, handle contamination, shock and vibration better.

Which encoder do motors use?

Servo motors typically use high-resolution incremental or absolute encoders. The drive’s input must match the encoder’s signal type, resolution and protocol. So check the motor and drive manuals for the exact feedback type.

Now you have the full picture of what is an encoder, from the basic definition to A, B and Z signals, absolute interfaces and linear scales. Match the encoder to the job, the controller input and the environment, and install it with care. Most feedback problems trace back to wiring, coupling or settings, so check those first. If you need help choosing, replacing or repairing an encoder, contact Precision Electric for advice, a quote or a repair evaluation.