AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

When an absolute encoder reading can suddenly change or corrupt

Sensors, encoders and machine vision on the machine Published 9 min read By AutomateDirectUSA engineering team

Short answer

Random corruption of an absolute encoder reading is close to impossible on a modern digital interface: EnDat 2.2 telegrams carry a CRC, and a failed check rejects the telegram. The sudden changes that do happen are mechanical, such as loose encoder mounting, coupling slip or exceeded axial load, or a scaling and rollover fault in your own conversion. Convert each jump into machine units, divide by the sample interval, and compare with the fastest motion the axis can physically produce.

On this page
  1. Can an absolute encoder value really corrupt itself?
  2. What does the CRC checksum on a digital absolute interface actually catch?
  3. How do I tell a real position jump from a corrupt one?
  4. What makes an absolute encoder reading change on a healthy system?
  5. How much axial load can a motor's encoder take?
  6. What should an encoder plausibility check look like?
  7. What do I check first after a sudden encoder change?
  8. How likely is sudden encoder corruption in practice?
  9. Questions asked

A sudden change in an absolute encoder reading almost never means corrupted bits. On a fully digital interface such as EnDat 2.2, every position telegram carries a checksum, a bad frame is rejected at the drive and logged, and what reaches your logic has already passed integrity checking. The changes that actually happen are mechanical or mathematical: a mounting that slipped, a coupling that moved, an axial load the motor was never rated for, or a rollover and scaling mistake in your own conversion. The test that separates them is one calculation: convert the change between two samples into machine units, divide by the sample interval, and compare with the fastest motion the axis can physically produce. A jump no sample interval can explain is a fault in the data path or your conversion; a shift physics could produce, with a clean checksum, is the machine.

Can an absolute encoder value really corrupt itself? #

For a modern digital absolute interface, essentially never on its own: every position telegram carries a checksum, so corrupted data is rejected at the drive rather than delivered to your logic as a plausible-looking position.

A raw position register can change for four different reasons, and only one of them is corruption in the everyday sense. Transmission corruption between encoder and drive is real, but on a digital interface it becomes a rejected telegram and a logged diagnostic instead of a wrong number. Encoder electronics failing outright shows up as a drive fault or missing telegrams, not as a quiet, believable wrong value.

The other two causes live on your side of the interface. A conversion fault — turn rollover, scaling, unit mixing, a signed and unsigned mismatch — produces a spectacular jump out of perfectly good raw data. And the machine itself can move the reference: a slipped encoder mount or a shifted coupling changes the position while every message stays valid. The first two belong to the drive and its diagnostics, the third to your code, the fourth to maintenance — and the rest of this article gives you the test that sorts any event into one of those bins.

What does the CRC checksum on a digital absolute interface actually catch? #

It checks the integrity of each digital telegram, including the position value, between encoder and drive; a failed check rejects that telegram and raises a drive diagnostic, so transmission corruption never reaches your application as a position number.

On an EnDat 2.2 interface the position travels as fully digital telegrams, and each telegram carries a CRC checksum computed over the position value and any additional data. The drive verifies that checksum before it uses the position. If it fails, the drive rejects the telegram, raises its encoder communication diagnostic and typically keeps a count of the failures, often broken down by data field, in its diagnostic objects — your drive manual names the exact locations.

Two practical consequences follow. First, corrupted bits do not reach your application as a plausible position, so logic that re-checks the raw value duplicates a fraction of a check that already happened closer to the source. Second, the diagnostic is worth preserving: before you acknowledge or reset anything after a suspicious event, record the encoder status and the failure counters from the same time window, because they are the evidence that separates a wiring problem from everything else.

How do I tell a real position jump from a corrupt one? #

Convert the jump into machine units, divide by the sample interval, and compare with the fastest motion the axis can physically produce; in the worked example below the physical ceiling is 0.5 mm per sample and the monitor limit is 0.8 mm.

Take the position change between two consecutive samples, undo any legitimate turn rollover, apply the machine scaling, and divide by the sample interval. The result is an apparent velocity. Maximum speed and acceleration tell you the largest apparent velocity real motion can produce, and anything beyond it is not motion — it is a conversion fault or a data fault, and the drive diagnostics tell you which.

Worked example with illustrative inputs — an absolute encoder with 22-bit resolution on a ball screw with a 10 mm lead, motor coupled 1:1, 3,000 rpm maximum, 1 ms position sample time, 1 g maximum acceleration:

Illustrative axis inputs (an example, not a rating):
ball screw lead = 10 mm per revolution, motor coupled 1:1 to the screw
feedback = absolute encoder with 22-bit resolution,
           2^22 = 4,194,304 counts per shaft revolution
