Explainer
Absolute vs quadrature encoder: what survives a power cycle
Short answer
An absolute encoder keeps the true shaft angle through a power cycle because its code is the angle, not a count; a quadrature count on a high-speed counter is lost at power-off and blind to movement while off, even with a Z-pulse reset. The absolute code on standard inputs cannot be read while turning, so read it at standstill on startup, load it into the high-speed counter, and let the Z pulse re-reference each revolution.

On this page
Power the machine down, turn the shaft by hand, power it up: the quadrature count is wrong and the absolute code is right. That is the whole answer. An incremental encoder keeps nothing itself; the position lives as a count in an external counter, and a Z-pulse reset only re-zeroes that count once per revolution while powered. A single-turn absolute encoder presents the shaft angle as a code on its output lines, so there is no count to lose, and movement while off is simply part of the next reading. The catch is reading it: on standard DC inputs the parallel code can only be trusted at standstill, because a 1024-position encoder at 100 rpm advances about 1,700 times per second. The design that commits to both strengths is the hybrid — read the absolute code at startup, hand tracking to a high-speed counter, and re-reference on the Z pulse every revolution.
What each feedback keeps when power is off #
A quadrature encoder's disk carries two pulse tracks, A and B, offset from each other so the counter can read direction, and usually one index track, Z. None of those tracks stores anything. Power it down and it goes dark; the position exists only as a number in whatever counter was accumulating it. Move the shaft while powered down and the movement produces no pulses anywhere — as far as the control system knows, it never happened.
A single-turn absolute encoder is built the other way around: one code track per output bit, and the lines carry the angle itself at every moment you look at them. How long the power was off does not matter, and how far the shaft was moved does not matter; the next read is the true angle within the revolution. That is retentivity by construction, not by memory.
When the axis travels more than one revolution between reads, a multi-turn absolute encoder adds a turn counter: a gear train that counts revolutions mechanically, or a counting circuit kept alive by a backup battery. One reported example, a geared unit tracking 4096 revolutions, kept correct position across about 10 meters of powered-off travel; the turn range to compare with your axis is in the datasheet of the exact part. A resolver also reads true after power-off, because it measures angle by inductive coupling and keeps no count — using a resolver as absolute position feedback after power-off is its own procedure.
Why the Z pulse is not a position memory #
The index pulse is one narrow pulse per revolution, and counter hardware that supports index reload uses it in a defined way: while channel Z is high, at one specified phase of the quadrature cycle, the counter is loaded with a preset value. That is genuinely valuable — every revolution the count snaps back to a known reference, so error from a noisy edge or one missed count cannot accumulate beyond a single turn.
It does nothing at all about power-off. On power-up the counter starts from whatever initial value the program or the card gives it, and the true angle stays unknown until the shaft physically rotates past the Z edge. An axis that must not move at power-up — a crank stopped mid-stroke, a lifted load — never gets there. Quadrature with a Z reset is the right arrangement for an axis that homes at startup anyway: it is the simplest correct design, and everything it lacks is something such an axis does not need.
The absolute code's real limit is the input path #
The parallel code is only as good as the sampling behind it. A standard DC input module passes each point through an optoisolator and a filter, with response times in the milliseconds on its datasheet; add the PLC scan, and the working rule of thumb is that such an input follows well under 100 Hz. Set that against the code's step rate while the shaft turns and the input loses by more than an order of magnitude — the full comparison of absolute encoder input card response time vs count rate is worked through separately.
Gray coding is often offered as the cure, and it is half a cure. Adjacent positions differ in exactly one bit, so a snapshot caught mid-transition reads either the old position or the new one, never a wild value. But a slow filtered input does not take snapshots: different bits settle at different times, many position steps apart, and the assembled word can land nowhere near a real angle. Gray code removes the race between adjacent steps; it does not make a slow input fast. The rule that follows: read a parallel absolute encoder on standard inputs at standstill only.
Worked example: the code's step rate at full speed #
Calculated example for the stated inputs, not a measurement: a single-turn absolute encoder with 1024 positions per revolution, shaft speed 100 rpm at most.
- Revolutions per second: 100 rpm ÷ 60 = 1.667 rev/s
- Position update rate: 1.667 rev/s × 1024 positions/rev = 1,707 updates/s, about 1.71 kHz
- Time between updates: 1 s ÷ 1,707 = 0.586 ms
- Angle per position: 360° ÷ 1024 = 0.3515625°
At the rule-of-thumb 100 Hz of a standard input, 1,707 ÷ 100 ≈ 17 position steps pass between one sample and the next — the input cannot track the shaft; it can only report the code after the shaft has stopped.
The same encoder geometry used as quadrature tells the other half: A and B on the same disk, one cycle per position, give the same 1.71 kHz per channel at that speed, and a hardware counter input — a class typically specified in the tens to hundreds of kilohertz — counts it with a wide margin. Speed was never the quadrature counter's problem; power-off was.
The hybrid that survives and tracks #
When the machine must wake up already knowing its angle, commit to this sequence:
- Hold the axis at standstill at power-up — drive disabled or brake set — and read the ten position bits.
- Read the input word twice and accept it only when both reads match; at standstill that costs one extra scan, and it guards against a creeping shaft or a sticking point.
- Decode Gray to binary. The instruction-level detail of reading a Gray code absolute encoder into a PLC is its own procedure.
- Scale the decoded count to engineering units with the angle per position from the encoder's resolution.
- Load that count into the high-speed counter as its starting value, then switch tracking to A and B.
- Set the counter's Z reload to the shaft angle where the Z edge sits, so every revolution the count snaps back to the true reference and drift cannot accumulate.
One safety note belongs with step one: recovered position is control feedback, not a safety function, and whether any axis may move before its position is verified is decided by the machine's risk assessment under ISO 12100 — the process that exists to catch hazards like unexpected movement at power restoration. Keep motion inhibited until the standstill read is done.
If ten data lines plus A, B and Z is too much copper for the run, a serial absolute encoder (an SSI, BiSS or EnDat type interface) carries the whole position on a few wires and survives power-off just the same; then capturing serial absolute encoder data at machine startup becomes its own task.
Choosing the arrangement #
| Arrangement | True angle after a power cycle | Usable while turning | Signal lines | Choose it when |
|---|---|---|---|---|
| Quadrature into a high-speed counter, Z reset each turn | No — the count dies with the power, and off-state movement is invisible | Yes | A, B, Z | The axis homes at startup anyway |
| Parallel absolute on standard DC inputs | Yes — the code is the angle | No — about 17 code steps pass per input sample | 10 data bits | Position is read only at standstill, or as the startup half of the hybrid |
| Hybrid: absolute read at standstill, quadrature running, Z reload | Yes | Yes | 10 data bits plus A, B, Z | The machine must resume at true angle and run at speed — the committed choice |
| Multi-turn absolute, geared or battery-backed | Yes, within its turn range | Depends on the interface | Varies | The axis travels more than one revolution between reads |
The decision in one breath. If the axis can home at startup, build quadrature with a Z reset and stop there — it is the simplest correct design. If the machine must resume at its true angle — a crank that cannot be re-homed mid-stroke, an indexing table that must not jog — build the hybrid: absolute read at standstill, quadrature while running, Z reload every revolution. If the axis spans many revolutions between reads, put a multi-turn absolute encoder on it and match its interface to a port the controller actually has.
Questions asked
Does a retentive counter memory keep quadrature position through a power cycle?
No. Retentive memory only preserves the last number the counter held before power-off. If the shaft moved while powered down, that number is wrong and nothing in the system can tell. It reads plausibly and is not, which is worse than an obviously zeroed count. Treat retentivity as a restart convenience, never as position feedback.
How do I set the value the Z pulse reloads into the counter?
Jog the shaft slowly until the counter just sees the Z edge, stop there, and read the absolute encoder's decoded angle at that standstill. Enter that count as the reload value. Each revolution the hardware then snaps the count back to the true angle at the Z position. Recheck the value after replacing the encoder, the coupling or the belt, because any of those moves the Z edge relative to the machine.
Does a battery-backed multi-turn encoder keep position when powered off?
Yes, while its backup battery is healthy — the battery keeps the turn-counting electronics alive through power-off. A dead battery loses the multi-turn part silently, although the single-turn code still reads the true angle within one revolution. A gear-train version needs no battery and cannot fail that way, but it stops at its mechanical turn limit. If your maintenance routine cannot guarantee battery checks, choose the geared type.
What if the shaft is still turning when the controller powers up?
The parallel read cannot be trusted while the shaft turns, because the input filters settle at different times and the assembled word can land far from any real position. Keep the drive disabled, let the axis come to rest on its brake or by friction, and take the startup read there. If the process forbids stopping — a shaft that must keep spinning through a control change — use a serial absolute encoder, whose receiver latches the whole frame at once, or accept an unknown angle until the first Z pulse arrives.