Hi all,
in marlin 1.1.9 we have the option power_loss_recovery (http://marlinfw.org/docs/gcode/M413.html).
There are two versions:
Software, which still does not work in 1.1.9 and has been delayed to stable 2.0.0, and saves only the last layer number to be able to continue after the power returns ...