AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

How-to

Homing an Incremental Encoder Axis With a Zero Mark

Servo and stepper motion Published 7 min read By AutomateDirectUSA engineering team

Short answer

Switch the homing mode from absolute calibration to Zero Mark, enter the approach speed and the zero offset in load units, bound the search with the travel limit, and pulse the homing start bit to 1 with no other move active. The axis then finds the encoder's index mark and reports the offset coordinate from it. Without a real zero mark the search faults on its travel limit or reaches a mechanical stop.

On this page
  1. What changes when the feedback is incremental
  2. The homing sequence
  3. Why Zero Mark is the mode to pick first
  4. Set the approach speed, then prove the scaling
  5. Bound the search travel
  6. Start the homing and read the result
  7. When the encoder has no zero mark
  8. The decision, for each case
  9. Questions asked

You ran absolute calibration on the old absolute-encoder motors; an incremental encoder needs a search instead. Set the homing mode to Zero Mark, enter the approach speed and the zero offset in load units, bound the search with the travel limit, and pulse the homing start input to 1 while no other move is running: the axis finds the encoder's index mark and reports the offset coordinate from there. The one precondition is a real zero mark on the encoder — without it the search can only fault on its travel limit or walk the axis into a mechanical stop. The steps below are written for a SINAMICS S120 axis using the basic positioner (EPos); the mode names and the order carry over to any drive that builds its homing the same way.

What changes when the feedback is incremental #

An incremental encoder reports motion, not location: it counts pulses from power-up and holds nothing through a power-off, so the machine coordinate exists only from the last homing onward, and every start-up must home the axis before it can make an absolute move. An absolute encoder reports a position within its measuring range at power-on, which is why your old routine was a coordinate write and not a search — homing an absolute encoder axis to a reference sensor is the one-time calibration job in that world.

The connection does not answer the question that matters here. DRIVE-CLiQ, like any serial encoder link, describes how the encoder talks to the drive, not which events it delivers, so take the existence of a zero mark — the index pulse the encoder emits once per revolution — from the documentation of the exact encoder and motor part. If the machine cannot afford a homing run at every power-up, absolute position control with an incremental encoder is the pattern to study instead.

The homing sequence #

The whole job, in order:

  1. Confirm from the encoder and motor documentation of the exact part that the encoder delivers a zero mark, and check in the drive diagnostics that the index signal arrives while you turn the shaft by hand.
  2. In the commissioning tree of the engineering tool, open the drive object and go to Technology -> Basic Positioner -> Homing; click the central configuration block and select the Zero Mark homing mode.
  3. Enter the approach speed and the search direction, and enter the zero offset in load units.
  4. Set the homing search travel limit p2609 from the machine geometry, so the search cannot run past the region that can contain the mark.
  5. Confirm the hardware overtravel protection is live and independent of the coordinate this axis does not yet have.
  6. Set the homing start signal — interconnected through p2595 — to 1, with no other move active on the axis.
  7. Verify: the homing-done flag sets, the position display reads the zero offset at the mark, and a jog of a known distance reads back the same distance with the correct sign.

Why Zero Mark is the mode to pick first #

Zero Mark uses what the encoder already delivers. The mode needs only an approach speed and a zero offset, with no extra sensor or wiring, which is why it strips out most of the complexity of the alternatives. The alternatives all cost more: an external zero mark taken from a reference switch needs that switch wired and its signal assigned to a drive input, and active homing needs the signals and sequence its own configuration expects.

Choose from the machine geometry, not from whichever screen form looks shortest. One thing to arrange before the first run: the mark recurs once every encoder revolution, so along the travel of a linear axis it repeats many times, and on a geared axis those occurrences can sit a small slice of load travel apart. Know which occurrence your start position and search direction select, and if the zero must land at one particular mark, the external zero-mark mode with a reference switch is the method that brackets it.

Set the approach speed, then prove the scaling #

The approach speed is the speed of the search itself; set it from the stopping distance the machine can afford, because the axis coasts after a fault or at the end of the search. The zero offset is the coordinate the axis reports at the mark; enter it in load units, after the scaling is proven. Keep the two failure patterns separate: a slower speed never corrects a wrong offset, and a different offset never fixes a wrong search direction.

Prove the mechanical scaling before entering the offset, or the offset lands in the wrong units. Calculated example: the axis has a 10 mm lead ball screw driven through a 5:1 reducer, so one motor revolution moves the load 10 mm ÷ 5 = 2 mm. Index the coupling, jog exactly one motor revolution, and measure the load — it must move 2.0 mm. If the display reports 10 mm for that same motion, the scaling was entered as a direct drive; correct it before homing, because the offset, the travel limit and every displayed coordinate pass through it. These are example inputs and a calculated expectation for them, not a measured result.

Bound the search travel #

p2609 is the homing search travel limit: when the search exceeds it — the normal outcome when no mark ever arrives — the drive faults instead of letting the axis run on. With the limit set beyond the real clearance, the axis reaches a mechanical stop first, which is the second way a markless encoder ends a homing attempt.

