Skip to content

Instantly share code, notes, and snippets.

@duganj
Last active February 28, 2022 04:13
Show Gist options
  • Save duganj/508a86143b7aa8d694a37da67054aad1 to your computer and use it in GitHub Desktop.
Save duganj/508a86143b7aa8d694a37da67054aad1 to your computer and use it in GitHub Desktop.
G21 ; metric values
G90 ; absolute positioning
M82 ; set extruder to absolute mode
M107 ; start with the fan off
M140 S[first_layer_bed_temperature] ; Set bed temperature (no wait)
G28 X Y F6000 ; move X/Y to min endstops
G28 Z F1200 ; move Z to min endstops ; raise the nozzle
G28 X Y F6000 ; move X/Y to min endstops
M190 S[first_layer_bed_temperature] ; wait for bed temperature to reach target
M104 S[first_layer_temperature] ; set extruder temperature (no wait)
G29 ; auto-leveling
G28 X Y F6000 ; move X/Y to min endstops, may disable bed leveling
M420 S1 ; enable bed leveling compensation
M109 S[first_layer_temperature] ; set extruder temperature and wait
M300 P200 ; beep to indicate that the temp is reached
G1 Z15 F1200 ; raise to have room
G92 E0 ; zero the extruded length
G1 X0 Y10 F3000 ; move outside the print bed
G1 Z0.2 F1000 ; lower to prime?
G1 X60 E9.0 F1000 ; prime line
G1 X100 E12.5 F1000 ; prime line
G92 E0 ; zero the extruded length
; this came from the ADVi3pp User Manual
; G1 F140 E30 ; extrude 3mm of feed stock
; G4 S2 ; Wait for 2 seconds
; G92 E0 ; zero the extruded length
M117 Printing...; message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment