Error: alarm 1 Task stopped

Hard limit triggered. The machine position has probably been lost due to a sudden and immediate stop. Repeating homing is highly recommended.
On or near line 1:
Task stopped
How to go on?
Steffen

Check the guide here: Limit Switches - Diode Laser Wiki It shows how to debug our limit switches.
When is it triggered? All the time or only when it hits the switches?