you always ramp within a ramp with motors
not just straight up
take it in stages of ramp to allow as other point out the latent hysterisis of motors and momentum etc to allow the new stable state
when each state is reached {using sensors } the software issues a speed ramp of a little then checks to see conformance
it is the conformance and ramp too it most machines use
things like washing machines etc use this ramping on sense system to drive pwm to ac motors via triacs checking things like load disrtibution pump out water is ongoing heat isnt too much how many rinses to go what spin speed as a max on this spin cycle etc
stable stages depend on load stress planed for and mechanics like th eframe the motor sits in drum speed etc etc max load etc.....and more these days efficiency steps like if no more water comes out ramp down pump less etc ,,,, energy savings
so...
there are many kinds of stepper motor also
ac motors use a pickup coil and ramp synromech with the motor speed
the faster it goes the higher the frequncy in sync sync broken = apply power again
till sync most older washing machines use these rotor coils