• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Using reported Z trigger height as input for G31

Scheduled Pinned Locked Moved Solved
Tuning and tweaking
2
6
237
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    flobler
    last edited by flobler 14 Mar 2021, 13:43

    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 🙂

    1 Reply Last reply Reply Quote 0
    • undefined
      jay_s_uk
      last edited by 14 Mar 2021, 15:19

      Does this help?
      https://forum.duet3d.com/topic/22139/macro-for-automatic-calibration-of-bl-touch?_=1615459969334

      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

      undefined 1 Reply Last reply 14 Mar 2021, 17:35 Reply Quote 1
      • undefined
        flobler @jay_s_uk
        last edited by 14 Mar 2021, 17:35

        @jay_s_uk

        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.

        undefined 1 Reply Last reply 14 Mar 2021, 17:38 Reply Quote 0
        • undefined
          jay_s_uk @flobler
          last edited by 14 Mar 2021, 17:38

          @flobler only anything that specifically releates to the bltouch, such as retractprobe.g

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          undefined 1 Reply Last reply 14 Mar 2021, 17:38 Reply Quote 1
          • undefined
            flobler @jay_s_uk
            last edited by 14 Mar 2021, 17:38

            @jay_s_uk

            great, thanks again, very helpful 🙂

            1 Reply Last reply Reply Quote 0
            • undefined
              flobler
              last edited by flobler 14 Mar 2021, 19:09

              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.

              1 Reply Last reply Reply Quote 2
              3 out of 6
              • First post
                3/6
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA