My Prusa’s slicer adds some pre-extrude priming code to the beginning of the GCODE as well: Prusa does a ~100mm line (at two different extrusion rates) rather than PolyPrinter’s three dots, but the benefits are similar.
Note that this code is a template, and allows for the dynamic insertion of certain config parameters like [first_layer_temperature].
Note also that the bed leveling commands G28
and G80
, below) may not work properly on your Ender 3.
Other commands (like moving outside the bed area with the G1 Y -0.3
) also may not work with your Ender 3.
M115 U3.8.1 ; tell printer latest fw version
M83 ; extruder relative mode
M104 S[first_layer_temperature] ; set extruder temp
M140 S[first_layer_bed_temperature] ; set bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
M109 S[first_layer_temperature] ; wait for extruder temp
G28 W ; home all without mesh bed level
G80 ; mesh bed leveling
G1 Y-3.0 F1000.0 ; go outside print area
G92 E0.0
G1 X60.0 E9.0 F1000.0 ; intro line
G1 X100.0 E12.5 F1000.0 ; intro line
G92 E0.0
M221 S{if layer_height==0.05}100{else}95{endif}