if sensors.probes[0].value[0] == 0 ; Checks to see if probe is active and attached G90 ; set absolute moves G1 Y300 F20000 G1 X53 F20000 ; defines X dock location G1 Y345 F20000 ; defines Y dock location G1 X175 F20000 ; move right to detach probe G1 Y175 F20000 ; move to bed center G1 Z50 M400 echo "Probe retracted Successfully" else abort "Probe retract failed" ;if sensors.probes[0].value[0] == 0 ;chek for successful detachment (0 = success 1000 = fail ; abort "Probe retract failed" ;error message when the probe stays attched