Help Setting up Resume after power failure and Bed leveling.
-
@RAM said in Help Setting up Resume after power failure and Bed leveling.:
When the power supply voltage drops below the auto-pause threshold voltage, the heaters are turned off to conserve power, the state of the print is saved to file sys/resurrect.g on the SD card, the power fail script specified in the M911 command is run, and the print is left in a paused state
After the power is restored, you can use command M916 to resume the print from where it stopped. This command runs file sys/resurrect.g which calls sys/resurrect-prologue.g at an appropriate point to home the printer
I suggest re-reading the documentation link.
https://duet3d.dozuki.com/Wiki/Setting_up_to_resume_a_print_after_a_power_failure#main
-
I have re read the documentaion for about the 10th time, I did the following.
put the M911 information into the config.g
; General preferences G21 ; Work in millimetres G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M911 S21.0 R23.0 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000 ; Power Loss Function M550 P"HEVO" ; set printer name
Then created a ressurect.g file with nothing in it as I couldn't find one in my sys folder anywhere.
Next I created the resurrect-prologue.g file so it looks like this.
M116 ; wait for temperatures G28 X Y ; home X and Y, hope that Z hasn't moved M83 ; relative extrusion G1 Z-3 E4 F3600 ; undo the retraction that was done in the M911 power fail script
made the macro with the M916 command and then set off a print test cube then killed the power at the wall socket to simulate power failure.
Guess what nothing worked. it didn't move the Z axis, didn't write anything to the resurrect.g file so I guess I am totally stupid to the point where I can't even understand the english language which is why I don't get what the instructions are telling me on the
https://duet3d.dozuki.com/Wiki/Setting_up_to_resume_a_print_after_a_power_failure#mainI will say thanks for the help in trying to get me to setup this function as I know you have given your time but I will be leaving this alone and leaving the printer at the stage that it is in as I really can't be bothered anymore with beating my head against the wall.
-
Now now, don't be so upset. Persistence will always payoff.
resurrect.g should be created by the firmware when power is lost. You don't need to create it. Now if it's still not being created when power is lost we need to look at the M911 command first to make sure it's correct. If it is, and it's still not created, then it's possible that there's not enough juice left at power loss time to move the motors and save the file. If that's the case we might be able to modify your M911 to do a little less motor movement.
Here's my M911 for comparison:
M911 S21 R23 P"M913 X0 Y0 G91 M83 G1 Z3 E-1 F500"
Less extruder movement and slightly slower. Try changing yours to match. If that still doesn't help, try reducing the Z motor movement. If that doesn't help remove all motor movement entirely by removing the G1 Z E F part. If that still doesn't help, we can adjust the voltage range that it will trigger at so that it triggers earlier, by changing the M911 S21 to S22.
Once it's reliably creating the resurrect.g file on it's own at power loss then we can test resuming.
Your resurrect-prologue looks ok. Only thing that is missing is a way of homing Z, which as mentioned before is fine as long as you're manually setting the Z height before resuming the print with M916.
-
@Phaedrux I have tried it again and though it is creating the resurrect file now it is not resuming, I think my power supply maybe the issue here so I will have to leave this where it is until I can purchase a better power supply for the printer.
Plus I am waiting on a new e3d brass hotend nozzel as I think a lot of my stringging issues could be due to the hardened nozzel I have from what I have read elsewhere.
Thank you for taking the time and trouble to help me with this.
-
@Phaedrux So this in interesting - I had a power failure last night and I had remembered that started but never really figured out how to configure things in the duet-wifi to resume. I looked in my "system directory" folder and at the bottom of my config.g file i have the following line:
; Automatic power saving
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power lossSo I looked further down in the "system directory" folder and I do see a "ressurect.g" file, however it's a 0 bytes file and if I open there's nothing in there or so it seems....
If I created a resurrect-prologue.g file like the one RAM did where would I put it and how would I call it or execute it?
I did have a 4-day print and sure would like to try and recover it if at all possible. I have a Folgertech FT-5 (twin lead screw single stepper Z axis and it doesn't move even with a bowling ball on the build plate =).
any guidance would be appreciated
-
@nzimmers said in Help Setting up Resume after power failure and Bed leveling.:
I did have a 4-day print and sure would like to try and recover it if at all possible.
If the resurrect.g file is 0 bytes it doesn't sound like the exact progress was saved. So I don't think you'll be able to use this method to resume, but you can use a more manual method that involves measuring the height of the finished model, finding the layer in the slicer, dropping/cutting the model to that height (with no bottom layers) and then adjusting the the sliced gcode to remove any homing etc, manually homing the axis and preheating the heaters, and then starting the print. Start with a slow speed factor so you can use baby stepping to get it to stick to the existing model. If all goes well you can probably save the print, though you might have a visible line there, but it is doable if you take your time.
-
@Phaedrux Thanks Phaedrux, I might give that a try!
- nz
-
Just as a "thinking out of the box" my solution to this is to use a 1500VA UPS (also erroneously called Battery Backup). That's big enough to handle most 3D printers for a short while.
That has two benefits, the obvious one is power glitch and outright failures are not a problem unless they're long, so you implement Resume Print, as was being discussed, in case the battery runs down.
The second benefit is UPS in general has better surge protection than your average cheap surge strip, The better units (but they're expensive) completely isolate from the power line.
They also take care of a subtle problem, brown outs. Most of todays units incorporate AVR - Automatic Voltage Regulation which handles when the line voltage lowers (or raises) for an extended period, without switching to battery. The newer units also have adjustable sensitivity if you've got generally perfect power or really crappy power, prevents frequent short battery switching.
A good source for UPS units in the US is your local Costco warehouse, most carry them, great prices. Don't get a small unit, aim for 1200VA minimum.
Buying online is often not cheap since they're heavy, so shipping is usually not free (Amazon, etc).
"Office" stores and BestBuy run sales.There are some good online 'UPS only' businesses that offer deals and sometime refurb units that are a REAL deal. Getting a retired high end unit can be a deal, but make sure it has AVR, and if looking at higher end units, 'Sine Wave output' is great too.
I live in an area that has a LOT of power drops, haven't had a failed print yet from that. Now from OTHER things ... LOL!
-
@PuterPro Another alternative if you have a mains powered bed heater is to use a DC UPS to run the printer. Depending on the choice of batteries, it could last a day or more but of course, the bed will eventually cool which might or might not cause the object to fall off depending on a number of factors. The advantage of using a DC UPS is that there are no losses due to conversion efficiencies from battery DC to AC mains via an inverter and then back to DC by the PSU. They are also relatively cheap compared to mains UPSs because there is no need for the inverter.
That's what I did anyway ...... https://somei3deas.wordpress.com/2019/10/22/fitting-a-dc-uninterruptible-power-supply-ups-and-separate-5v-supply/
-
That's a great idea and cheaper than an standard UPS!
I just took a peek at your blog post, that's quite a setup, done with your usual thoughtfulness and detail. You do tend to grab the bull by the horns! LOL I'll read the whole thing later today.
Nice chatting with you after all this time, good to see you're still helping out here, I've been out of the loop for some time. Life changes ...
Edit: speelling