Instrumentation · Lesson 5 of 10
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.
| Incremental | Absolute | |
|---|---|---|
| Outputs | A, B and Z pulses | A number (code) for each position in the turn |
| After a power cut | Forgets: needs homing | Knows its position straight away |
| Connection | Counter card / HSC | SSI, BiSS, Profinet, EtherCAT, CANopen… |
| Price | Cheaper | More expensive |
| Examples | Motor speed, cut-to-length machine | Hoist, dam gate, robot, press, crane telescope |
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.
| Position | Binary | Gray |
|---|---|---|
| 6 | 0110 | 0101 |
| 7 | 0111 | 0100 |
| 8 | 1000 | 1100 |
| 9 | 1001 | 1101 |
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.
| Interface | The idea |
|---|---|
| SSI | The 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-C | Like SSI but faster, with a check (CRC) and diagnostics. Common on servos. |
| Profinet / EtherCAT / EtherNet/IP | The encoder is a device on the network with an address, configured with a GSDML or ESI file. It sends position, speed and diagnostics. |
| CANopen / Profibus | Older fieldbus networks, common on cranes and mobile machines. |
| Resolver | Not 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. |
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.
| Symptom | Likely cause | What to do |
|---|---|---|
| Extra counts when the VFD runs | Noise, shield, cables run together | Ground the shield, separate the cables, line driver |
| Counts the wrong way | A and B swapped | Swap them or reverse with the parameter |
| Half the count / no direction | A channel is open | Measure each channel with a scope or multimeter |
| Lost at high speed only | Frequency above the card or encoder limit | Calculate f, faster card, less filtering |
| Slow position drift | Coupling or measuring wheel slipping | Pen mark, tighten, replace the wheel |
| Noise and a failed bearing | Rigid mounting / misalignment | Flexible coupling, torque arm |
| The absolute reading jumps around | Wrong Gray/binary, wrong SSI bit count | Check the parameters against the datasheet |
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.