Speed, ramp controlled slow down of motor