This is the feature I’ve implemented in my new delta 3D Printer: its’ an integrated UPS, controllable by the firmware and by GCode. 
https://www.youtube.com/watch?v=AsmdDYIHORE
Nice! That’s one of my fears - power failure during print.
Now to eliminate host PC crashes… (just had one today 2 hours into an 8 hour job. Grrr.)
@Alex_Wiebe Ouch!
Btw, I’m on Repetier right now, will open source the code soon, as I’ve cleand it a bit 
So how long will the UPS power the print job?
(and, that is a very nice looking machine you’ve got!)
@Alex_Wiebe I’ll test in the coming days! Now it’s enough for me knowing that everything work! 
Anyway, it’ll depend on the battery you use, I now use a 12v 7Ah battery…my primary goal is to get over of the simple 30-40 seconds maximum outage I may experience. But I expect it to stay up for some minutes. Anyway, with greater batteries, greater time!
There’s a circuit that keeps the battery charged while not in use, and another that play the alarm when the battery is discharging. Will open source everything soon, of course.
My new printer is a custom built delta, 40cm (diameter) x 70cm height of print volume (the whole structure is 150cm height), now based on Arduino Due.
I’m planning to opensource also the printer with all the parts drawn with openscad ready to be printed.
Thanks for the interest.
Не то чтобы я сильно хвастался, но у нас дома несколько розеток подключено через УПС apc1500 и к нему подключено 4 батареи fg27001. Такой комплектации хватало на почти 2 для работы при просмотре ТВ и работы за пк.
Встроенный УПС это хорошо, но не очень практично.
Well, it’s just another solution 
Thanks for your input!
This morning I was contacted by a friend in GH Enterprise, kindly showing me that this technology (UPS-like) was invented by them in March 2015 (http://youtube.com/watch?v=D-QFYcNIN9U). It’s covered by CC license, so it’s ok to be used for private use, but need their approval for commercial use.
So the first purpose of my writing now is to recognize this fact.
The second purpose is to share the two reaction that I had in my mind:
- Damned! Every time I try to invent something, someone else already did it!
- But this, point “1)”, is actually what keeps great ideas growing up: recognize the great job of others and try your best to do even better!
So, great job, guys!
@Massimo_Viaro the idea of combining a UPS/battery with a 3D printer is nothing new, I’ve done that 1.5 years back with a solar printing setup. But your addition to make it controllable from firmware is a new one. Ideas are not copyrightable, so you may use this idea however you like. I think it is a great addition to any 3D printer, so please go ahead and publish your designs and or marlin modifications.
@Jelle_B thanks! I will publish soon in the coming days 