• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    TickTock
    last edited by 6 Mar 2018, 00:13

    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
    • undefined
      Phaedrux Moderator
      last edited by 6 Mar 2018, 04:23

      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
      • undefined
        dc42 administrators
        last edited by 6 Mar 2018, 09:01

        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
        • undefined
          TickTock
          last edited by 6 Mar 2018, 12:23

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

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