Explainer
Why a Servo Axis Needs Position Control to Stop at the Same Position
Short answer
A speed command ends wherever the deceleration ramp leaves the shaft, so the stopping angle changes with load and timing. Repeatable stopping needs a closed position loop on a homed coordinate, one function owning the trajectory, and a target placed far enough ahead to absorb the deceleration distance.

On this page
A servo running on a speed command cannot stop at the same angle twice, no matter how good the motor or the encoder is. A speed reference tells the drive how fast to turn; it says nothing about where the shaft ends up. When you drop the speed to zero, the axis coasts through its deceleration ramp and lands wherever load, friction and timing put it. The fix is architectural, not a tuning change: close the position loop on a homed coordinate and command a position target instead of a speed target.
What a speed stop actually does #
On a speed-controlled axis, the deceleration ramp converts the commanded speed down to zero over a fixed time or rate. The distance covered during that ramp depends on everything the ramp does not control: load torque, friction, the exact moment the stop command arrives relative to shaft angle. Two consecutive stops from the same speed land at different angles, and the spread widens with higher inertia and softer ramps.
Reading the encoder value does not change this. Position feedback is already part of every servo drive; the problem is that in speed mode nothing uses that feedback to correct the final angle. The drive regulates velocity, so overshoot past your intended stop point is never driven back. You know where the shaft is at all times, but you cannot make it stop on a chosen value.
What position control adds #
A position-controlled move closes the position loop: the motion function computes a full trajectory — position, speed and acceleration over time — ending exactly at the target, and the drive corrects any tracking error until the axis sits in the target window. The stop becomes part of the plan instead of a consequence of the ramp.
For that to be repeatable, three things must be true:
- A homed coordinate. Homing establishes the relationship between encoder counts and machine position. Without it, "the same position" is an arbitrary number. Even an absolute encoder needs its machine datum verified after encoder replacement or transmission work; the homing choices for a drive with an absolute feedback device are covered in homing an absolute encoder axis to a reference sensor.
- A defined coordinate type. A modulo coordinate wraps after one revolution, so the same angle recurs every turn. An accumulated coordinate keeps counting total travel. The two produce different target values for the same physical angle, and different approach behaviour.
- One owner of the trajectory. Either the drive's built-in basic positioner generates the move, or the PLC's motion axis does. Two functions commanding the same axis at once is a fault waiting to happen. If you see symptoms on an existing position axis instead, the mid-move fault path in troubleshooting a servo axis that faults mid move is the place to start.
Two architectures that own the command #
Most drives with a pulse, network or analog command interface offer a drive-based basic positioner: the positioning firmware lives in the drive, the PLC requests moves and reads status. This is the standard function set on drives such as the SINAMICS family, where it handles linear and rotary (modulo) axes in absolute or relative terms using the motor encoder, and computes a time-optimized profile to the target itself. It suits simple indexing and stop-at-angle tasks where the PLC does not need to coordinate several axes.
A PLC motion axis (a technology object in the PLC programming environment) generates the trajectory in the controller and commands the drive over the network. Choose this when the stop must be coordinated with other axes, cammed motion, or process events the PLC already owns.
Either works. What matters is that exactly one of them generates position targets, and that the old speed-mode command path — analog speed reference, pulse train, or whatever currently runs the axis — is handed over or removed, so the two cannot compete.
One distinction to keep clean: this positioning stop is a production function. It is not a substitute for the machine's safety-related stop, which is sized and validated against the machine risk assessment and the applicable machinery safety standard.
Separating motor angle from process angle #
The encoder sits on the motor shaft. If a gearbox, belt or coupling sits between the motor and the feature that must return to the same spot, motor accuracy says nothing about the mechanism — and a slipping coupling or a loose belt makes the motor "correct" while the process is not. Apply the transmission ratio in the axis scaling, and verify the displayed position against a measured revolution of the actual mechanism before you trust the first positioned stop.
Also decide the tolerance. "The same position" needs a number: for example, a process that accepts plus or minus 0.5 degrees at the table, or one that needs 0.05 degrees. The target window, the permitted approach direction (must rotation always finish forward, or may it reverse?) and the allowed stopping time are motion requirements you set, not settings the drive infers.
How much travel the deceleration needs #
The position target must sit far enough ahead that the planned deceleration ramp fits inside the remaining travel. If you command a target closer than the stopping distance, the axis either overshoots the window or the drive faults on an impossible profile. Here is the arithmetic for a typical case.
Worked example: stopping distance for a 1500 rpm axis #
Inputs (example values typical of a mid-size servo on a rotating table — take the real ramp from your drive's motion limits):
- Commanded running speed: 1500 rpm
- Deceleration rate: 3000 rpm per second (a moderate ramp for a table with modest inertia)
Rule: for a linear ramp from speed v to zero at deceleration a, the distance travelled is s = v² / (2a). Work in revolutions and seconds so the result comes out in revolutions.
Arithmetic:
- Convert speed: 1500 rpm = 1500 / 60 = 25 rev/s
- Convert deceleration: 3000 rpm/s = 3000 / 60 = 50 rev/s²
- Distance: s = 25² / (2 × 50) = 625 / 100 = 6.25 revolutions
Result: the axis needs 6.25 revolutions of travel to come down from that speed on that ramp. Doubling the deceleration rate to 6000 rpm/s halves the distance to about 3.1 revolutions; doubling the speed to 3000 rpm on the original ramp quadruples it to 25 revolutions, because distance scales with the square of speed.
Decision: with a modulo coordinate, plan the stop as a positioning move whose target lies more than the deceleration distance beyond the point where positioning begins — here, more than 6.25 revolutions of approach. With an accumulated coordinate and rotation that must not reverse, the next occurrence of the target angle is always a whole number of turns ahead, which on a one-revolution cycle automatically clears that margin. If your travel to the next stop is shorter than the deceleration distance, either raise the allowed deceleration rate, drop the running speed before the final approach, or switch to a planned indexing move whose profile is built for the shorter travel from the start.
The commissioning sequence #
- Identify what you have. Record the drive, its firmware, the enabled functions, the PLC and its motion capability, and how speed, enable and feedback currently travel between them.
- Define the coordinate. Decide modulo versus accumulated, the transmission scaling, the direction, and the position tolerance the process needs.
- Home the axis using the procedure your hardware and architecture document, and confirm the reported datum matches a measured feature on the mechanism.
- Hand the axis to one motion function. Set axis units, direction and limits; remove or gate the old speed command path so only one source commands the axis in each state.
- Test slowly with the mechanism clear. A low-speed positioned move that reports completion inside the tolerance proves the loop, the homing and the ownership in one shot. Then repeat from your real running speed and confirm the stop lands in the window every time.
The decision, stated plainly: keep speed mode and the stopping angle will wander; close the position loop on a homed coordinate, put the trajectory in one place, and place the target beyond the deceleration distance — for a 1500 rpm axis on a 3000 rpm-per-second ramp, that means at least 6.25 revolutions of approach.