\r
G28 X0 Y0 ;move X/Y to min endstops\r
G28 Z0 ;move Z to min endstops\r
-\r
-; if your prints start too high, try changing the Z0.0 below\r
-; to Z1.0 - the number after the Z is the actual, physical\r
-; height of the nozzle in mm. This can take some messing around\r
-; with to get just right...\r
G92 X0 Y0 Z0 E0 ;reset software position to front/left/z=0.0\r
+\r
G1 Z15.0 F{max_z_speed} ;move the platform down 15mm\r
-G92 E0 ;zero the extruded length\r
\r
-G1 F200 E5 ;extrude 5mm of feed stock\r
-G1 F200 E3.5 ;reverse feed stock by 1.5mm\r
+G92 E0 ;zero the extruded length\r
+G1 F200 E3 ;extrude 3mm of feed stock\r
G92 E0 ;zero the extruded length again\r
\r
-;go to the middle of the platform, and move to Z=0 before starting the print.\r
-G1 X{machine_center_x} Y{machine_center_y} F{travel_speed}\r
-G1 Z0.0 F{max_z_speed}\r
+G1 X{machine_center_x} Y{machine_center_y} F{travel_speed} ;go to the middle of the platform\r
""",\r
#######################################################################################\r
'end.gcode': """;End GCode\r
M104 S0 ;extruder heat off\r
G91 ;relative positioning\r
-G1 Z+10 E-5 F{max_z_speed} ;move Z up a bit and retract filament by 5mm\r
+G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\r
+G1 Z+0.5 E-5 F{max_z_speed};move Z up a bit and retract filament even more\r
+G1 Z+10 F{max_z_speed} ;move Z up a bit more without retraction\r
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\r
M84 ;steppers off\r
G90 ;absolute positioning\r