So I bought a cheapie ballscrew ; one axis.
I G-Coded a simple program so that ball nut goes either direction for 10 seconds continuously.
The reset point is to the far left.
My question is; if a problem such as a jam occurs and the stepper motor loses it's positioning increment, how does one now caliberate the whole setup on a "reset" before a fresh "START"
Because by pressing reset the ballnut will hit end stops due to the motor losing it's positioning during the jam.
Is there a way to put limit switch at either end and a "homing sequence" taking place before the fresh "START"