Home / Case Studies / Multi-Turn Position That Survives a Power Cut
Technical note
Multi-Turn Position That Survives a Power Cut
A machine that indexes a fixture by rotation needs to know its angle after the power comes back. Within one revolution that is easy: the absolute encoder reports the angle directly. Past one revolution it is not, because the encoder only knows where it is inside the turn, and the number of turns has to be counted and kept somewhere that survives a power-down. On this cleaning station the count was being lost every time the machine was switched off — the fixture came back up at the right angle but the wrong turn, and the machine had to re-home before it could run. That is a few minutes every morning, and one more thing for an operator to get wrong.
Drive used in this class of machine: DG series, multi-turn absolute · not sure which? five questions →
The machine and the failure
The station cleans display panels on a rotating fixture. The fixture turns several revolutions in a cycle, stops at indexed angles, and the process runs. The drive is an EtherCAT unit with a Tamagawa absolute encoder on the motor, and a second encoder channel used for the fixture side. Within one revolution, everything behaved: power down, power up, position restored. Past one revolution the multi-turn value came back as zero, the axis re-homed, and the cycle restarted from a known point.| Condition | Behaviour before the fix | Behaviour after |
|---|---|---|
| Power cycle inside one revolution | Position restored correctly | Position restored correctly |
| Power cycle past one revolution | Multi-turn count lost, axis re-homed | Count restored, axis resumes without homing |
| Passing the multi-turn maximum and minimum | Count latched or wrapped | Count follows through both limits |
| Repeat test | Reproducible failure | Reproducible pass over repeated cycles |
What was actually wrong
It was firmware, not wiring and not the encoder. The second channel's multi-turn accumulator was not being committed to non-volatile storage before the rail dropped, so the value that came back after a power cycle was the value from before the last several turns. Because the single-turn value was correct, the failure looked like a logic error rather than a data-loss error, which is why it survived the first round of site checks. Once the accumulator was committed on a change-of-turn rather than on a timer, the count survived both the power cut and the wrap at the multi-turn limits.- Single-turn value was always correct — which is why the fault looked like logic
- Multi-turn accumulator was not committed before the rail dropped
- Fix: commit on change-of-turn, and handle the wrap at both limits
- Verified by repeated power cycles past the maximum and minimum multi-turn values
Why a second encoder channel is worth having on a rotating fixture
The fixture side and the motor side see different things. The motor encoder sees the shaft; the fixture encoder sees the part after the coupling, the belt or the gearbox. When the two disagree, something mechanical has slipped, and on a machine that indexes to an angle, that disagreement is the difference between a good panel and a scrap one. Keeping both channels and comparing them is cheaper than adding a separate position sensor, and it turns a mechanical fault into an alarm instead of a batch of bad parts.Key takeaways
- Multi-turn position only survives a power cycle if the accumulator is committed on change-of-turn, not on a timer.
- A second encoder channel on the fixture side turns coupling slip into an alarm rather than a batch of scrap.
- Verify this class of fix by power-cycling past the multi-turn maximum and minimum, not by cycling once.
Common questions
Does every EtherCAT drive keep multi-turn position through a power cut?
No. It depends on how the multi-turn accumulator is persisted and on whether the encoder protocol carries the count. A single-turn absolute encoder plus a persisted count is a common arrangement, and it is exactly the arrangement where a commit-on-timer policy loses data.
Can I use the second channel for a linear scale instead of a rotary encoder?
On the units with two feedback channels, yes — the second channel is a full encoder interface, not a tachometer input. On a ZR module this is how the linear and rotary axes are closed separately.
You have seen the numbers for one project. Mine would be built around yours — the five stages say what I need from you at each one.
Different current step, carrier or connector layout? That is a custom build →