AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

Absolute Position Control With an Incremental Encoder

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

Short answer

An incremental encoder cannot name the current position at power-up; it only counts motion from a starting reference. Give the axis one machine coordinate by homing to a repeatable switch event, by absolute feedback, or by restoring a still-valid position, and after that one reference it executes absolute moves as readily as relative ones.

On this page
  1. What an incremental encoder actually reports
  2. The homing offset: one reference is enough
  3. Three ways to get the first machine coordinate
  4. Worked example: homing accuracy at a 10 mm/s search speed
  5. Designing the homing move itself
  6. Position validity versus the enable state
  7. The decision
  8. Questions asked

An incremental encoder cannot tell the controller where the axis sits at power-up. It only reports how far the shaft has moved since the encoder chain was energized, so an absolute position command is meaningless until the axis has one machine reference. That reference comes from homing to a repeatable switch event, from absolute feedback, or from restoring a position value that is still physically valid. Once that single offset exists, the axis executes absolute moves exactly as easily as relative ones, because the controller is doing the same counting either way. The deciding quantity is the offset between the encoder count and the machine coordinate, not the signal technology, and not whether the feedback happens to be digital.

What an incremental encoder actually reports #

Digital and incremental are not the same property. Digital describes how the information is represented; incremental and absolute describe what position information the device provides. An incremental encoder emits pulses as the shaft turns, and the controller accumulates signed counts from them. An absolute encoder reports a position value directly, within its measurement range, without any movement having happened.

After initialization, an incremental-feedback controller tracks position as:

Machine position = reference position + (current count − reference count) × distance per count

The reference position is the machine coordinate assigned at the homing event, and distance per count converts encoder counts into machine units using the configured feedback interpretation and the mechanical transmission ratio. Before any homing event, the controller may display a coordinate, but it has no connection to a physical location. That is why an axis that starts at an intermediate position cannot accept an absolute target: the destination and the current coordinate live in different, unconnected number systems.

A potentiometer, by comparison, always produces a position-dependent signal within its travel. An incremental encoder supplies the same information only after its reference has been established. After that, it supports repeated absolute moves without returning to home between commands.

The homing offset: one reference is enough #

Absolute position control on an incremental axis is not a different control mode. The controller holds one number, the homing offset, which ties a particular encoder count to a particular machine location. An absolute command is answered by counting from the current value to the target value; a relative command is answered by adding the commanded displacement to the current value. Both use the same accumulated count and the same offset. The difference is in the command, not the feedback.

This is also why the offset only has to be established once. As long as the encoder, its receiver and the position-tracking logic stay powered, a drive that is disabled still counts externally driven shaft movement. Disabling torque and losing position feedback are different events. The count is lost when power is removed from the measurement chain while the axis moves, or when the axis is moved without anything counting. For the coordinate to survive a power interruption untouched, the axis has to have stayed still, and whether that condition holds is something the machine sequence must establish rather than assume.

Three ways to get the first machine coordinate #

There are three practical architectures, and they differ in whether startup motion is needed and what must stay valid.

  • Homing to a switch event. The axis moves until a repeatable transition is captured on a reference input, then the offset is assigned. Startup motion is required, and the axis must have a clear, controlled path to the reference. This is the standard approach for the great majority of servo axes, which carry incremental feedback.
  • Absolute feedback. The encoder reports position directly and the offset maps it into machine coordinates. No reference-search motion is needed, but the encoder's measurement range must cover the machine's position ambiguity: a single-turn absolute encoder cannot, by itself, distinguish locations on a multi-revolution or long-travel axis. See absolute versus quadrature encoders and what survives a power cycle for how much position information each feedback type keeps unpowered.
  • Restored position. A saved value is loaded through the controller's supported set-position interface, or a battery-backed encoder replays retained position at initialization. The transport channel is only a mechanism: the value is valid only if nothing moved the axis after it was captured. Loading it is legitimate when a retained measurement or a controlled mechanical condition establishes that nothing moved.

Pick homing when startup travel is acceptable; it grounds the coordinate in a physical event instead of trusting that the axis stayed put. Pick absolute feedback when the machine must know its location before reference-search motion is possible. Pick restoration only when position validity can be demonstrated.

Worked example: homing accuracy at a 10 mm/s search speed #

Case: a horizontal linear axis, homed by searching toward a reference switch mounted near the end of travel, with the controller's dedicated homing capture function. Inputs, and where each comes from:

  • Approach speed during the search: 10 mm/s, chosen in the drive's homing configuration (a slow, controlled value set for this example).
  • Input capture latency of the dedicated homing capture: 1 ms, an illustrative figure; take the actual value from your controller's datasheet.
  • Switch repeatability: 0.05 mm, a typical value for a plain mechanical limit switch; take it from the switch datasheet of the exact part.

Rule: the capture-position error is the distance the axis travels during the input latency, plus the switch's own repeatability.

Arithmetic:

  • Latency term: 10 mm/s × 1 ms = 10 mm/s × 0.001 s = 0.01 mm
  • Switch repeatability term: 0.05 mm
  • Total homing error: 0.01 mm + 0.05 mm = 0.06 mm

Result: for these inputs, the machine coordinate is established to about 0.06 mm. This is a calculated example for those inputs, not a measured result.

