Skip to content

Instantly share code, notes, and snippets.

@gotno
Created January 9, 2021 22:08
Show Gist options
  • Save gotno/cfb530c3873cf98f23644c54dd5e16c8 to your computer and use it in GitHub Desktop.
Save gotno/cfb530c3873cf98f23644c54dd5e16c8 to your computer and use it in GitHub Desktop.
Anycubic Mega X start gcode with nozzle purge/wipe
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G1 Z15.0 F{speed_travel} ;move the platform down 15mm
G92 E0 ;zero the extruded length
; remove the following line
;G1 F200 E3 ;extrude 3mm of feed stock
; nozzle purge/wipe
G1 X40 E25 F200 ; Extrude 25mm of filament in a 4cm line
G92 E0 ; zero the extruded length
G1 E-1 F200 ; Retract a little
G1 X80 F3200 ; Quickly wipe away from the filament line
G92 E0 ;zero the extruded length again
G1 F{speed_travel}
M117 Printing...
G5
@ginfante14
Copy link

so this is what it should end up looking like?
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G1 Z15.0 F{speed_travel} ;move the platform down 15mm
G92 E0 ;zero the extruded length
; nozzle purge/wipe
G1 X40 E25 F200 ; Extrude 25mm of filament in a 4cm line
G92 E0 ; zero the extruded length
G1 E-1 F200 ; Retract a little
G1 X80 F3200 ; Quickly wipe away from the filament line
G92 E0 ;zero the extruded length again
G1 F{speed_travel}
M117 Printing...
G5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment