G30 and QGL using a klicky probe issue
-
I have a Voron 2.4r2 running a Duet 3 Mini 5+ controller and a klicky probe. Everything is wired and working correctly but one thing is annoying. When I run QGL the G30 commend docks and undocks the probe at every corner. This takes time and is annoying. Is there a way to set up the QGL using G30 or some other command that will not continuously dock and undock the probe? My beg.g file is listed below. Thanks
; bed.g taken from the teamgloomy wiki
; version 1.01
if !move.axes[0].homed || !move.axes[1].homed ; If the printer hasn't been homed, home it
G28 XY ; home y and x
G29 S2 ; turn off bed mesh levelling
M561 ; clear any bed transform
M290 R0 S0 ; clear babystepping
M98 P"homez.g" ; call homez and pass parameter
M558 K0 H10 ; set toolhead probe dive height to 10mm
G30 P0 X25 Y15 Z-99999 ; probe front left
G30 P1 X25 Y280 Z-99999 ; prove back left
G30 P2 X335 Y280 Z-99999 ; probe back right
G30 P3 X335 Y15 Z-99999 S4 ; probe front right and level
M558 K0 H3 F600:300 ; set toolhead probe dive height to 3mm to speed up levelling
echo "BTC: 1 - Difference was " ^ move.calibration.initial.deviation ^ "mm" ; echo deviation
while move.calibration.initial.deviation >= 0.005 ; perform additional tramming if previous deviation was over 0.01mm
if iterations = 5 ; check that not more than 5 levelling attempts have been made
abort "Too many auto tramming attempts" ; abort if = to 5
G30 P0 X25 Y15 Z-99999 ; probe front left
G30 P1 X25 Y280 Z-99999 ; prove back left
G30 P2 X335 Y280 Z-99999 ; probe back right
G30 P3 X335 Y15 Z-99999 S4 ; probe front right and level
echo "BTC: " ^ iterations + 2 ^ " - Difference was " ^ move.calibration.initial.deviation ^ "mm" ; echo deviation
M118 P2 S{"BTC: " ^ iterations + 2 ^ " - Difference was " ^ move.calibration.initial.deviation ^ "mm"} ; echo deviation
continue
M98 P"homez.g" -
@JADoglio Put an M401 before the first M98 P"homez.g" then put an M402 at the end. That should override the pickup and docking called later on
-
@JADoglio you will also need to put a M402 just before the "abort" command, so that the probe will be returned to the dock if the macro aborts.
-
@dc42 and Jay_s_uk
Thanks for the tips. I was able to get the QGL working properly.
One other question, I would like to include a test to see if the probe is already attached to the hot end. I believe that "if sensors.probes[0].value[0] == 0" is the right command for that but I don't know what to add after that to tell the system not to deploy the probe again just use it as it already attached.
Thanks again for the help.