High dynamic control of a stepper motor for textile applications