How-to
Calculating servo stopping distance before MC_Stop
Short answer
An axis stopped by MC_Stop travels its speed squared divided by twice the deceleration, s = u²/(2d), measured from where the stop is issued. At 15,000 mm/s with 45,000 mm/s² the ideal travel is 2,500 mm in 0.333 s, assuming constant deceleration. Latency, jerk limiting and following error sit outside the formula, so confirm the figure with one measured stop before planning clearances around it.

On this page
An axis stopped by MC_Stop behaves like any body under constant deceleration: its stopping travel is the speed squared divided by twice the deceleration, s = u²/(2d). For the case worked here — a servo axis with no load, running at 15,000 mm/s under MC_MoveVelocity and stopped with 45,000 mm/s² of deceleration — the ideal travel is 2,500 mm and the ramp lasts 0.333 s. That figure covers the pure ramp and nothing else: the delay between the trigger and the start of the ramp, any jerk limiting in the drive, and the following error all sit outside the formula. Below is the arithmetic, the procedure for your own axis, and a measured test that turns the calculated travel into a number you can plan clearances with.
The stopping-distance equation #
Start from the constant-acceleration relation v² = u² + 2as. The axis finishes at zero velocity, so v = 0, and writing the deceleration as a positive magnitude d gives:
s = u² / (2d)
Here s is the stopping travel, u the speed at the moment the ramp begins, and d the deceleration magnitude. Keep the units matched: mm/s and mm/s² leave the distance in mm, because mm²/s² divided by mm/s² is mm. The same assumption gives the ramp time, t = u/d, and a cross-check: the travel equals the area under the velocity-time line, half the speed times the ramp time.
In the PLCopen motion library, MC_Stop is documented as the block that stops an axis on a defined deceleration ramp and then locks it against other motion commands. The block executes the ramp; the calculation tells you where that ramp lands.
Working the stop from 15,000 mm/s at 45,000 mm/s² #
The case is a servo axis with no load, driven by MC_MoveVelocity and stopped by MC_Stop.
Inputs:
- u = 15,000 mm/s: the speed the axis holds at the instant MC_Stop is issued.
- d = 45,000 mm/s²: the deceleration value given to MC_Stop.
- Final speed 0 mm/s: the axis must stand still at the end of the ramp.
The rule in words: square the speed, divide by twice the deceleration magnitude.
s = u² / (2d) s = (15,000 mm/s)² / (2 × 45,000 mm/s²) s = 225,000,000 mm²/s² ÷ 90,000 mm/s² s = 2,500 mm
The ramp time follows from the same assumption, t = u/d, which for these inputs is 0.333 s. Half the speed times the ramp time returns the same travel, so the two lines agree.
The result is an ideal stopping travel of 2,500 mm, and it is a calculated figure for these inputs, not a measured one. Decision: this axis needs that much free travel in its direction of motion from the point where MC_Stop fires. If the obstruction is closer than the calculated travel plus the correction from the measured test below, do not stop from full speed — bring the MC_MoveVelocity speed down before the trigger, because the travel falls with the square of the speed, or raise the deceleration.
Predicting the stop position on your axis #
- Record the position the axis holds at the instant MC_Stop is issued; the travel adds to this point, in the current direction of motion.
- Take u as the speed in effect at that same instant. MC_MoveVelocity can change speed while it runs, so use the live value, and the highest reachable speed when you size for the worst case. On a no-load axis the actual speed tracks the commanded speed, so the commanded value serves.
- Take d as the deceleration magnitude given to MC_Stop, as a positive number in the same length unit as u.
- Square u and divide by twice d; that is the ideal travel.
- Add the travel to the reference position from the first step to get the ideal stop position.
- Run the measured stop described next and record the correction; the corrected travel is the number you plan with.
What the formula leaves out #
Four effects sit outside s = u²/(2d). Three of them stretch the stop; the fourth shifts the landing point.
- Command latency. The axis holds its speed between the trigger event and the moment the ramp actually starts, so each increment of delay adds travel equal to the speed multiplied by the delay. At the worked speed, 15,000 mm/s × 0.001 s = 15 mm for every millisecond of latency.
- Jerk limiting. A drive that rounds the corners of the velocity ramp reduces the effective deceleration, and a smaller deceleration means a longer travel.
- Torque limits. If the ramp asks for more braking torque than the motor and drive can deliver, the axis cannot follow it and the stop stretches. Whether an axis can hold a commanded deceleration is a sizing question, and Calculating Servo Axis Acceleration for Torque Sizing works that arithmetic.
- Following error. During the move the axis sits a small distance off its commanded position, and the landing point shifts by roughly the following error held when the ramp began. On a no-load axis that is small; on a loaded axis, measure it.
Turning the calculated travel into a clearance limit #
The calculated travel is a planning number. The clearance number comes from one measured stop:
- Choose a repeatable trigger point with room beyond it.
- Run the axis at the speed in question and issue MC_Stop from that point.
- Read the final position; the difference from the trigger point is the measured travel.
- Repeat at least five times and keep the longest result.
- Correction equals the longest measured travel minus the calculated travel. Plan clearances with the calculated travel plus the correction, and re-measure whenever the speed, the deceleration value or the mechanics change.
If the measured travel is far longer than the calculated one, check in this order: the delay between the trigger and the block reacting (the PLC scan and the logic in between), the ramp and jerk settings in the drive, whether the actual speed matched the commanded speed, and whether the axis held the commanded deceleration without hitting a torque limit. Where the stop must land inside a tracking window, Stop Window Margin Before the Tracking Distance Limit covers that margin arithmetic.
When the stop has to be safe #
MC_Stop is a standard motion function, not a safety function, and a standard controller must not be relied on to protect a person. A stop that protects people comes from the drive's safety-rated functions — safe torque off or the safe stop ramps defined in IEC 61800-5-2 — selected through the machine's risk assessment. Use the travel calculated here for sequencing and clearances; take stopping-time data for guarding distances from the safety function's own documentation.
Questions asked
Does the load on the axis change the stopping distance?
On the no-load axis of the example the actual speed tracks the commanded speed, so the ramp dominates. With real inertia the drive must produce braking torque, and when the ramp asks for more than the motor or drive can deliver, the axis cannot hold the commanded deceleration and the travel grows. The calculated figure is then a lower bound, and only a measured stop gives the usable number.
Which speed do I use when MC_MoveVelocity keeps changing speed?
Use the speed in effect at the instant the stop is issued. Because the travel grows with the square of the speed, size the clearance for the highest speed the axis can hold anywhere the stop may fire; from half that speed the travel is a quarter. Recalculate whenever the running speed or the deceleration value changes.
How do I shorten the stopping travel?
Double the deceleration and the travel halves; halve the speed and it falls to a quarter. The deceleration is capped by the braking torque the motor and drive can deliver and by what the coupling, belt or mechanics tolerate, so confirm any higher value with a measured stop before planning around it.
Does MC_Stop hold the axis once the ramp finishes?
Yes. The block brings the axis to rest on the defined deceleration ramp and then locks it against other motion commands. Other motion blocks cannot move the axis again until the stop is released, so a restart sequence has to clear the stop block first.