Set the limit from the machine geometry, not generously. Calculated example for these inputs: farthest distance from the search start to the mark 380 mm, measured at the worst start position; approach speed 40 mm/min; time from fault to standstill assumed 2 s, reaction plus ramp. Stopping distance = 40 mm/min ÷ 60 = 0.667 mm/s, and 0.667 mm/s × 2 s = 1.33 mm. The limit must cover 380 mm + 1.33 mm ≈ 381 mm, so set p2609 to 400 mm. Sanity check: at 40 mm/min a full-length search runs 400 mm ÷ 40 mm/min = 10 min before faulting, so a limit entered at 1500 mm would spend 37.5 min of motion before reporting the same missing mark.

Treat every homing attempt as a moving-machine task: the search runs before any valid coordinate exists, so keep the hardware overtravel switches and the emergency stop chain live and independent of the software travel limits, which cannot be trusted in this state.

Start the homing and read the result #

p2595 is the homing start input: an interconnection point, not a universal PLC address. The documented example interconnection drives it from r2090.11; in your project it is driven by whatever signal source you connected to it, and which bit your controller writes follows entirely from that wiring. On the bench you can enter the value 1 at the input itself for a test; in the running machine you set the signal behind it.

Two conditions must hold when you pulse the start: the mode fully configured, and no other move active on the axis. Homing will not start into a busy axis, so a start that is silently ignored usually means a jog command or motion task is still held, not a fault. On success the homing-done flag sets and the axis reports the zero offset as its coordinate at the mark; command a jog of 100.0 mm and expect the display to read 100.0 mm back, with the sign you defined as positive.

When the encoder has no zero mark #

No setting makes the Zero Mark path work without a mark. The documented remedy in this drive family is the Set Reference Point function, driven by p2598 and p2599: bring the axis to a known standstill — a fixture or a jogged datum — and the function assigns the machine coordinate there. It is the same habit as the absolute calibration you already run, and its repeatability is exactly the repeatability of the standstill you command it from, so make that position with a fixed stop or fixture rather than a free-hand jog. If the machine has a reference switch but the encoder has no mark, the external zero-mark mode is the better fit, because the switch brackets a physical place on the machine. Where neither exists, homing a servo axis to a hard stop under a torque limit is the remaining mechanical answer.

The decision, for each case #

  • Encoder with a usable zero mark, start point inside one mark interval of an acceptable reference: Zero Mark mode — approach speed set from the stopping distance, offset in load units, p2609 just above the measured geometry.
  • Mark present but the zero must land at one specific occurrence along the travel: external zero-mark mode, with a reference switch bracketing the intended mark.
  • No mark at all: Set Reference Point through p2598 and p2599 at a fixture-defined standstill, or the hard-stop method — and expect repeatability bounded by how that standstill is made.

In all three cases the start bit pulses only into an idle axis, and the hardware overtravel stays live throughout.

Questions asked

Do I have to home an incremental encoder axis again after every power-up?

Yes. An incremental encoder counts motion from power-up and holds nothing through a power-off, so the machine coordinate exists only from the last homing onward. Build the homing run into the start-up sequence and block absolute moves until the homing-done flag sets. That is the real difference from an absolute encoder, which reports a usable position as soon as it powers on and normally needs referencing only once, at commissioning.

What value do I enter as the zero offset?

The coordinate you want the axis to report at the mark, in load units and with the sign you defined for positive travel. Measure it rather than guessing: bring the axis to the mark the way a homing run would, read its physical position against the machine datum, and enter that coordinate. If the datum sits in the negative direction from the mark, the offset is negative. Prove the mechanical scaling first, because the offset is only as correct as the units the drive converts it through.

The axis faults during homing even though the encoder has a mark — what do I check first?

Start with the cheapest checks. First, whether another move was active when you pulsed the start command, because homing will not start into a busy axis. Second, whether the search direction actually sweeps past a mark — reverse the direction or shift the start point and try once more. Third, the search travel limit against the real machine geometry. Last, whether the mark signal reaches the drive at all, checked in the encoder diagnostics while rotating the shaft slowly.

Does a slower approach speed make the homed position more repeatable?

No. The coordinate is taken at the moment the mark is detected, so the approach speed changes neither the mark nor the offset. Speed matters for stopping distance and for safety: at a low speed the axis coasts only a short distance after a fault or the end of the search, and a first commissioning run is easier to watch. Set the speed from the stopping distance the machine can afford, not for accuracy.

Keep reading

  • How-to

    Homing a Servo Axis to a Hard Stop With Torque Limit

    Approach the stop in torque control at a torque below the actuator's allowable end-stop load and low speed, accept contact only as sustained torque with near-zero velocity inside the permitted travel window, stop, then execute MC_Home with the Zero position preset method. The preset only writes the coordinate; sequence logic must qualify the stop first.

    Servo and stepper motion

  • How-to

    Homing an Absolute Encoder Axis to a Reference Sensor

    Homing an absolute encoder axis to a reference sensor is two steps: a controlled search move that captures the axis position at the sensor transition, then a relative encoder adjustment whose correction is the reference position minus the captured value. For a zero reference at the sensor, that correction is the negative of the captured position, and the stopped coordinate after the search does not need to be zero.

    Servo and stepper motion

  • Troubleshooting

    Servo axis stuck beyond its travel limit: safe recovery

    Never wire a servo motor straight to mains or release its brake to free an axis that sits outside its travel limits. An overtravel lockout is a position-permission fault: decide whether the joint is physically overtravelled or has lost its reference, then move it back inside the permitted range under drive-controlled jog at low speed, using the documented recovery procedure.

    Servo and stepper motion