Stepper motor with limit switches for long term installation