Check if clicky probe is attached on startup
-
Original Post:
I would like to include a check at the beginning of some routines to see if the klicky probe is attached to the hot end and if it is ignore any commands to execute a deploy probe that follows. I believe that "if sensors.probes[0].value[0] == 0" is the right command for the test. I am not very knowledgeable on Python so I don't know what commands to add in the lines after that to tell the system not to deploy the probe again and just proceed as it already attached. This is not a situation that would occur very often.Here are my failed attempts to make this work!
homez.g.txt
homeall.g.txt
deployprobe.g.txtI would still appreciate some input on this post if anyone has any? Thanks
-
This post is deleted! -
@KenW Thanks I will have a look at it tomorrow.
-
This post is deleted! -
@JADoglio i have a similar probe to the clickeee
echo "Pick up Probe" M564 S0 ; let travel outside print zone if sensors.probes[0].value[0]==0 ; if sensor is value other than 1000 do this, 0 = probe attached echo "Probe already picked up" else G1 X31.25 F12000 ; X position of flint zone G1 Y-34 F12000 ; Y position of flint zone M400 ; wait for moves to finish G1 Y0 F6000 ; slide probe out of dock - slowly M400 ; wait for moves to finish if sensors.probes[0].value[0]=1000 ;throughs a stop because coulnd get hold of sensor G1 X100 Y60 F10000 abort "Probe not picked up!" M564 S1 echo "Pick up Probe fin"
-
@moth4017 said in Check if clicky probe is attached on startup:
echo "Pick up Probe"M564 S0 ; let travel outside print zoneif sensors.probes[0].value[0]==0 ; if sensor is value other than 1000 do this, 0 = probe attached echo "Probe already picked up"else G1 X31.25 F12000 ; X position of flint zone G1 Y-34 F12000 ; Y position of flint zone M400 ; wait for moves to finish G1 Y0 F6000 ; slide probe out of dock - slowly M400 ; wait for moves to finishif sensors.probes[0].value[0]=1000 ;throughs a stop because coulnd get hold of sensor G1 X100 Y60 F10000 abort "Probe not picked up!"M564 S1echo "Pick up Probe fin"
Moth, thank you this is exactly what I needed. Here is the final version I wound up using, deployprobe.g.txt . Much appreciated.