2 G90 ;absolute positioning
4 G28 X0 Y0 ;move X/Y to min endstops
5 G28 Z0 ;move Z to min endstops
7 ; if your prints start too high, try changing the Z0.0 below
8 ; to Z1.0 - the number after the Z is the actual, physical
9 ; height of the nozzle in mm. This can take some messing around
10 ; with to get just right...
11 G92 X0 Y0 Z0 E0 ;reset software position to front/left/z=0.0
13 G1 Z15.0 F400 ;move the platform down 15mm
14 G92 E0 ;zero the extruded length
16 G1 F75 E5 ;extrude 5mm of feed stock
17 G1 F75 E3.5 ;reverse feed stock by 1.5mm
18 G92 E0 ;zero the extruded length again
20 M1 ;Clean the nozzle then press YES to continue...
22 G1 X100 Y100 F3500 ;go to the middle of the platform
23 G1 Z0.0 F400 ;back to Z=0 and start the print!