maximum motor speed = 3,000 rpm
position sample interval = 1 ms
maximum acceleration = 1 g = 9,810 mm/s^2

counts per millimetre = 4,194,304 / 10 mm = 419,430 counts/mm
maximum axis speed = 3,000 rpm / 60 x 10 mm = 500 mm/s
maximum displacement between samples = 500 mm/s x 0.001 s = 0.5 mm
acceleration allowance = 0.5 x 9,810 mm/s^2 x (0.001 s)^2 = 0.005 mm
physical ceiling = 0.505 mm; monitor limit = 1.5 x 0.505 rounded up = 0.8 mm

corruption check, example jump of 100 mm in one sample:
apparent velocity = 100 mm / 0.001 s = 100,000 mm/s = 100 m/s
100,000 / 500 = 200 times the physical maximum, so this is not motion
in counts: 100 mm x 419,430 counts/mm = about 41,943,000 counts,
which is 10 full revolutions, while real motion allows 0.05 revolutions per sample

With those inputs the axis can cover at most 0.5 mm between two samples, so a change of 0.8 mm or more in one sample is a fault, not motion — and a jump that scales to 100 m/s is 200 times past anything the machine can do. The table sorts the three outcomes you will actually see.

Drive diagnostic Position behavior Meaning First action
Checksum or telegram error logged Telegram rejected, axis faults or holds Feedback path: cable, connector, grounding, interface Read and save the diagnostics before any reset
Clean status Jump far larger than the per-sample ceiling allows Conversion: rollover, scaling, units, task synchronization Compare raw and scaled position from the same window
Clean status Shift the physics allows, or drift while commanded stationary Mechanical: slipped mount, coupling movement, overload Safe stop, then inspect mounting, coupling and load history

What makes an absolute encoder reading change on a healthy system? #

On a healthy interface the realistic cause is mechanical: encoder mounting that has slipped, a coupling that has moved, or shaft loads beyond the motor's rating stressing the feedback assembly, and every one of those returns a valid checksum.

A valid checksum proves the message is intact, not that the encoder is still aligned with the shaft. When the reading changes and the drive stays clean, work through the usual suspects from cheapest to confirm toward most expensive. Encoder mounting first: a stator coupling or clamping screw that loosened under vibration lets the feedback rotate relative to the shaft, and the position steps by exactly that slip — and when the encoder itself gets loose, the reading is the smallest of your problems, because the same loosening is attacking the bearings and the driven mechanism. Next, coupling or keyway movement between motor and load, which shifts the mechanical reference; this is the same mechanism that moves home position after coupling service, covered in Why ballscrew coupling repair shifts absolute encoder home position. Finally, shaft overload: axial load beyond the rating, side pull from a misaligned belt, or a bearing problem.

Manufacturer functional-safety documentation for EnDat 2.2 feedback makes this an installation requirement, not a suggestion: mount the feedback so that slippage and shaft breakage cannot occur. A mechanically displaced encoder returns perfect telegrams with wrong numbers — it is never the checksum that catches it.

How much axial load can a motor's encoder take? #

There is no single number: the permissible axial and radial shaft loads are stated in the datasheet of your exact motor frame and feedback option, and the decision rule is to keep the calculated or measured axial load below that figure with margin.

One family's figure does not transfer to another size, so the rated value comes from the datasheet of the part you actually installed. Calculate or measure the peak axial load on the motor shaft — from the screw, the belt preload, the mass being lifted or pressed, and any clamp or crash event your cycle contains — and keep it under the datasheet value with margin.

The commitment runs both ways: if you cannot produce that datasheet number for your axis, you cannot claim the encoder is protected against load-driven slip, and the load question outranks any software monitoring. Watch the mounting side with the same discipline — the clamping torque from the motor's installation documentation, and sustained vibration, which is what turns a correct installation into a loose one over months of duty.

What should an encoder plausibility check look like? #

A plausibility monitor in your controller: convert each change between consecutive samples into machine units, handle turn rollover first, and alarm when the displacement exceeds the per-sample limit you derived from speed, acceleration and the measured cycle time.

Build it in machine units, not raw counts, and treat it as a second layer behind the drive's supervision. Handle rollover before subtracting: a single-turn absolute wraps once per shaft revolution, and on a linear axis that wrap arrives at exactly the wrong moment unless you deal with it explicitly — the failure mode is its own subject in Why a Single-Turn Absolute Encoder Loses Position on a Linear Axis.

