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

    Call end.g when sdcard file completes

    Scheduled Pinned Locked Moved
    Firmware wishlist
    3
    4
    576
    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.
    • TickTockundefined
      TickTock
      last edited by

      Although slicers will automatically add pre and post code, I would like the firmware to automatically call a macro upon completion of the print.

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

        You can create a file called end.g and then call it with the M98 command from your slicer end code.

        https://duet3d.dozuki.com/Wiki/GCode#Section_M98_Call_Macro_Subprogram

        So add M98 end.g to the slicer end code.

        Then add whatever you want to end.g

        Z-Bot CoreXY Build | Thingiverse Profile

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

          It already calls stop.g if your file ends with command M0.

          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
          • TickTockundefined
            TickTock
            last edited by

            Thanks. And thanks. I suspected there must be already a solution.

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