Skip to content

Instantly share code, notes, and snippets.

@nvsofts
Created December 3, 2019 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvsofts/db0f871d57dc500ff11eadeacf8e1c90 to your computer and use it in GitHub Desktop.
Save nvsofts/db0f871d57dc500ff11eadeacf8e1c90 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
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
;heating up
M104 S{material_print_temperature}
M140 S{material_bed_temperature_layer_0}
M109 S{material_print_temperature}
M190 S{material_bed_temperature_layer_0}
;training
G92 E0 ;zero the extruded length
G1 F200 E3 ;extrude 3mm of feed stock
G0 X50 Y0 F5000
G0 Z0.300 F200
G1 X100 E12 F500.0
G1 X150 E18 F500.0
G92 E0 ;zero the extruded length again
;start print
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