Keep the raw value, the scaled value and the drive validity status as separate signals, so a conversion mistake cannot masquerade as an encoder failure. Alarm when the per-sample change exceeds the limit derived by the worked example above — ceiling plus acceleration allowance times your chosen margin — and make the response a controlled stop, never a silent value correction. Gate motion start on the drive's encoder-valid status, and log every event with raw position, scaled position, command position, drive status and the actual cycle time, because those five values are the entire diagnosis later.

What do I check first after a sudden encoder change? #

Work cheap-to-check first: read the drive diagnostic before resetting, then compare raw and processed position, then only inspect mechanics — because a checksum error, a scaling mistake and a slipped mounting all look identical in the final position register.

First, the drive diagnostics, before you acknowledge or reset anything. A checksum or communication event with an incremented failure counter confirms a feedback path problem: cable, connectors, shielding, grounding, then the interface itself.

Second, the conversion. Compare the drive's raw position with your scaled position over the same window; if only the processed value jumps, the raw data was fine and the bug is rollover, scaling, units or task synchronization in your own code.

Third, the mechanics — and only with the machine safely stopped and locked out per your site's hazardous-energy procedure (in the US, 29 CFR 1910.147) and its risk assessment. The confirming signs are a reading that drifted while the axis was commanded stationary, or a home offset that moved with no drive fault at all. After a coupling or mounting repair, re-establish the reference deliberately; Homing an Absolute Encoder Axis to a Reference Sensor is the procedure, and the new offset belongs in the machine record.

How likely is sudden encoder corruption in practice? #

Low: with checksum-protected feedback and sound mounting, a corrupted position reaching your logic is not a realistic event to design around; design instead for the two events that do happen — rejected telegrams from cabling, and mechanically shifted references from load or slip.

You cannot compute a failure probability from an interface type alone — it depends on the installed motor, the load history, the environment and the maintenance — but the structure of the risk is not in doubt, so the effort goes where the risk is.

The committed decision per case: a logged checksum or communication error is a feedback path fault — investigate cabling, grounding and connectors, and treat the telegram rejection itself as proof the protection worked. A clean-status jump that no sample interval can explain is a conversion fault — fix the rollover, scaling or unit handling in your code first. A clean-status shift the physics allows is a mechanical reference fault — stop, inspect mounting and coupling, review the axial load history against the datasheet, and re-home.

Put the drive's supervision in charge of data integrity, your plausibility monitor in charge of machine-level sanity, and load control and mounting in charge of prevention. Re-validating raw counts in application code duplicates a fraction of the drive's checks and misses the slip entirely — the one failure mode your actual machine is likely to hand you.

Questions asked

Does an absolute encoder keep its position through a power cycle?

Within its documented range, yes. A single-turn absolute encoder returns the shaft position within one revolution after power-up; a multi-turn version also returns the turn count up to its specified number of turns. Outside that range, or once the mechanical reference has slipped, the position must be re-established by homing to a reference.

Should I read the raw encoder counts myself and verify them in the controller?

No. On an integrated digital feedback the drive already validates every telegram, and reprocessing raw counts duplicates part of that check while missing the failure the checksum cannot see: mechanical slip. Use the drive's scaled position and validity status, and spend the effort on the per-sample plausibility monitor and on keeping shaft loads within rating.

Can the feedback cable cause a sudden position change?

On a checksum-protected interface it causes rejected telegrams and drive diagnostics rather than a silent wrong position. Route the feedback cable according to the drive manual's cable type and length limits, keep it separated from motor power and switched load wiring, and treat a rising failure counter as a wiring, grounding or connector problem to fix at the source.

How is a checksum error different from a following error?

A following error means commanded and actual position disagree while the axis moves, which points to tuning, friction, overload or a stalled axis, and the data itself was never in question. A checksum error means the data failed its integrity check before it entered the control loop. The first is a motion or load problem; the second is a feedback path problem.

Keep reading

  • Selection guide

    Timing Belt vs Direct Mount for a Rotary Encoder

    A guarded direct or hollow-shaft mount on the 5/8 in rear shaft is the better choice; 200 RPM is trivial for a belt drive, but debris-packed grooves wreck encoder bearings and loose setscrews cause slip. Build the belt drive only with matched pulleys, a rigid bracket, minimum tension and a full cover, and verify 1:1 with a marker and a speed check.

    Sensors, encoders and machine vision on the machine

  • 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

  • Explainer

    How a CN1 pulse train absolute position reading works

    A CN1-style absolute transfer sends the multi-turn count and the within-turn count as two separate pulse bursts at power-up, then switches to ordinary incremental pulses. Arm hardware counters before the drive transmits, decode both fields per the drive manual, compute initial position as multi-turn turns times counts per revolution plus the within-turn count, and hand off to pulse counting at a latched boundary.

    Sensors, encoders and machine vision on the machine