;End GCode
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off
G90 ;absolute positioning
;{profile_string}
come vedi spegne estrusore e bed, ritrae di 1 mm, alza lo Z di 0.5 e X e Y di "-20" mm dalla posizione di fine.... poi va in home.....
Puoi modificare a tuo uso e consumo quel codice per fargli fare quello che più o meno vuoi.
In Slic3r>Printer settings>Custom G-code>End G-code> stesso dicasi del file di Cura.....