Yes, when I change the name of retractprobe.g, homez.g runs perfectly and stops in the middle of the bed.
I updated retract probe for my machine and rehomed it. It ran the home perfectly and docked the Klicky on target using this file. But I would still like to know what is causing the behavior.
Sorry, I should have posted that file with the question. I did not write this macro. I borrowed it from Fulg on GitHub as a place to start. I added the comments would appreciate knowing if any are incorrect. My probe is set to P5, as you noted, so I am not understanding why this is executing at the end of homez.g without being called by M402.
if sensors.probes[0].value[0] == 0 ;check for probe status 0 if attached 1000 if not
M564 H1 ;set move without homing Why is this needed?
G90 ;set absolute moves
G1 X92.5 Y350 F10000 ;Probe storage location correct for my machine
G1 X100 ; move left to detach
G1 Y300 ;move to clear detach
M400 ;wait for current move to finish
if sensors.probes[0].value[0] == 0 ;again not sure, check for detachment?
abort "Probe detach failed" ;error message when the probe stays attched
G1 X175 Y175 ;move to bed center
As always appreciate the help.