Controlling the stepper motor

loop runs over and over again. Each loop steps 25600.
If the motor would stop after 25600 steps, what would make it start again?