End G-Code Question ???  

  RSS
Hellbender
(@hellbender-2)
Active Member

Is there anything you can add to the "End G-Code" box in the Printer settings tab that would automatically raise the print head to at least 120mm (or max height if tall print) over the height of the print when finished?

Thanks!

Posted : 25/11/2020 7:18 pm
JoanTabb
(@joantabb)
Moderator

G1 Z120 would work, BUT If the Model is taller than 120,  this command may pull the extruder down into the model... 

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 : 25/11/2020 8:39 pm
Neophyl
(@neophyl)
Noble Member

Mostly.  Prusa printers already come with a line that does similar in the end gcode

G90 ; use absolute coordinates
{if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+30, max_print_height)}{endif} ; Move print head up

That moves the head up 30mm but doesnt exceed the configured max height.  You could set a different value for 30 if you want to move it up higher.

 

Posted : 25/11/2020 8:59 pm
bobstro liked
Hellbender
(@hellbender-2)
Active Member

@neophyl

That would have to be done in printer firmware with Pronterface,  correct?  Not just in the slicer "End g-code"  box?

Posted : 26/11/2020 3:57 am
Neophyl
(@neophyl)
Noble Member

No that line as is is added into the printers end gcode section in Prusa slicer. If you want to see just use the wizard and add a mk3. 

Posted : 26/11/2020 6:05 am
Hellbender
(@hellbender-2)
Active Member

Thank you!

Posted : 27/11/2020 3:23 pm
Hellbender
(@hellbender-2)
Active Member

@neophyl

Wow! I just changed the 30 to a 100, saved it,  and it did the trick!

It made a new "User Presets" with "copy" after the printer name.

Thanks again for the help!

Posted : 27/11/2020 4:35 pm
Neophyl
(@neophyl)
Noble Member

Yeah you can’t overwrite a system default, you always have to create a new one.  That’s true of any of the system profiles, even filament or print ones. 
Glad it’s doing what you want.   The Prusa end code also has lines that moves the bed to the front to ‘present’ the finished print which is also handy to do at the end. 

This post was modified 2 months ago by Neophyl
Posted : 27/11/2020 5:40 pm
Share:

Please Login or Register