Decision: with a switch repeatability of about 0.05 mm, the homing accuracy is set mostly by the switch, not by the electronics, and 0.06 mm is adequate for a general pick-and-place or indexing axis. If the axis must home to better than 0.01 mm, a slower approach pass (at 1 mm/s the latency term drops to 0.001 mm) or a higher-accuracy reference — a fine-resolution transition captured by a dedicated high-speed input — is the fix, and the actual capture latency must come from the controller documentation rather than this example.

Designing the homing move itself #

The reference switch must mark a location the axis can approach without hitting a physical obstruction, and the search direction is only valid if the axis always starts on the correct side of it. The routine in the machine sequence should be:

  1. Establish the permitted search region. Inspect the switch placement, the hard stops and the possible starting positions before commanding motion.
  2. Define the already-active case. Configure the supported homing method to handle an axis that starts with the switch active, including any required backing-off move before the reference approach. An axis started beyond the switch needs a defined recovery path, not an unconditional search.
  3. Search at a controlled speed, compatible with switch repeatability, input capture and stopping distance, and bound the search with the controller's travel or time supervision so a missing switch cannot run the axis into a stop.
  4. Capture the specified transition, using the same edge and approach direction every cycle, with the controller's dedicated homing or position-capture function rather than assigning the reference after a software delay.
  5. Assign the reference coordinate and set the position-valid state, which should gate all machine-coordinate moves.

For the mechanics that make the home transition repeatable — the frame the switch mounts to and the axis travel itself — see encoder line count selection for a servo ball screw axis, which covers matching feedback resolution to the mechanical transmission.

Position validity versus the enable state #

Treat the position-valid state as a hard gate in the machine logic, and keep it distinct from the servo enable. Conditions worth distinguishing, and the check for each:

  • The displayed coordinate starts at the same number wherever the axis sits: the controller initialized its coordinate without a physical reference. Check the referenced or position-valid status, not the displayed value.
  • Position changes while torque is disabled: feedback is still powered and tracking. This is normal, and it means a disabled axis can still lose nothing — but only while the encoder chain stays powered.
  • The coordinate is wrong after a power interruption: something moved outside the retained measurement path, or startup restored a stale value. Compare the retained value against the actual axis position.
  • The home location varies between cycles: switch mechanics, approach direction, capture timing or mechanical play is drifting. Measure repeated home locations against an independent reference.
  • Motor coordinate repeats but load coordinate does not: backlash, slip or uncaptured load movement separates the two. Compare motor feedback with actual load position.

For the failure mode where a referenced axis loses its way home after hardware changes, see why a servo axis runs past the limit switch after a drive swap.

The decision #

If the machine can tolerate startup travel, use incremental feedback with a controlled homing sequence: it is simple, self-grounding and adequate for most axes. If the machine must know its location before any motion — a vertical axis under gravity, a fixture that operators move by hand, or travel too short to search safely — use absolute feedback sized to the machine's ambiguity range. If the axis provably stays still through power interruptions, a restored position is a valid third option. In every case, absolute moves become available after exactly one valid reference, and the number that matters from then on is the offset between the encoder count and the machine coordinate.

Questions asked

Can an axis with an incremental encoder make absolute moves?

Yes, after one successful homing cycle. The homing event sets the offset between the encoder count and the machine coordinate. From then on the controller converts every absolute target into a counted displacement, and no further homing is needed unless the axis is moved with the encoder chain unpowered or the position-valid state is lost.

What actually breaks an incremental axis's absolute position?

Movement that happens while nothing is counting it. A drive that is disabled but still powered keeps tracking externally driven shaft motion; the count is only lost when power is removed from the encoder chain, or when the axis is moved faster than the input can follow. The physical axis does not forget anything, the controller does.

Why is zero not a valid position on an unreferenced incremental axis?

Zero can mean two different things: a deliberately referenced home location, or simply the controller's startup value wherever the axis happened to sit. Until the homing sequence completes and a position-valid state is set, the machine coordinate has no physical meaning, and the machine sequence should refuse absolute moves in that state.

How repeatable does the home switch need to be?

It does not carry the whole error. Total homing error is roughly the switch repeatability plus approach speed times input capture latency. At an approach speed of 10 mm/s and a capture latency of 1 ms, the latency term alone is 0.01 mm, so a switch repeatability of about 0.05 mm keeps homing accuracy near that figure. Slower approach moves shrink the latency term proportionally.

Keep reading

  • Troubleshooting

    Why a servo axis returns 4 degrees off home after years

    Trace commanded position, actual position and torque through one forward-and-reverse cycle before touching the home offset. If command and actual both repeat exactly while the tool keeps stepping further off, the fault is mechanical lost motion behind the sensor — a slipping coupling, a worn key or backlash — and re-referencing only hides it while the slip keeps growing. Repair the joint, then re-establish home.

    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

  • How-to

    Homing an Incremental Encoder Axis Without a Proximity Switch

    Home once after each power-up, then re-home after any slip, fault, or unpowered movement. Without a proximity switch, retract to the negative stop under a torque limit as the coarse reference, arm the home with the Z index trigger, and creep forward until the latch; without a Z channel, set the position at the verified stop.

    Servo and stepper motion