I’ve lost power during a 16h print so i followed a guide and measured the height then deleted lines from homing to the layer last printed and printed the gcode.
I don’t have clearance for xyz homing but i can home it separately so i did like that.
It seems that the printer is trying to do first instruction and then automatically stops the print.
What is the problem here is it associated with homing?. how could i avoid the error?.
Any special gcodes?.
Thank you for any help to resume the print.
Here is the gcode that i edited Gdrive gcode file
I have also tested
[force_move]
enable_force_move: True
with SET_KINEMATIC_POSITION X=0 Y=200 Z=100.
still it instantly stops.
I’ve added homing xy and then z to the gcode then set force_move with set kinematic position.
This time I’ve got the error on terminal.
!! Move exceeds maximum extrusion (1741.756mm^2 vs 2.000mm^2)
When you want to recover a print, you always have to use relative extrusion. When you start at the “issue-point”, Klipper does not know how much filament already has been printed.
I’ve created a python code using chatgpt to offset all extruder values from 0.
import re
subtraction_value = 923.74492
# Open the input and output files
with open("CFFFP_skull_art_big.gcode", "r") as input_file, open("output.gcode", "w") as output_file:
# Iterate over the lines in the input file
for line in input_file:
# Check if the line starts with "G1"
if line.startswith("G1"):
# Use regular expression to extract the E parameter
match = re.search(r"E([0-9\.]+)", line)
if match:
# Get the value of the E parameter
e_value = float(match.group(1))
# Subtract 100mm from the E parameter
e_value -= subtraction_value
# Replace the E parameter in the line with the new value
line = re.sub(r"E[0-9\.]+", "E{:.4f}".format(e_value), line)
# Write the line to the output file
output_file.write(line)
still I’ve got the error.
After that i’ve created a new gcode using cura by just putting -ve height at z position and used SET_KINEMATIC_POSITION.
it worked but it’s a lot of work a better solution would be great how do i convert it for relative positioning?.