Explainer
Position control vs velocity control in servo systems
Short answer
Position control regulates measured position against a position command so the axis stops at a target; velocity control regulates speed against a speed command regardless of load. Most servo drives nest them: an outer position loop generates the velocity demand, an inner velocity loop delivers it, and the encoder's pulse count gives position while pulse rate gives speed.

On this page
Position control and velocity control are two different things for a servo to regulate, and a servo that reaches the right place but will not hold speed, or holds speed but stops in the wrong place, is controlling the wrong quantity for its task. Position control drives the measured position to a position command so the axis stops at a target. Velocity control drives the measured speed to a speed command so travel speed stays constant as load changes, with no inherent stopping point. Most servo drives use both at once in a cascade: the outer position loop generates the velocity demand, and the inner velocity loop delivers it.
What each loop regulates #
A position loop, in the standard definition, maintains the motor's position at a desired value by amplifying the position error (commanded position minus measured position) into a command for the next loop. A velocity loop does the same with speed: it compares commanded and measured velocity and turns the difference into a torque or current command. Position is the integral of velocity over time, and velocity is the derivative of position; the two quantities are linked, but the loop you close decides which one the axis corrects.
| Control requirement | Regulated quantity | Fits | What it does not give alone |
|---|---|---|---|
| Position | Position error | A drill head that must reach a coordinate; a feeder that must stop at a length | A defined travel speed, unless the controller also generates a profile |
| Velocity | Velocity error | A spindle or conveyor that must hold speed as load changes; a joystick jog | Stopping at a particular coordinate |
| Both, cascaded | Outer position loop feeding an inner velocity loop | An axis that must travel at controlled speed and stop at a target | Anything without correctly scaled feedback and set limits |
Choosing a mode by machine name is unreliable. A CNC drill needs position control because the result is a location; an elevator needs both, speed for ride quality and position to level with the opening; a web spindle needs velocity only. Identify whether the process result is a location, a speed, or both, and pick the mode from that, not from the machine type.
How the cascade works #
In a cascaded servo, the position controller runs at a slower or equal update rate than the velocity loop and outputs a velocity command. The velocity loop, running faster, compares that demand with measured speed and outputs torque. When the axis is at target, position error is zero, the velocity demand is zero, and the axis holds. During a move, the position error is deliberately nonzero and its size sets how fast the axis travels. This is why an axis that must stop repeatably needs position control, as covered in the article on why a servo axis needs position control to stop at the same position, and why a pure speed task such as making a servo jog follow a joystick velocity demand runs velocity mode with no position target at all.
The encoder feeds both loops #
The controller needs feedback that represents physical motion. An incremental encoder reports pulses: the accumulated count is position, and the rate of count change is velocity. A linear encoder measures travel directly; a rotary encoder measures shaft angle and the controller converts through the mechanics. Both loops fail together if the scaling is wrong, so set counts to real units and confirm direction before tuning either loop. The same count-versus-rate distinction decides which feedback interface fits, a question covered in which feedback for servo speed control: resolver, 1 Vpp or HTL.
Worked example: one encoder, both quantities #
Calculated example, not a measurement. An axis uses a rotary encoder of 8192 counts per revolution on a ballscrew with 10 mm lead.
Position resolution: 10 mm / 8192 counts = 0.00122 mm per count, about 1.2 micrometres of table travel per count.
Position from count: a commanded move of 200 mm needs 200 mm / 0.00122 mm = 163840 counts, which is 20 revolutions of the screw. The position loop stops the axis when the accumulated count reaches 163840.
Velocity from count rate: for a travel speed of 250 mm/s, the screw turns 250 mm/s / 10 mm = 25 revolutions per second, and the encoder delivers 25 x 8192 = 204800 counts per second. The velocity loop regulates so the measured count rate stays at 204800 counts per second while load varies; at 50 Hz the controller samples 4096 counts per update at that speed.
The decision from those numbers: stopping at the 200 mm coordinate is a position task, holding 250 mm/s during the travel is a velocity task, and the cascade does both from the same pulse train, with the position loop's output becoming the velocity loop's input.
Verifying which loop is misbehaving #
If command and feedback disagree, compare the feedback display with physical motion first. If the axis physically moves 200 mm but the display shows 160 mm or the wrong sign, the fault is encoder scaling or direction, and no loop tuning will fix it. If the display tracks the axis but the axis does not track the command, the fault is loop setup, gain, or a limit. If tracking degrades as load rises, check the drive's torque capability against the load rather than re-examining the control-mode terminology.
One safety note: a velocity-controlled axis has no stopping coordinate. A vertical axis left in velocity mode with a zero speed command is held only by the drive's torque loop and can fall on power loss, so any axis that must stay put needs position control or a holding brake, verified against the machine's risk assessment.
The decision #
Need a location: position control. Need a speed: velocity control. Need both, which is most machine axes: run position mode and let the drive's cascade handle velocity underneath, with the encoder scaled correctly before anything else. Confirm the drive's supported modes and command units in its own manual, since the parameter names and the loop arrangement differ between products, but the two quantities, and the choice between them, do not.
Questions asked
Can position control and velocity control be used together?
Yes, and in most servo drives they already are. A cascade arrangement puts a position loop outside a velocity loop: the position error produces the velocity command, and the velocity loop produces the torque command. When you command a move in position mode, the drive is still running velocity control underneath it.
What does a position error of zero mean in cascade control?
It means the axis is at its target and the position loop asks for zero speed, so the axis holds still. During a commanded move the position error is deliberately nonzero; its size sets the velocity demand, which is why position following error grows with commanded speed and depends on the position loop gain.
When is velocity mode alone the right choice?
When the process cares about speed, not stopping point: a spindle, a fan axis, a conveyor head pulley, or a joystick jog where the operator sets speed and watches position. This is how a servo jog follows a joystick velocity demand; the drive holds the set speed as load varies and stops on command, not on a coordinate.
Does a velocity-controlled axis hold position when it stops?
Only with a brake or a closed torque loop at zero speed, and only within its torque capability. Velocity mode has no stopping coordinate, so an unbraked vertical axis can drift or fall when the drive enables zero speed command. Any axis that must stop and stay at a level needs position control or a holding brake.

