Pause and store print state on network signal (UPS)
-
I have a UPS connected to synology NAS and the printer. The NAS monitors the NAS and sends a signal when on battery and 10% left of said battery (this is 10 minutes or so).
Can I configure the duetwifi to listen to this signal and do a safe shutdown and store current print progress so I can resume printing when power is back up?
I know the duet has such a system in place if it detects the power going down. However can I also trigger it on a network event?
-
Currently you can't trigger it directly on a network event, but you can trigger a pause/save on a change of state of a spare endstop input.
-
Thnx. That might be usable. I have some arduinos and other things lying around!
If I come up with a solution. I'll post it here so others may reuse it.
PS would be a nice and fairly easy to implement feature. If I remember correctly duetwifi firmware is open source if I find the time I might do a pull and see if I can add it.
-
If you have a Wifi/ethernet device (Arduino/ESP8266/ESP32) you can use a Telnet connection to send a gcode to pause the print.
Maybe you can even run this on your NAS (some of them can run custom scripts or programs). -
That's a great idea actually! I have a Synology, so creating something to do this wouldn't be a problem.
Would a Pause command be sufficient to make a resume after power restore possible?
-
@nemesis said in Pause and store print state on network signal (UPS):
Would a Pause command be sufficient to make a resume after power restore possible?
Yes. A restore point is created any time a pause is triggered.
-
Thank you for the confirmation Phaedrux. I'll do some testing this week.
-
@phaedrux said in Pause and store print state on network signal (UPS):
@nemesis said in Pause and store print state on network signal (UPS):
Would a Pause command be sufficient to make a resume after power restore possible?
Yes. A restore point is created any time a pause is triggered.
Bear in mind that if you cancel the print while it is paused, the restore point will be deleted. So turn the printer off without cancelling the print.
-
@dc42 I didn't realize that. Good to know.
-