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

    Delay heater turnoff?

    Scheduled Pinned Locked Moved
    General Discussion
    3
    9
    585
    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.
    • fcwiltundefined
      fcwilt
      last edited by

      Hi,

      Currently I have a macro that is triggered in the slicer generated gcode at the end of the print. This macro (amont other things) turns off the various heaters.

      Is there any way to tell the heaters to turn off after some delay?

      Thanks.

      Frederick

      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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

        @fcwilt Put G4 Snnn before the command to turn off the heaters perhaps ? https://duet3d.dozuki.com/Wiki/Gcode#Section_G4_Dwell

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

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

          As @deckingman said.

          What is the reason for wanting a delay?

          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

          fcwiltundefined 1 Reply Last reply Reply Quote 0
          • fcwiltundefined
            fcwilt @dc42
            last edited by

            @dc42 said in Delay heater turnoff?:

            As @deckingman said.

            What is the reason for wanting a delay?

            I find the very often I need to start another print because I need to tweak the model and/or the slicer settings.

            It may take a few minutes to get the new gcode file ready.

            During that time the temps drop which slows the start of the new print.

            As mentioned, in my "print_end.g" file (which is triggered at the end of the print by the slicer gcode) I have commands to turn off the heaters.

            I don't want to have to manually turn off the heaters because I might forget or not be around to turn them off.

            So if I could instead specify a command that would turn off the heaters after a fixed delay, say 5 minutes, I could save time starting the next print as I would not have to wait for the temps to return to their active set points.

            Frederick

            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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

              @fcwilt

              So as I said then...

              Specifically, G4 S300 should give you the 5 minutes delay (5 x 60 seconds = 300).

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

              fcwiltundefined 1 Reply Last reply Reply Quote 0
              • fcwiltundefined
                fcwilt @deckingman
                last edited by

                @deckingman said in Delay heater turnoff?:

                @fcwilt

                So as I said then...

                Specifically, G4 S300 should give you the 5 minutes delay (5 x 60 seconds = 300).

                I did try that.

                G4 locks up the printer and even though I can upload the new file nothing happens until the delay expires. It's rather like having to wait for the heaters.

                I desire a delay that will be terminated by any interaction with the printer such as uploading the new file.

                Frederick

                Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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

                  @fcwilt said in Delay heater turnoff?:

                  .........................................I desire a delay that will be terminated by any interaction with the printer such as uploading the new file.

                  You didn't say that initially.

                  So how about this then? Use M291. https://duet3d.dozuki.com/Wiki/Gcode#Section_M291_Display_message_and_optionally_wait_for_response

                  Use T300 which will give you the 5 minutes and use S3 which will give you the option to cancel before the 5 minutes is up.

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

                  fcwiltundefined 2 Replies Last reply Reply Quote 1
                  • fcwiltundefined
                    fcwilt @deckingman
                    last edited by

                    @deckingman said in Delay heater turnoff?:

                    @fcwilt said in Delay heater turnoff?:

                    .........................................I desire a delay that will be terminated by any interaction with the printer such as uploading the new file.

                    You didn't say that initially.

                    So how about this then? Use M291. https://duet3d.dozuki.com/Wiki/Gcode#Section_M291_Display_message_and_optionally_wait_for_response

                    Use T300 which will give you the 5 minutes and use S3 which will give you the option to cancel before the 5 minutes is up.

                    Now that seems very workable and I will test it out but I suspect it will do the job just fine.

                    The only question that remains is about the M292 command that will be issued.

                    The parameter Pnnn determines if the current operation shall be cancelled (P=1) or continued (P=0).

                    I wonder what exactly the "current operation" means?

                    But it should be possible to do some testing to determine what goes on.

                    Thanks for the idea.

                    Frederick

                    Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                    1 Reply Last reply Reply Quote 0
                    • fcwiltundefined
                      fcwilt @deckingman
                      last edited by

                      @deckingman

                      It was a great idea with one flaw - when using S2 or S3 the T parameter is ignored.

                      With the S1 parameter the T parameter is respected but it doesn't delay execution.

                      Drat.

                      So if the M291 command could be modified to accept both S3 and Tx parameters it would only need an additional parameter to specify what the timeout action would be, OK or Cancel.

                      With those changes it would be perfect for my needs. It's even better than just a silent delay in that the display of the message box would be a constant reminder.

                      So now my request is for modifying M291.

                      Frederick

                      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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