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

    How to run a macro after resume.g

    Scheduled Pinned Locked Moved
    General Discussion
    4
    6
    319
    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.
    • code7undefined
      code7
      last edited by

      Does anyone know how I can run a macro that is executed directly after running resume.g?

      Resume.g returns the tool to the position it was in prior to pausing but I need to run a macro after the tool returns to this location and starts printing again.

      Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

      cosmowaveundefined 1 Reply Last reply Reply Quote 0
      • cosmowaveundefined
        cosmowave @code7
        last edited by

        @code7 why not calling the macro at the end of resume.g?

        Mankati FSXT+, DeltaTowerV2, E3D MS/TC

        code7undefined 1 Reply Last reply Reply Quote 1
        • code7undefined
          code7 @cosmowave
          last edited by

          @cosmowave said in How to run a macro after resume.g:

          why not calling the macro at the end of resume.g?

          Adding the macro in the resume.g runs it prior to the tool returning to its paused position.

          Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

          fcwiltundefined deckingmanundefined 2 Replies Last reply Reply Quote 0
          • fcwiltundefined
            fcwilt @code7
            last edited by

            @code7 said in How to run a macro after resume.g:

            @cosmowave said in How to run a macro after resume.g:

            why not calling the macro at the end of resume.g?

            Adding the macro in the resume.g runs it prior to the tool returning to its paused position.

            Have you tried adding a M400 command after the last command in resume.g?

            And then adding any additional commands after that?

            Frederick

            Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

            1 Reply Last reply Reply Quote 0
            • deckingmanundefined
              deckingman @code7
              last edited by deckingman

              @code7 said in How to run a macro after resume.g:

              Adding the macro in the resume.g runs it prior to the tool returning to its paused position.

              It shouldn't do. The command to move to the last print position should be a G1 R1...... So if you add your commands or M98 macro call after this line, it ought to work. But you will probably need to add M400 or an appropriate G4 command to wait for any moves to complete. So something like G1 R1 ...... then M400 (or G4 Pn) then M98......(or a bunch of other commands) ought to work.

              EDIT. @fcwilt beat me to it while I was typing.

              Ian
              https://somei3deas.wordpress.com/
              https://www.youtube.com/@deckingman

              1 Reply Last reply Reply Quote 1
              • code7undefined
                code7
                last edited by code7

                @deckingman @fcwilt

                That was a simple fix. Thanks guys.

                Delta Printer Using a Duet 2 Wifi v1.04c, FW3.4.0beta2, Duet WiFi sever 1.26, Duet Web Control 3.3.0

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