Instrumentation · Lesson 5 of 10

Encoders 2: absolute, mounting and faults

An incremental encoder counts, but if the power goes off it forgets where it is. An absolute encoder knows its position at any moment without counting. Here you will understand the Gray code inside it, the protocols, how to mount an encoder properly, and how to find its faults like a sharp maintenance technician.

1Incremental or absolute?

IncrementalAbsolute
OutputsA, B and Z pulsesA number (code) for each position in the turn
After a power cutForgets: needs homingKnows its position straight away
ConnectionCounter card / HSCSSI, BiSS, Profinet, EtherCAT, CANopen…
PriceCheaperMore expensive
ExamplesMotor speed, cut-to-length machineHoist, dam gate, robot, press, crane telescope
Resolution in bits: a 12-bit single-turn encoder = 2¹² = 4096 positions per turn ⇒ each step 360 ÷ 4096 ≈ 0.088°. A 25-bit multi-turn is usually 13 bits for position (8192) + 12 bits for turns (4096 turns).

2Gray code: why only one bit?

An absolute disc has several rings, one bit per ring, with a sensor under each ring. The reading at any position gives a number. The problem is the moment of transition: the sensors never switch at exactly the same instant. In plain binary, going from 7 (0111) to 8 (1000) changes 4 bits, so for a split second you could read 15 or 0 or any number! And the machine goes crazy.

The fix: Gray code is arranged so that between any two neighbouring positions only one bit changes. So the worst that can happen is reading the old or the new position, never a strange number.

Gray = Bin XOR (Bin >> 1)

4-bit absolute disc

PositionBinaryGray
601100101
701110100
810001100
910011101

The encoder or the card converts Gray to binary before sending it on, and with SSI you can choose in the parameters to receive it as Gray or binary. Choose wrong and the reading jumps around strangely.

3Protocols and the resolver

InterfaceThe idea
SSIThe card sends clock pulses and the encoder answers with the bits one after another (RS-422). Simple and common. You must set the number of bits and Gray/binary.
BiSS-CLike SSI but faster, with a check (CRC) and diagnostics. Common on servos.
Profinet / EtherCAT / EtherNet/IPThe encoder is a device on the network with an address, configured with a GSDML or ESI file. It sends position, speed and diagnostics.
CANopen / ProfibusOlder fieldbus networks, common on cranes and mobile machines.
ResolverNot a digital encoder: a rotating transformer that outputs two signals, sin and cos. No electronics inside, so it withstands severe heat and vibration. Common on older servo motors and in harsh areas.

4Homing with an incremental encoder

With an incremental encoder, the machine does a homing run at start-up: it moves slowly until it hits a reference switch, then carries on to the first Z pulse after it and zeroes the counter there. Why both? The switch is only accurate to millimetres and depends on speed, while Z is very accurate but repeats every turn, so the switch says "we are in this turn" and Z marks the exact point.

5Mechanical mounting

6Cable, shield and noise

7Fault table

SymptomLikely causeWhat to do
Extra counts when the VFD runsNoise, shield, cables run togetherGround the shield, separate the cables, line driver
Counts the wrong wayA and B swappedSwap them or reverse with the parameter
Half the count / no directionA channel is openMeasure each channel with a scope or multimeter
Lost at high speed onlyFrequency above the card or encoder limitCalculate f, faster card, less filtering
Slow position driftCoupling or measuring wheel slippingPen mark, tighten, replace the wheel
Noise and a failed bearingRigid mounting / misalignmentFlexible coupling, torque arm
The absolute reading jumps aroundWrong Gray/binary, wrong SSI bit countCheck the parameters against the datasheet

Game: find the encoder fault

Safety: the encoder is usually on a running motor. Before undoing the coupling or touching the shaft: lock out the motor and make sure it cannot turn. On a hoist, a suspended load can turn the motor even when it is switched off: secure the load first.

?Lesson quiz

Get at least 5 of 6 right to mark the lesson as done.

Shield grounding and cable length rules vary between makers; follow the installation manual of the encoder and the drive. Your progress is saved on this device only.
© 2026 LearnElectricals. All rights reserved. This site is not affiliated with any of the companies mentioned (such as Siemens, Allen-Bradley, Delta, Schneider and others); names and trademarks belong to their owners and are used only to explain the devices.