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

    Forced Ending Script or Macro

    Scheduled Pinned Locked Moved Solved
    Tuning and tweaking
    4
    5
    192
    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.
    • 3DPotterundefined
      3DPotter
      last edited by 3DPotter

      Is there a way to force an ending script/macro/gocde file to run at the end of every print?

      I am fully aware of ending scripts in slicers and the Duet board macros. What I am looking for is when a print file is completed, the duet board runs a macro command or another gcode file by name. Even running the something like the pause.g or stop.g file would work this as well.

      The gcode print file that just finished does not have any run commands/scripts in the gcode file. And the Duet board automatically runs file X once a print has been completed, no mater what the print is or what is in the gocde file.

      https://3dpotter.com/
      The only dedicated 3D ceramic printer using real clay.

      https://www.instagram.com/3dpotter/
      https://www.youtube.com/c/3dpotter/
      https://www.facebook.com/3dpotter/
      https://www.reddit.com/user/3D_Potterbot

      jay_s_ukundefined OwenDundefined moth4017undefined 3 Replies Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @3DPotter
        last edited by

        @3DPotter stop.g is ran automatically in 3.5.1 at the end of a file

        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

        1 Reply Last reply Reply Quote 0
        • OwenDundefined
          OwenD @3DPotter
          last edited by

          @3DPotter said in Forced Ending Script or Macro:

          Is there a way to force an ending script/macro/gocde file to run at the end of every print?

          The gcode print file that just finished does not have any run commands/scripts in the gcode file. And the Duet board automatically runs file X once a print has been completed, no mater what the print is or what is in the gocde file.

          As @jay_s_uk has said, stop.g is run at the end of every print job.
          No such function exists for other gcode files such as macros.

          1 Reply Last reply Reply Quote 0
          • moth4017undefined
            moth4017 @3DPotter
            last edited by

            @3DPotter you could put a menu script in the stop.g file and then choose which script you wanted to run

            <

            1 Reply Last reply Reply Quote 0
            • 3DPotterundefined
              3DPotter
              last edited by

              Thanks. Works great. Was not working for me as I was on version 3.1
              Works great on 3.5.1

              https://3dpotter.com/
              The only dedicated 3D ceramic printer using real clay.

              https://www.instagram.com/3dpotter/
              https://www.youtube.com/c/3dpotter/
              https://www.facebook.com/3dpotter/
              https://www.reddit.com/user/3D_Potterbot

              1 Reply Last reply Reply Quote 1
              • 3DPotterundefined 3DPotter has marked this topic as solved
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA