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

    Can I start a print job from a macro

    Scheduled Pinned Locked Moved
    Gcode meta commands
    3
    5
    106
    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.
    • mikeabuilderundefined
      mikeabuilder
      last edited by

      RRF 3.6.0-rc.2
      MB6HC

      I've created a print job designed to help me tweak my z offset. It's a single layer rectangle with some added meta commands to let me position it anywhere on the bed. It works great. It's called "first layer.gcode"

      I've also written a macro utility to assist in changing filaments. it also works great.

      Now I want to let the user start tart the print job at the end of the filament changing macro, but I'm not sure how to do this. I tried M98 P"0:/gcodes/first layer.gcode". This does launch the job, but it does not run start.g at the beginning or enable the pause and cancel buttons in DWC. Is there a proper way to do this? I know I can add a conditional call of start.g and stop.g in first_layer.gcode, but I want to have access to the pause and cancel print buttons.

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        Have you seen M23 and M24?

        https://docs.duet3d.com/User_manual/Reference/Gcodes#m23-select-sd-file

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • mikeabuilderundefined
          mikeabuilder
          last edited by

          @Phaedrux - I have now. Thanks!

          dc42undefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @mikeabuilder
            last edited by

            @mikeabuilder also look at M32.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 0
            • mikeabuilderundefined
              mikeabuilder
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA