Comparison
What makes a PLC-set absolute encoder offset retentive
Short answer
A PLC-set absolute encoder offset is retentive only when the operation stores the encoder adjustment in nonvolatile memory: the drive's saved parameters or the controller's retentive memory. Homing commands and set-reference-point inputs plant a working coordinate in runtime data that power-off erases. Prove any route with one power cycle at a known mechanical mark, commanding nothing afterwards.

On this page
A PLC can set a position that survives power-off, but only through the operation that writes an absolute encoder adjustment into nonvolatile memory - the drive's saved parameters, or the controller's retentive memory. A homing command, a set-reference-point input or a plain coordinate set writes a working coordinate into runtime data, and power-off erases it. The interface you call matters less than what the called operation stores. Take a concrete case: a SINAMICS S120 on FW4.7 driving 1FK7 servomotors with multiturn absolute encoders, commanded from an S7-1500 over PROFINET, with no technology object in the project. The workable route exists. This article names it, works the offset arithmetic at a mechanical mark and gives the one test that proves retention.
Coordinate set versus encoder adjustment #
A coordinate set tells the axis where it is. The command plants a value into the axis runtime coordinate - MC_Home in its plain position-set form, the set-reference-point input of an EPOS drive, a preset written over the telegram. Nothing about the encoder changes: the axis counts on from the value you gave it, and power-off wipes the runtime coordinate, so the axis comes back unreferenced.
An absolute encoder adjustment tells the axis where it was. It reads the encoder's absolute multiturn value at the moment you declare a known machine coordinate, computes the offset between the two and stores that offset where power-off cannot reach it. At every power-up the drive reads the encoder, adds the stored offset and reports the machine coordinate with no homing move. Retentivity is a property of that operation and of its storage - never of the command interface used to trigger it.
Where the offset lives and what each memory survives #
A drive-stored adjustment sits in the drive's parameter memory, and it counts only once the values have reached nonvolatile memory. The adjustment is one step and the save is another; vendor tools expose the second as an explicit save operation or a write to the device's EEPROM. Values that live only as active parameters die with control power, no matter which interface commanded the adjustment.
A controller-stored adjustment sits in retentive controller memory, so it survives a controller power-down as well, but it belongs to that controller's project rather than to the drive. Move the drive to another controller, or hand the axis to a project without the stored offset, and the coordinate is gone while the drive itself is untouched.
The PLC-accessible routes compared #
Five routes come up for this exact question, and what each one stores decides the outcome:
| Route | What the operation writes | Where the result lives | Survives drive power-off? |
|---|---|---|---|
| Commissioning-tool adjustment (STARTER on this drive family) | The encoder adjustment, saved to nonvolatile drive memory | Drive parameters | Yes |
| MC_Home absolute value adjustment (needs a technology object) | The encoder adjustment as a retentive offset | Retentive CPU memory | Yes, tied to that CPU and its project |
| MC_Home used as a plain position set | A working coordinate | Axis runtime data | No |
| Set-reference-point input over the positioning telegram | A working coordinate | Drive runtime data | No |
| FB EncoderAdjustment or FB286 (SINA_PARA) | The adjustment parameters, plus the save that follows | Drive parameters once saved | Yes, only after the save is confirmed |
The telegram route is the cheapest to wire and the easiest to misjudge. On an EPOS drive the PLC sets the reference-point bit in the control word of the positioning telegram - telegram 111 in that family - and the drive sets its working coordinate to the reference value carried in the same telegram. That is a coordinate set, not an adjustment: no offset is computed, nothing reaches the drive's stored parameters, and power-off takes the coordinate with it. Mind the mechanics of the write too, because the control word is a 16-bit word and the drive acts on it only while the remaining bits sit at the levels that let commands through. A write that touches the one bit and not the whole word never lands - the failure mode why a word bit reference fails in ladder logic and how to fix it dissects for ladder logic.
The parameter route is the one that genuinely writes the adjustment from the PLC. The vendor's SIMATIC function-block library for SINAMICS provides FB286 (SINA_PARA), an acyclic block that reads or writes 16 arbitrary drive parameters per call, plus a dedicated FB EncoderAdjustment whose document describes the exchange between an S7 controller and a SINAMICS drive as acyclic communication that adjusts the parameters. Run the adjustment at the mark, confirm the values end up saved to nonvolatile memory - whether the block chains the save itself or leaves it to a second call is stated in the block's own document - and then demand the power-cycle proof before anyone releases the axis. Parameter access alone is not retention; the save is, and only the test shows it landed.
With a technology object in the project, MC_Home has an absolute value adjustment operation: the vendor's S7-1500 and S7-1500T axis-functions documentation states that Motion Control computes an offset between the encoder value and the declared position and stores that offset retentively on the CPU. That is PLC-initiated and retentive, and it is the intended route for those projects. Without a technology object there is no MC_Home to call, because the block belongs to the technology objects. When the operation that actually executes is a coordinate set rather than the adjustment, the position comes back wrong after the next power cycle - Why MC_Home absolute encoder adjustment is lost after power cycle follows that failure end to end.
The offset arithmetic at a known mark #
Pick a mark whose machine coordinate is known and findable after any power-down: a dowel pin, a scored line on the rack, a hard stop with a shim of known thickness. Example numbers, chosen for clean arithmetic: the mark sits at 200.000 mm in machine coordinates, and standing at that mark the drive reports a raw absolute encoder coordinate of 1375.250 mm. The offset the adjustment must store is machine coordinate minus encoder coordinate: 200.000 mm - 1375.250 mm = -1175.250 mm.
After a correct adjustment the axis reports 200.000 mm at the mark, because the coordinate is rebuilt at every power-up as encoder reading plus stored offset: 1375.250 mm + (-1175.250 mm) = 200.000 mm. These are calculated example values for these inputs, not a measured result; your encoder coordinate at the mark is whatever the drive reports, and the subtraction is identical. A flipped sign announces itself at the first readback, because with +1175.250 mm stored instead the same mark rebuilds as 1375.250 mm + 1175.250 mm = 2550.500 mm.
The acceptance test: one power cycle, no new command #
One safety note before the list: support any axis that can fall or roll when control power disappears, and carry the power-down out under the machine's lockout practice.
- Move the axis to the mechanical mark and record what the drive reports before commanding anything.
- Trigger the PLC-initiated operation once, and confirm the axis reads the mark coordinate before touching power.
- Remove power from whatever holds the offset: the drive's control power for a drive-stored adjustment, the controller as well when the offset sits in retentive CPU memory.
- Restore power and read the position at the same mark, commanding nothing - no homing, no reference, no adjustment.
- Decide. The mark coordinate after power-up means the offset was stored. The raw encoder coordinate, or a homing request, means the operation only set a working coordinate: step up to the adjustment-plus-save route and test again.
A clean acknowledgement and a correct readback before the power cycle are not evidence of retention; the readback after it is the only evidence. One pass is enough to release the function, and the test repeats after any encoder, coupling or gearbox work.
The decision for each project setup #
- Technology object in the project (S7-1500 or S7-1500T). Call MC_Home's absolute value adjustment at the mark: PLC-initiated, retentive on the CPU, no commissioning-tool session. Redo it whenever encoder-side hardware changes.
- S7 controller to a SINAMICS drive, no technology object. Use the Sinamics Toolbox for PLC: FB EncoderAdjustment performs the adjustment over acyclic communication, and FB286 (SINA_PARA) beneath it writes 16 parameters per call. Finish with the save, then the power-cycle proof from the list above. This is also the route to keep when re-adjustment must be possible from the machine itself, for example after an encoder swap on a site with no commissioning laptop.
- Drive reachable only by telegram. The set-reference-point input stays a runtime reference, so run the adjustment once from the drive's commissioning interface (STARTER on the S120) and save it to nonvolatile memory; after that the coordinate comes up correct at every power-up with no PLC involvement. If referencing at every start-up is the deliberate choice instead, Homing an absolute encoder axis to a reference sensor is that route.
Whichever route wins, retained is not the same as valid forever: an encoder replacement, a coupling that slips on its shaft, a dead battery or a multiturn count lost while the machine sat unpowered all leave the stored offset pointing at a reading that is no longer true, usually without any alarm. Absolute encoder error persists after battery and encoder replacement covers the after-replacement case, and the recovery is always the same: the adjustment again at the mark, saved, then proven with one power cycle.
Questions asked
Does it matter whether the offset is stored in the drive or in the controller?
It changes what a hardware swap costs. An offset held in retentive CPU memory survives a drive replacement: with encoder and mechanics untouched, re-downloading the project carries the offset to the new drive. An offset held in drive memory travels with the drive, so it survives a controller swap, while a replaced drive takes the offset away with it. Either way, an encoder or coupling change invalidates the offset and demands a fresh adjustment.
How do I notice that a stored offset has gone stale?
The drive rarely announces it. The symptom is disagreement between the reported coordinate and a physical feature you can verify: the axis claims a position that does not match the fixture, the tooling or a hard stop. A failing backup battery usually has its own drive alarm, but a slipped coupling sets no flag at all. When the coordinate and the hardware disagree, run the adjustment again at the mark and repeat the power-cycle test.
Does any of this apply to an incremental encoder?
No. An incremental encoder has no absolute reading to keep, so there is no offset to store and nothing to retain: power-off loses the count no matter which command set it. Every power-up needs a reference move from a switch, a mark or a hard stop. The retained-offset route exists only for absolute encoders, single-turn or multiturn, whatever the interface.
How deep does the power-down in the acceptance test need to go?
Deeper than the worst power-down the machine sees in service. Cycle the drive's control power when the offset lives in the drive, and the controller too when it lives in retentive CPU memory. Then prove the full cabinet-off that a weekend shutdown produces, because that is what operations actually do, and it is the case that catches an adjustment that was commanded but never saved.
