Trying to run Stepper Motor to certain position then change speed

I would not use 0 RPM to stop a motor. I would simply stop calling the function that makes the motor move.

I don't understand the power-off problem.

...R