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

Forced Ending Script or Macro

Scheduled Pinned Locked Moved Solved
Tuning and tweaking
4
5
183
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
    3DPotter
    last edited by 3DPotter 26 Apr 2024, 18:05

    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

    undefined undefined undefined 3 Replies Last reply 26 Apr 2024, 19:03 Reply Quote 0
    • undefined
      jay_s_uk @3DPotter
      last edited by 26 Apr 2024, 19:03

      @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
      • undefined
        OwenD @3DPotter
        last edited by 26 Apr 2024, 23:58

        @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
        • undefined
          moth4017 @3DPotter
          last edited by 27 Apr 2024, 01:34

          @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
          • undefined
            3DPotter
            last edited by 2 May 2024, 15:04

            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
            • undefined 3DPotter has marked this topic as solved 2 May 2024, 15:04
            3 out of 5
            • First post
              3/5
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA