Using reported Z trigger height as input for G31
-
I am currently trying to automate the process of defining and fine tuning the Z offset for my Prusa MK3S Bear with a Duet 3 Mini 5+ as much as possible through macros.
Currently I have the following idea (I am following the procedure described here: https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe) :
1. Run step 1-3 with a "preparation macro"
2. Manually move the nozzle down until it touches the bed
3. Run step 5-11 with a "apply Z offset macro"I am stuck at the point where I want to take the triggered value reported from G30 S-1 and automatically (without manual user input) use it as input for G31 Z<triggered value> so I can save it to config-override.g via M500
Questions:
a) Can I use the output from "G30 S-1" in the "G31" command automatically and if so, how?
b) Is there a way to combine the 3 steps I am describing above into a single macro that stops, lets the user move the nozzle until it touches the bed and then continues to run steps 5-11 from the "calibrating a Z probe" guide?Thanks for helping me out
-
-
Thanks very much!
This looks like it is exactly what I need. Only need to figure out what I need to remove/adjust as we are not using a BL Touch but a Pinda/SuperPinda.
-
@flobler only anything that specifically releates to the bltouch, such as retractprobe.g
-
great, thanks again, very helpful
-
For anyone reading this later, this is a working macro to calibrate the Z trigger height for the Pinda/Superpinda: z_offset_calibration.txt
EDIT: one might want to heat the bed to the bed temperature that will be used for printing to get an accurate result throughout the procedure. In my case with the MK3 bed and a temperature of 85C for printing PETG the value was about 0.15mm off compared to running the macro with a cold bed.