Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save doctorthompson/fff13614345e0cc135476ea72317ed5f to your computer and use it in GitHub Desktop.
Save doctorthompson/fff13614345e0cc135476ea72317ed5f to your computer and use it in GitHub Desktop.
Start/End Gcode
; START
M140 S{material_bed_temperature_layer_0} ; start preheating the bed
M104 S{material_print_temperature_layer_0} T0 ; start preheating hotend
G28 ; home
M190 S{material_bed_temperature_layer_0} ; heat to Cura Bed setting
M109 S{material_print_temperature_layer_0} T0 ; heat to Cura Hotend
G92 E0 ; Reset Extruder
M420 S1 Z9
M900 S{linear_advance_factor}
G1 Z2.0 F3000 ; Move Z Axis up little
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up little
G1 X3 Y20 Z0.2 F5000.0 ; Move over to prevent blob squish
G1 X3 Y19 Z0.3 F5000.0 ; Move over to prevent blob squish
; END
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positioning
G1 X10 Y{machine_depth-10} ;Present print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment