So I managed to cause my printer to fail half way through a 2 day print (I am aware of the issue, I did something stupid and don’t need to discuss why it happened further).
The print head is still in the same location where it failed. I have managed to extract the last position from the klippy log as 288.2102213884623, 99.97330646523385, 21.06093697280247 which appears to be correct.
My plan was to find the last processed GCODE line from the log file and then use that to cut away up to that line in the GCODE file, leaving in some of the start commands (this is what I usually do in Marlin or RepRap firmware).
Unfortunately, as Klipper reads the GCODE and then converts it to instructions to send to the main board, I cannot do this, so what would be the best way to determine the last GCODE command that was sent to the board, or at least, the last batch of GCODE commands?
I think I have managed to get pretty close by opening the GCODE in VSCode and then first finding the start of the layer Z21 and then stepping through the G1 commands from that point until I found a line that appears closest to the final co-ordinates.
This is OK I guess, but not perfect and pretty time consuming…
If anyone has any other ideas how I could make this a bit easier, that would be awesome
It will, I have already printed 2 of this GCODE successfully. The timing error is an annoyance that is possibly related to the BTT TFT35 screen, as long as I don’t touch it and just use it for display the printer runs fine.
Also, I was able to continue the print as described above and it is all running OK, but thank you for your positive and constructive criticism @Sineos …