Print start and end code

I have found a few interesting start and end code for my printer that my help you and wanted to share.

Start code

G21 ; set units to millimeters
G90 ; use absolute positioning
M82 ; absolute extrusion mode
;Set Temperatures
M104 S[first_layer_temperature_0] ; set extruder temp
M140 S[first_layer_bed_temperature] ; set bed temp
M109 S[first_layer_temperature_0] ; wait for extruder temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
G28 W ; home all without mesh bed level
;Pre extrude
G1 E5 F300
;Extrude distance and cut
G92 E0.0 ; reset extruder distance position
G1 Y-3.0 F5000.0 ; go outside print area
G1 X60.0 E9.0 F1000.0 ; intro line
G1 X100.0 E15 F1000.0 ; intro line
G92 E0.0 ; reset extruder distance position

This is very simple, it set the temperature and stuff. What I found really usefull is after retracting from the end code to prevent oozing, just push back some filament to compensate. Ater that, this code will move the nozzle outside my bed and extrude some filament. When the print code start, it drops at the first layer height and kind of cut the dropping material from the nozzle on the edge of the bed.

End code

; retract
G1 E-5 F300
;heater off
M104 S0 ; turn off extruder
M140 S0 ; turn off heatbed
M107 ; turn off fan
G1 X0 Y210; home X axis and push Y forward
;M84 ; disable motors

When the print is completed, heaters are turned of to let the part cold down and not using energy any more. Before that, the material is retracted a certain distance to make sure that no material is left in the nozzle to stop oozing.

Print start and end code

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top