Accelstepper homing every time?

Following from Reply #8, and probably simpler than what I suggested in Reply #4, would be to have the limit switches wired so that they just cut power to the motor and signal an error to Arduino program.

On the other hand, something is causing the system to misbehave and it could be fixed.

...R