A small python script to edit GCODE files to resume 3D prints after power loss.
-
Measure the height from the hot bed to the top of the existing print. (Preferably using a vernier caliper)
-
Find the closest Z value. Eg : For a print with a layer hieght of 0.2mm, layers will be in increments of 0.2mm.
-
Run the script, Syntax :
python gcoderesume.py -i [input gcode file] -z [layer height]
Eg : If your print failed at Z26.8,
python gcoderesume.py -i EBA3_004.gcode -z 26.8
Note : If the Z height is a whole number, do not put a decimal value.
Eg : If your print failed at Z14
python gcoderesume.py -i test.gcode -z 14
-
Use the generated gcode file to start the print.
-
If you want to change the temps etc, you can easily change from the script.