How-to
What HMZ zero misses on incremental master encoder channels
Short answer
HMZ zeroes the position reference of the axis you issue it on — here the analog axes 10 and 11 — and never the incremental encoder mapped through Ixx05 as a master for axes 8 and 9. Zero the master through a display offset, a documented follower offset, or the controller's documented counter reset for that encoder channel, then prove the analog axes did not move.

On this page
- What HMZ zeroes and what it cannot reach
- Why writing the definition word is not a zero
- Zeroing the axis 8 and axis 9 master encoders
- Worked example: zeroing the axis 8 master on an 18-axis machine
- Choosing between the display, the follower and the counter
- Restart behavior of an incremental master
- Questions asked
HMZ zeroes the position reference of the axis you issue it on, and on this machine that means the analog references of axes 10 and 11 — never the two incremental encoders sitting in those axes' encoder slots as masters for axes 8 and 9. Those encoders live in encoder-table entries 10 and 11 and reach their followers through I805=0x350A and I905=0x350B, a path no HMZ command touches. Zero a master by applying an offset at the layer that needs it: the operator display, the value the follower consumes, or the raw counter through the manufacturer's documented channel procedure. Never zero a master by writing the encoder-table definition word. The procedure below includes a worked example with the arithmetic and the proof that axes 10 and 11 stay untouched.
What HMZ zeroes and what it cannot reach #
HMZ is an axis-level home-zero command: it zeroes the position reference of the axis it addresses, and on this machine those references are the analog inputs of axes 10 and 11. The two incremental encoders wired into those axes' encoder slots never pass through those references. Each lives in its own encoder conversion-table entry — entry 10 at Y:0x350A, entry 11 at Y:0x350B — and the following functions of axes 8 and 9 consume them through Ixx05: I805=0x350A selects entry 10 for axis 8 and I905=0x350B selects entry 11 for axis 9. The I-variable only chooses which entry a follower reads; it does not redirect HMZ, and no axis-level command reaches a conversion entry.
Two boundaries follow. First, HMZ is the correct tool for zeroing the analog reference of axis 10 or 11 and is never a tool for zeroing the master wired into that axis's slot. Second, zeroing a free-running master is not the same job as homing a driven axis, which is what homing an incremental encoder axis with a zero mark covers; here the master mechanisms move on their own and the followers only watch them. Writing down which table entry feeds which follower, as your Ixx05 settings already do, is the same deliberate channel mapping that mapping 5 stepper axes and 3 encoder inputs on a motion controller walks through.
Why writing the definition word is not a zero #
Entry 10's Y-word 0x079208 is configuration, not a running position: it tells the table to form the converted result from the raw counter at location 0x79208 using the 1/T extension method printed in the conversion-method column. Entry 11 does the same with 0x079210 over location 0x79210. Writing zero into Y:0x350A or Y:0x350B does not set any position to zero — it erases the source and the conversion method, and the followers of axes 8 and 9 lose their masters instead of gaining an origin. If such a write happens, restore both entries from the saved configuration before following is enabled again.
The table layout also punishes blind writes. Entry 13 and entries 20 through 28 each carry an auxiliary word beside the definition: entry 13's auxiliary word at Y:0x350E holds the timebase scale factor 0x001000, and entries 20 through 28 each hold a width-and-offset word 0x00C00C. An entry therefore does not always occupy one word, and a sequential write that assumes it does lands in auxiliary data. Read the table as configuration first, identify the definition word, the raw counter, the converted result, and any documented offset field for your entry, then change only the one your requirement names.
Zeroing the axis 8 and axis 9 master encoders #
- Name the consumer of the zero. An operator display, the value the following function consumes, and the raw counter are three different registers, and a change to one never propagates to the others on its own. Pick the layer your requirement actually names before touching anything.
- Record the baseline. Save the controller configuration and the encoder table, note the following selections for axes 8 and 9, and write down the converted positions of entries 10 and 11 plus the position references of axes 8 through 11. This record is both your rollback point and your proof baseline.
- Suspend following before writing. Stop both master mechanisms and suspend following on axes 8 and 9 through the machine's normal stop sequence, then confirm both converted readings are stable. An offset written under a live follower steps that axis by the size of the offset.
- Capture the reference value. Bring the axis 8 master mechanism to its physical reference — a home mark, hard stop, or machine datum — and read the converted position of entry 10. Repeat for the axis 9 master and entry 11.
- Apply the offset at the layer you named. For a display zero, subtract the captured value in the display calculation. For a follower zero, load it into the documented offset for the following function's master input on that entry. For a counter zero, run the manufacturer's documented reset for that encoder channel and confirm the raw count and the converted result agree afterwards.
- Prove the scope. Jog only the axis 8 master mechanism: entry 10's converted value moves while entry 11 and both analog references hold their baselines. Return to rest, jog only the axis 9 master, and repeat the check. Re-enable following and confirm the follower consumes the zeroed value.
- Settle the restart behavior now. An incremental channel has no absolute origin, so decide whether the startup sequence re-runs the capture and offset load. Leaving this undecided is how a machine that zeroed correctly on commissioning day loses its zero at the next power cycle.
Worked example: zeroing the axis 8 master on an 18-axis machine #
Inputs, all from the machine used throughout this article: 18 axes with incremental encoders on axes 1 through 9 and analog inputs on axes 10 through 18; one extra incremental encoder in axis 10's encoder slot serving as axis 8's following master; the encoder table routing it through entry 10 at Y:0x350A with Y-word 0x079208, listed as 1/T extension of location 0x79208; and I805=0x350A handing entry 10 to axis 8. Every position below is in counts of the converted result, and the readback value is an illustrative example — capture your own from the controller's converted-position readout.
The rule in words: the value the follower consumes equals the converted position of the entry minus the master offset, and the master offset is the converted reading captured with the mechanism standing on the chosen reference.
The arithmetic, with an illustrative capture of 48,213 counts at the reference mark:
- At the reference: the converted value of entry 10 reads 48,213 counts, so 48,213 - 48,213 = 0 counts after the offset, and the follower consumes a zero-based master.
- After the mechanism travels 3,150 counts: the converted value reads 51,363 counts, so 51,363 - 48,213 = 3,150 counts, exactly the travel since the reference.
The result is a follower whose input is zero at the reference and equal to raw travel afterwards. The decision rule: the zero path is correct when the follower-visible value reads 0 counts at the reference and tracks the raw delta from then on. Two signatures expose a wrong layer. If the axis 10 analog reference now reads zero while the entry 10 converted value still shows the original capture, HMZ took the analog path and never reached the master. If you zeroed the display and the follower still sees the captured value at the reference, the offset landed downstream of the following function and belongs at the follower layer.
Choosing between the display, the follower and the counter #
| Required result | Where the zero goes | Acceptance check |
|---|---|---|
| Operator display reads zero | Offset subtracted in the display or supervisory calculation, downstream of the converted readout | Display reads zero at the reference; the follower-visible value is unchanged |
| Follower consumes a zero-based master | The documented offset for the following function's master input, applied to the entry selected by I805 or I905 | Follower-visible value reads zero at the reference and tracks raw travel afterwards |
| Raw counter reads zero | The manufacturer's documented reset for that encoder channel, with conversion state reinitialized | Raw count and converted result agree after the reset, and no follower steps |
Pick the layer by who consumes the zero, not by which write is easiest. A display offset is safe and reversible but reaches nothing downstream. A follower offset changes what the machine actually does, so it is the one to apply with following suspended. A counter reset is the only path that touches hardware state, and its exact steps are documented per controller family: the Power PMAC User's Manual, for example, documents the encoder conversion table methods for that family, and the software reference for your controller family gives the equivalent procedure for the entry layout shown here.
The decision, case by case: an operator-facing zero takes the display offset; a follower that must start from zero takes the follower-layer offset on the selected entry; a hardware counter requirement takes the documented channel reset. HMZ serves none of the three, and a write to Y:0x350A or Y:0x350B serves none either.
Restart behavior of an incremental master #
An incremental encoder reports displacement from its last established reference; it does not carry an origin through power loss. At power-up the channel resumes from whatever state the controller initializes it to, so the zero you established on commissioning day exists only as long as the offset that created it. If the process needs a zero-based master after every restart, the startup sequence must re-establish it: move the mechanism to its reference, capture the converted value, and load the offset before following is enabled. That constraint — an origin rebuilt rather than remembered — is the same one behind absolute position control with an incremental encoder, which covers the storage and re-establishment options in detail.
Decision: treat the master zero as a startup asset, not a one-time commissioning write. If no startup step re-creates it, plan on re-zeroing by hand after every power cycle.
Questions asked
Does HMZ command any motion?
No. HMZ is a software zero: it rewrites the position reference of the addressed axis without commanding a move, so the axis simply reads zero from where it stands. On an analog-feedback axis that reference is the converted analog input. It never addresses an encoder conversion-table entry, so both master encoders keep their counts and the followers on axes 8 and 9 see no change.
Can I keep the master zero across a controller restart?
Not by writing it into the table. An incremental counter resumes from its initialized state at power-up, so the zero survives only if your startup sequence re-establishes it: bring the mechanism to its reference, capture the converted value, and load the offset again before following is enabled. Some controller families document a persistent offset field for converted positions; use one only where the manual for your controller documents it for your encoder channel.
Why does the follower still see the old value after I zero the display?
Because a display offset acts downstream of the readout, while the following function consumes the converted entry directly. The two paths never meet: the display can read zero at the reference while the follower keeps using the unshifted master. If the follower itself must start from zero, apply the offset at the follower layer, on the entry selected for that axis, not in the display calculation.
Do both master encoders need to be zeroed at the same time?
No. The channels are independent: entry 10 feeds only axis 8's following and entry 11 only axis 9's, so one master can be zeroed while the other keeps serving its follower unchanged. Suspend following on the axis whose master you are changing, do that channel's capture and offset on its own, and record both results separately so each channel has its own rollback point.


