deployprobe.g in sys folder M98 P"Home if needed.g" if sensors.probes[0].value[0] == 0 ; if sensor is value ia 0 do this, 0 = probe attached echo "Probe already attached" if sensors.probes[0].value[0] == 1000 ; if sensor is 1000 do this, 1000 = probe detached G1 X53 F20000 ; X position of klicky dock G1 Y340 F20000:120 ; Y position of klicky dock G1 Y345 F600 M400 G1 Y175 F12000 ; slide out of dock return to bed Y center G1 X175 F12000 Z10 ; slide out of dock return to bed X center M400 ; wait for moves to finish if sensors.probes[0].value[0] == 1000 ;Check to see if probe is attached 1000 = not attached G1 X175 Y175 F10000 abort "Attach probe FAILED!" else echo "Attach Probe Successfull" retractprobe.g in sys folder 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 echo "No probe to retract" 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