Troubleshooting
Why a servo stops after one move on a position-complete bit
Short answer
When a servo makes one stroke and stops at home with no fault, the sequence logic, not the drive, is holding it. A position-complete bit describes the axis, not the finished command: the program must know which move finished, release that execute request and issue the next one. After homing, run fixed absolute endpoints, forward target and 0, instead of alternating relative moves.

On this page
A servo that completes one stroke, returns to home and then sits there fault-free is almost never a drive problem. The cause is in the sequence logic: a position-complete bit reports an axis condition, it does not act as a fresh trigger for the next move. The controller must know which move just finished, release that move's execute request, and then issue the next command. Fix that handshake and use fixed absolute endpoints after homing, and the axis reciprocates.
The symptom and what rules out the drive #
The observed behavior: an axis with an incremental encoder and a ball screw travels once and stops at home. No drive fault appears, the position feedback sits at the commanded endpoint, and a repeat command produces another single stroke. That pattern points at the command sequence. Current and temperature checks become relevant only when the drive reports an overload or another fault; a clean stop at the target first calls for a command-handshake check. If your axis instead stops mid-travel with a fault, the cause is elsewhere, and a mid-move fault after a drive swap is covered in troubleshooting a servo axis that faults mid move.
Why the position-complete bit lets the axis stop #
The typical history of this fault: the axis first reversed off two reed switches, one at each end. That worked but was rightly judged poor practice, because the sequence depended on switch actuation rather than a commanded endpoint, so a missed or held switch changed the sequence. The fix attempted was to replace the switch events with a position-complete indication. The trigger changed, but no alternating sequence existed for it to trigger.
Two failure modes follow:
- The position-complete bit stays asserted while the axis rests at target, including before a new move starts. If the program accepts an already-active bit right after issuing a command, it advances the sequence before that move has completed.
- The movement function block may require a fresh execute transition. If the program never releases the previous request, the next cycle never starts.
The deciding quantity is axis position relative to a valid home reference, and the deciding logic is a state that owns the next motion request. Only one sequence state should own it at a time. The same handshake discipline matters whenever an HMI button starts a stepper axis, as described in the stepper axis command handshake behind an HMI button.
Absolute endpoints after homing, not alternating relative moves #
An incremental encoder measures movement but needs an established reference before the controller can tie its count to a machine location. Homing establishes that relationship, and an absolute move command then means "travel to this coordinate" even though the encoder is incremental. PLCopen-style motion blocks follow this order: a positioning block moves the axis into a discrete-motion state only after a home has been performed, and the PLCopen motion specification defines this family of function blocks with execute, busy, done and error outputs. Absolute moves do not need an absolute encoder.
The working arrangement uses one absolute move block aimed at the forward target and a second one aimed at position 0. The home block runs once to set the encoder reference; position 0 is then the return endpoint, not an instruction to re-home on every stroke. Keep the operations separate: homing establishes the coordinate system, returning to zero moves within it. After any loss of reference, re-establish home before accepting production moves; how an absolute reference behaves across power cycles is covered in why an absolute encoder loses reference after a power cycle.
Relative moves remain fine for deliberate incremental travel, but with alternating relative moves each target depends on the starting position, so an interrupted or repeated command shifts the destination. For a repeated stroke between two physical positions, absolute targets make recovery simpler.
The checks before you cycle #
| Quantity or condition | Required relationship | Where to read it |
|---|---|---|
| Home reference | Valid before any absolute travel | Homing block result and axis reference status |
| Forward target | Inside usable travel and configured limits | Move-block input, axis scaling, measured screw travel |
| Return target | 0, per the home-coordinate definition | Return move block |
| Actual position | Converges on the active target within the completion tolerance | Position feedback and in-position settings |
| Completion bit | Belongs to the move currently awaited | Block outputs and the mapped bit definition |
| Motor load and temperature | Within drive and motor operating limits | Drive diagnostics and load monitor |
Confirm whether movement inputs take engineering units or pulse units, and derive travel from the configured scaling, screw lead and any transmission ratio rather than an assumed pulse count. A thread that reproduced this fault used a specific mapped completion bit address in its controller; confirm the definition of your own bit in your controller's documentation before trusting it, and prefer the move block's own done, busy, error and aborted outputs where provided.
Sizing the stroke for a 10 mm lead screw at 300 mm travel #
n This is a calculated example, not a measured result. Take a ball screw with a 10 mm lead and a gearbox ratio of 1:1, with a required forward travel of 300 mm from home and a command resolution of 10000 pulses per motor revolution.
The rule: motor revolutions equal travel divided by screw lead, and command pulses equal revolutions times pulses per revolution.
Arithmetic:
- Revolutions: 300 mm / (10 mm/rev) = 30 rev
- Pulses: 30 rev x 10000 pulses/rev = 300000 pulses
- The return move is the same distance back to 0, so it needs 300000 pulses in the opposite direction if relative moves were used.
Result: with absolute moves, the forward block's target is 300 mm (or 300000 pulses in the controller's units) and the return block's target is 0. The decision: above a handful of strokes between the same two positions, use the absolute endpoint pair; use relative moves only for one-off incremental travel. Command one stroke at commissioning speed and compare measured screw displacement against the commanded 300 mm before enabling repetition.
The sequence to program #
- Establish the reference. Run the homing routine with the mechanism clear, confirm successful completion, and confirm the resulting zero is the intended return position.
- Issue the forward command once, in its own state, supplying the target and the execution edge the block's documented interface requires.
- Wait for the forward result. Confirm acceptance, await the matching completion, and route errors or aborted motion to a stopped state, never to the reverse command.
- Release the forward request as the block requires, then issue the absolute return command and await its own completion before allowing another forward command.
- Repeat only while the cycle request and motion permissives stay valid, and define how a stop request leaves the sequence.
- Give the reed switches explicit duties, for example a forward limit or home reference, and keep them out of the normal stroke sequence. Limit-switch selection for fast axes is covered in mechanical vs proximity limit switches for a fast CNC axis.
Safety note: a software sequence is not a safeguard. An axis reciprocating under program control still needs hard travel limits and a stop path covered by the machine's risk assessment, not the sequence logic alone.
The decision #
A fault-free axis parked at home with no new command is a sequence-logic fault. Fix it with a state machine that owns one request at a time: issue, await the matching completion, release, issue the next. Homing once, then two absolute blocks, forward target and 0, gives you the repeat stroke; the position-complete bit becomes a monitored condition, not the trigger. If the drive faults mid-stroke instead, record the fault code and investigate mechanics, acceleration and load against the equipment ratings.
Questions asked
Why can the position-complete bit stay on after the axis stops?
Depending on its definition, it can be an in-position condition that remains true the whole time the axis rests within tolerance, including before a new move starts. If your sequence accepts an already-active bit right after issuing a move, it advances before that move has actually finished. Check whether the bit represents in-position, command completion or another mapped status, and when it asserts and clears.
Should I use relative or absolute moves for a repeat stroke?
Relative positioning suits deliberate incremental travel. For repeated travel between the same two physical positions, absolute targets are easier: each target is a fixed coordinate from home, so an interrupted or repeated command does not shift the destination, and recovery after a stop is simpler. Absolute moves work with an incremental encoder as long as a homing routine has established the reference.
When does a mid-stroke stop point at the drive instead of the logic?
When the drive reports a fault. A repeatable stop exactly at the commanded endpoint with no fault calls for the command-handshake check first. A command that is accepted and then trips the drive is a different investigation: capture the fault code, then check mechanical resistance, commanded acceleration and load against the drive and motor ratings.
What duties should the reed switches keep?
Do not use them as travel triggers. Give them explicit reference or limit duties, for example a forward limit that stops travel beyond the usable range or a home reference for the homing routine. A missed or stuck switch then cannot derail the normal stroke sequence, because the sequence depends on commanded endpoints.


