I am writing my own specific PC-side software to interact with GRBL CNC controller. I have XYZ limit switches (both sides) and Homing cycle is enabled. All hardware is working good. I need it for repetitive movements and I would like to have quick recovering in case if something went wrong (like touching limit sensors). My questions are:
-
How PC-side software may know position is lost and re-homing is required?
I am planning to rely on error or alarm messages from GRBL, is this valid approach? Any better ideas? -
Standard homing command ($H) fails when I am already on position with tripped limit switches. I have to manually move it out of edges and run $H after that. What is the best procedure to automatically recover?
GRBL version is 1.1f.