Great start g code and end g code for anycubic i3 mega

Please Login to Comment

I'de like to share this. I've tuned it to purge the nozzle in a way it starts printing the actual print as soon as the nozzle touches the bed, with no ooze or derby on the tip. Experiment yourselves to see if it fits your needs:


G21 ; metric values
G90 ; absolute positioning
M82 ; set extruder to absolute mode
M107 ; start with the fans off
G28 X0 Y0 ; move X/Y to min endstops
G28 Z0 ; move Z to min endstops
M501 ; restore epron settings
M420 S1 ; apply bed leve mesh (if you updated the firmware)
M106 S255 ; fan on
G0 Z0.2 F1800 ; move nozzle to print position
G92 E0 ; specify current extruder position as zero
G1 X190 E50 F1200 ; extrude a line in front of the printer
G92 E0 ; specify current extruder position as zero
G0 Z20 F6000 ; move head up
G1 E-6 F2400 ; retract
G04 S2 ; wait 2s
G0 X0 F6000 ; wipe from oozed filament
G1 E-1 F2400 ; undo some of the retraction to avoid oozing
G1 F6000 ; set travel speed to move to start printing point
M117 Printing...


M104 S0 ; turn off extruder
M140 S0 ; turn off bed
M84 ; disable motors
M107 ; fans off
G91 ; relative positioning
G1 E-6 F2400 ; retract the filament
G1 Z+0.5 ;X-20 Y-20 F7200 ; wipe from model
G28 X0 ;Y0 ; move X/Y to min endstops
G1 Y180 F2000 ;
M84 ; steppers off
M300 P300 S4000