...
Check in MotorScope that the negative encoder limit, the index mark and the positive limit are detected and in the right places.
Check the encoder readhead and make sure that it does not blink red when crossing the index mark.
If it does, rephase/recalibrate the encoder.
Make sure that the machine cannot be pushed into a space between the encoder limit and the hard stop where the encoder limit cannot be detected.
...