How-to
Homing an Incremental Encoder Axis Without a Proximity Switch
Short answer
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.
On this page
Home the axis once after every power-up, and re-home after any event that can move the machine without the encoder counting it. A proximity switch is convenient but not required: retract to the negative hard stop under a limited open-loop command to fix which encoder revolution you are in, latch the Z index with the Arm Home command for the fine reference, and map the latched point to 0 in. If the encoder has no Z channel at all, take the fallback: the Set Actual Position command at the verified stop. One number deserves suspicion before any of this: the 4096 ppr on the encoder spec does not by itself tell you how many counts make an inch.
When one home per power-up is enough #
An incremental encoder on the motor reports changes of position, never machine position. After a power cycle the controller can hold a valid count that no longer matches the physical stroke, or restart its count at zero while the axis stands mid-travel. One completed home per power-up is enough when the servomotor, coupling, ball screw and load stay rigidly connected and the feedback count stays valid between moves.
Re-home, without waiting for the next power-up, after:
- an encoder fault, a following-error fault, or feedback wiring work
- a restart of the controller or the servo amplifier
- moving the axis by hand with the amplifier disabled
- coupling slip, a belt jump, a crash, or any impact on the load
- a stall in which commanded motion produced no counts
Between those events the reference holds; a test cycle that runs an hour after homing does not need a second one.
Confirm the encoder has a true Z index #
Quadrature A and B carry direction and increments, and no reference of any kind. The Z index is a separate channel that produces exactly one pulse per encoder revolution, which is what makes it usable as a fine reference. Some encoders add inverted differential complements named /A, /B and /Z; /Z is the complement of the index, not a second signal to pick between.
Commutation signals are a different quantity. They tell the servo amplifier the motor's electrical angle, they repeat every electrical cycle rather than once per shaft revolution, and no homing latch can be built from them. Check the encoder datasheet and the connector pinout before treating any conductor as Z: commutation alongside quadrature proves nothing either way about an index.
The homing sequence without a proximity switch #
A homing move is automatic motion: it belongs inside the guarded volume under the machine's risk assessment, with hands clear of the stroke until the latch completes.
- Set a small open-loop command magnitude, and set the servo amplifier's torque or current limit so arrival at the stop is a controlled push rather than a crash. Take the permissible endpoint force from the mechanics and drive documentation, not from repeated impacts. This half of the job is the discipline covered in homing a servo axis to a hard stop with a torque limit.
- Command a small negative open-loop move toward the fully retracted end, and give it a moment before judging. Watch actual position, actual velocity, amplifier state and current together.
- Confirm you are on the stop by the whole pattern, not by velocity alone: commanded retract, position decreasing then static, velocity near zero, current settled at a controlled value with no drive fault. Velocity near zero with the command active can also mean a jam or a disabled axis.
- Stop the negative command, then send the Arm Home command with Home Trigger type Z.
- Command a small positive open-loop move and stop it the moment the Home Latched bit goes active.
- Map the latched reference so the retracted endpoint reads 0 in, allowing for the counted distance between the stop and the first Z edge in the positive direction.
- Enable the 0-to-60 in travel limits only after the reference is accepted, then move clear of the stop before starting the test.
Worked example: fixing the counts-per-inch scale on a 4096 ppr axis #
Inputs:
- Encoder resolution: 4096 ppr, from the encoder specification for this axis, with the counting convention unconfirmed.
- Z index: one pulse per revolution, by definition of the channel.
- Travel limits: 0 in at the negative end, 60 in at the positive end, from the machine configuration.
- Screw lead and any motor-to-screw ratio: not in hand; they come from the machine drawing.
The rule in words: pulses per revolution belong to the encoder disk; counts per revolution belong to the controller, which may count one edge per pulse (1x), both channels' edges (2x), or all four edges (4x). Degrees per count is 360 divided by counts per revolution; inches per count is the shaft travel per motor revolution divided by counts per revolution.
The arithmetic, written out:
- At 1x: 4096 counts per revolution, so 360° ÷ 4096 = 0.0879° per count.
- At 4x: 4096 × 4 = 16,384 counts per revolution, so 360° ÷ 16,384 = 0.0220° per count.
- The one-revolution test: with the amplifier disabled, mark the shaft, turn exactly one revolution by hand, and read the change in actual position. A reading of 4,096 settles 1x counting; 16,384 settles 4x.
The decision: the reading from that test is the axis's counts per revolution, so use it, not the label. Then finish the division with the real lead and ratio from the drawing before running any 0-to-60 in test. If the reading is neither value, stop and resolve the wiring or the scaling first; the Z latch would still work as a reference, but every inch derived from it would be scaled wrong.
Verifying the home in counts and in inches #
Run the full sequence from at least three starting positions spread over the stroke. Every cycle must end on the same Z edge count; the spread between latched counts is the home repeatability, and once the scale is fixed you can state that spread in inches.
Command a short positive move and compare commanded displacement, actual displacement and an independent measurement such as a dial indicator. Positive motion must increase the position value; if it decreases, correct the sign mapping before the test, not after it.
Power-cycle the controller and the amplifier exactly the way the machine will be operated. The axis must refuse motion inside the 0-to-60 in envelope until a fresh home completes. Exercise that refusal once by aborting a home mid-sequence, and confirm automatic motion stays inhibited until a home finishes.
If there is no Z channel #
Then the stop is the whole reference. Settle against the verified stop under the torque limit, issue the Set Actual Position command so the axis reads 0 in, and back away under closed loop. What you gain in simplicity you pay for in repeatability: the reference now repeats only as well as the stop, the stiction on reversal, and any backlash between motor and load allow, not to one encoder count. For a test that starts at the retracted end and tolerates a few thousandths of an inch of spread, that is a workable reference. If the required repeatability is tighter than the stop can deliver, the fix is hardware at the next revision: an encoder with an index, or a home switch wired to the controller's high-speed Home input.
Questions asked
Do I need to home before every test run, or only once at power-up?
Once per power-up is enough while the motor, coupling, ball screw and load stay rigidly connected and the feedback count stays valid. Re-home after an encoder or following-error fault, a controller or amplifier restart, feedback wiring work, movement by hand with the amplifier disabled, coupling slip, or an impact. Between those events the reference holds, so a test that runs minutes after homing needs no second home.
Can the commutation signals on the encoder serve as the home reference?
No. Commutation signals tell the servo amplifier the motor's electrical angle so it can commutate; they repeat every electrical cycle, not once per shaft revolution. A dedicated Z index produces exactly one pulse per encoder revolution and is the signal a home latch can capture. If the datasheet lists differential complements, /Z is the inverted index, not a second reference to choose between.
How repeatable is Z-index homing compared with setting position at the stop?
A Z latch repeats to one count. On a 4096 ppr encoder counted at 4x, one count is 0.0220 degrees of motor rotation; at 1x it is 0.0879 degrees. The stop-only method repeats only as well as the stop, the stiction on reversal and the backlash allow, which is usually far coarser. That is why the index latch is the fine reference and the stop only fixes which revolution to expect.
How do I convert 4096 ppr into inches per count?
Verify the counting convention first: rotate the motor exactly one revolution with the amplifier off and read the position change. A reading of 4,096 means 1x counting, 16,384 means 4x. Then divide the screw travel per motor revolution, including any ratio, by that count. The 4096 figure alone cannot give inches per count, because convention, ratio and lead are three separate inputs.