Delay heater turnoff?



  • 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



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


  • administrators

    As @deckingman said.

    What is the reason for wanting a delay?



  • @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



  • @fcwilt

    So as I said then...

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



  • @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



  • @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.



  • @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



  • @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


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.