Skip to content

Instantly share code, notes, and snippets.

@jonaphin
Created November 23, 2018 17:45
Show Gist options
  • Save jonaphin/c0cc339a108b7beaba5b3d75ef04adec to your computer and use it in GitHub Desktop.
Save jonaphin/c0cc339a108b7beaba5b3d75ef04adec to your computer and use it in GitHub Desktop.
G21 ; Set metric values
G90 ; Set absolute positioning
M82 ; Set extruder to absolute mode
G28 X0 Y0 ; Move X/Y to min endstops
G28 Z0 ; Move Z to min endstops
G1 Z20 ; Raise Z to 20mm
M190 S{material_bed_temperature_layer_0} ; Wait for bed temperature to reach target
M109 S{material_print_temperature_layer_0} T0 ; Set extruder temperature and wait
G29 ; Auto-leveling
G1 X0 Y0 F3000 ; Go to home (without homing: it would disable compensation)
G1 Z5.0 F6000 ; Move the platform down 15mm
G92 E0 ; Zero the extruded length
G1 F1500 X100 E15 ; Prime the extruder
G92 E0 ; Zero extruded length again
M300 ; Beep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment