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?