How to skip homing in G-code when resuming a failed print

I want to restart a failed print at a certain layer (because of an SD problem) so I removed all of the Gcode before the last layer and added in the nozzle and bed heating Gcodes in the very beginning as:

M140 S60 ; Start heating bed
G28
M109 T0 S255.0 ; Heating to PETG temp

But the P1S (and probably other Bambu printers) rehomes at the beginning when running this Gcode. This means that I can’t resume the print because the printhead will hit the object during homing. The printer has not powered down the stepper motors yet and knows where Z is because I can move it up and down a bit with the printer screen buttons just fine (and it hasn’t been long since the print failed)

How can I have the printer NOT rehome when I run a Gcode file?

There is no way that I know of doing this. Your best bet is to reslice the model from the layer you need to restart at and then glue the parts together.

I thought G28 was homing - have you tried it without that?

1 Like

Good eye, I missed that from my old scripts, I’ll need to try it without g28 next time something goes wrong