End G-code “Move print head up”
 
Notifications
Clear all

End G-code “Move print head up”  

  RSS
oo7_golden_1
(@oo7_golden_1)
Member
End G-code “Move print head up”

Hello everyone, I had to reinstall Prusa Slicer and lost my beautiful Start and End g-codes. I have not fiddled with these settings in a while, and I am very rusty. I am hoping that a person with more wisdom can help point me in the right direction.

The amount that the print head is lifting after the print has completed is too high and it is causing my roll of filament to come unwound which can lead to a potential bind if I don’t unwind it and rewind it by hand. It lifts about a foot above the print, and I cannot really see in the G-code what is causing it to lift so high…

Can anyone point out where all of this lift is coming from in the G-code and help me lower it without risking a collision with future prints?

I am using a Creality CR10 S Pro V2 running on Marlin.

Thank you, Prusa community.

____________________________

End G-code current config:

____________________________

{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+2, max_print_height)} F600 ; Move print head up{endif}

G1 X5 Y{print_bed_max[1]*0.85} F{travel_speed*60} ; present print

{if max_layer_z < max_print_height-10}G1 Z{z_offset+min(max_layer_z+70, max_print_height-10)} F600 ; Move print head further up{endif}

{if max_layer_z < max_print_height*0.6}G1 Z{max_print_height*0.6} F600 ; Move print head further up{endif}

M140 S0 ; turn off heatbed

M104 S0 ; turn off temperature

M107 ; turn off fan

M84 X Y E ; disable motors

Posted : 27/05/2024 7:38 am
JoanTabb
(@joantabb)
Veteran Member Moderator
RE: End G-code “Move print head up”

If you have an old Prusa Slicer Gcode, with suitable settings already in it, you can use File>Import Config and import the Gcode, and prusa slicer should capture the settings from the gcode. 

regards Joan

I try to make safe suggestions,You should understand the context and ensure you are happy that they are safe before attempting to apply my suggestions, what you do, is YOUR responsibility. Location Halifax UK

Posted : 27/05/2024 9:14 am
oo7_golden_1
(@oo7_golden_1)
Member
Topic starter answered:
RE: End G-code “Move print head up”

Thank you @JoanTabb for the suggestion. Unfortunately the reason I had to reinstall is because my old PC kicked the bucket and took all my beloved settings and configurations with it.
So, I suppose it's technically not a "re-install" but a fresh install on a new rig. 

Posted : 27/05/2024 9:40 am
JoanTabb
(@joantabb)
Veteran Member Moderator
RE: End G-code “Move print head up”

have you got any old Gcodes on SD Cards in the printer?
Joan

I try to make safe suggestions,You should understand the context and ensure you are happy that they are safe before attempting to apply my suggestions, what you do, is YOUR responsibility. Location Halifax UK

Posted : 27/05/2024 10:13 am
oo7_golden_1
(@oo7_golden_1)
Member
Topic starter answered:
RE: End G-code “Move print head up”

Wow @JoanTabb that is very clever, I did not think of that. Unfortunately I do not. Lots of Cura Slices but no Prusa. I COULD use a Cura start code I suppose... but I would rather learn how to understand why the default G-code for my printer is what it is and why it acts the way that it does. 
I just don't really understand why it is lifting up so high. 
Thanks again for that very good suggestion. 

Posted : 27/05/2024 11:20 am
JoanTabb
(@joantabb)
Veteran Member Moderator
RE: End G-code “Move print head up”

Search for REPRAP GCODES to get an idea of what they mean

Regards Joan 

I try to make safe suggestions,You should understand the context and ensure you are happy that they are safe before attempting to apply my suggestions, what you do, is YOUR responsibility. Location Halifax UK

Posted : 27/05/2024 11:42 am
Share: