G90 ;absolute positioning
G1 Z180 F3600 ;set Z to 180 mm
M104 S0 ;turn off extruder
M140 S0 ;turn off bed
M107 ;fan off
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G91 ;relative positioning
G28 X0 Y0 ;move X/Y to min endstops
M84 ;steppers off
G90
M300 P300 S4000