Custom End Gcode to raise extruder  

  RSS
Sembazuru
(@sembazuru)
Prominent Member

I had long not liked how low the extruder would raise at the end of the print. For small prints I wanted extruder to raise up to 100 to give me better access for making sure I removed any filament that dribbled out while it cooled down. Then I got to thinking, what about for prints that are over 100mm tall, I can't simply set the ending custom gcode to just go to 100. What I finally decided on was to find out proportionally how high the final z was relative to the max z height. Then apply that proportion to the height from 100 to max z. I'm not sure about what the calculation with "z_offset" so I modified the existing calculation with my new calculation.

So, here is my new post-print z height custom gcode for public consumption. (And if Prusa wants to add this to the profiles they release, please feel free. I don't consider this non-obvious so I release it to the public domain.)

{if layer_z < max_print_height}G1 Z{z_offset+min((layer_z/max_print_height)*(max_print_height-100)+100, max_print_height)}{endif} ; Move print head up proportionally of print height to max height above 100 to max height.

Enjoy!

See my (limited) designs on:
PrusaPrinters - https://www.prusaprinters.org/social/1448-sembazuru/prints
Thingiverse - https://www.thingiverse.com/Sembazuru/designs...
Posted : 04/03/2019 6:12 am
Share:

Please Login or Register