Feature request: auto-sleep enable on panel due



  • Hi there!

    the DWC has a nice feature to enable auto-sleep to call M1 after the current job is finished. However, as I understand this only works when the webpage stays open on a PC/tablet. Is it possible to add this checkbox to the panel due?

    This way we could just tick it and walk away and the printer will turn off it self cause of what we put into sleep.g.

    I know its also possible to use an M1 at the end of the gcode, but I dont want to always call sleep.g.

    Im curious of what would be possible!


  • administrators

    If you always want the printer to sleep after completing a job, you can put code in your slicer end GCode or in stop.g to do that. You can have it bring up a dialog using M291 if you want the option to cancel it.



  • Thanks for your input. I dont want to always do this, only when im printing while I go away and the printer needs to shut itself off after.

    As I understand M291, I can use a counter that needs a "cancel" input before it will call stop.g? if so, I will try this method.

    Is there a way I can still get the checkbox on a feature request list or something?



  • @dc42 please tell me, if I want to cancel auto-sleep at a time when the fans are still working, can I do this?
    from a panel or from the web?



  • with RRF3 you could probably use conditional g-code, with RRF2 I think you'd have to do it by setting the temperatures below the threshold for thermostatic control and use M116 to wait until the set temperature is reached before issuing the M291 or just straight to M1

    https://duet3d.dozuki.com/Wiki/Gcode#Section_M116_Wait



  • @bearer maybe you misunderstood me:

    1. I set auto sleep in the print completion script
    2. The printer has finished printing and is waiting for the nozzle to cool
    3. after cooling, the printer is ready to turn off the power

    I want not to let him do it but to start a new print, is this possible?



  • @Plohish then maybe explain how M291 like dc42 suggested doesn't work for you?



  • @bearer thanks, I read it carefully and understood everything



  • @bearer
    I'm trying to use the M291
    Suppose I am not near the printer.
    I put this code in the stop.g file

    M291 P"Yes or cancel" S3
    M81 S0
    

    the printer displays a message and expects an action from me. Without my participation, he will not budge.
    I want another logic:
    without my action, the printer should display a message box and end the operation if the fan stops.
    I should also be able to stop the operation by clicking on the button on the window if the fan is not already stopped.


  • Moderator

    You could set the fan to be temperature controlled and use M116 to wait for the temp before continuing. I use this to keep the part cooling fan on to cool the nozzle at the end of the print.



  • I believe he needs M291 P"Close dialogue to abort shutdown" S1 T120 but I was rather hoping he'd go back read it and fully understand it, again.

    Adjusting T120 to whatever timeout desired.


Log in to reply