PrusaSlicer ending height
So i have problem with changing ending Z height after print is done. It always goes way up. I want it to go jus like 20mm. Here's my ending g-code :
{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.8} F{travel_speed*60} ; present print{if max_layer_z < max_print_height-10}G1 Z{z_offset+min(max_layer_z+20, 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 heatbedM104 S0 ; turn off temperatureM107 ; turn off fanM84 X Y E ; disable motors
What i need to change? Thanks
Isolate Z moves
Try commenting out each of those Z moves except one to isolate which one is causing the unwanted behavior.
I cleaned up your gcode and generated a print and got this result:
G1 Z18.1 F600 ; Move print head up G1 X5 Y168 F10800 ; present print G1 Z36.1 F600 ; Move print head further up G1 Z126 F600 ; Move print head further up
126 is 60% of 250, so it looks like the Z moves are what you're expecting. I do wonder if you've got some other gcode in there, but would need to see your full settings to tell what's going on. Save your current 3MF project file, zip it up, and attach it to a reply here so we can see your part & settings and give better recommendations.
and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan
Nothing in that end gcode moves the nozzle up to max
I just sliced your file and see this for the end gcode:
;TYPE:Custom ; Filament-specific end gcode ;END gcode for filament G1 Z101.9 F600 ; Move print head up G1 X5 Y182.4 F8400 ; present print G1 Z119.9 F600 ; Move print head further up G1 Z150 F600 ; Move print head further up
It doesn't appear to be a problem in your end gcode. I don't know the ender. Is it possible your firmware contains some shutdown feature? Just to confirm, try slicing without those lines of conditional code and see if Z is still moved at the end of the print.
and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan
Not moving to max
Z height not moving to max, but way up, like 100mm from the print, but i want it to move like 10mm or 20mm.
What i need to change to set that?
If you only want it to move up around 20mm above the print then remove the
{if max_layer_z < max_print_height*0.6}G1 Z{max_print_height*0.6} F600 ; Move print head further up{endif}
line from your end gcode as that's moving it 50mm above that print in the project.