Skip to content

Instantly share code, notes, and snippets.

@hugokernel
Created June 28, 2014 10:14
Show Gist options
  • Save hugokernel/3533bcfb12d8a48bf21d to your computer and use it in GitHub Desktop.
Save hugokernel/3533bcfb12d8a48bf21d to your computer and use it in GitHub Desktop.
start.gcode
;Sliced {filename} at: {day} {date} {time}
;Basic settings: Layer height: {layer_height} Walls: {wall_thickness} Fill: {fill_density}
;Print time: {print_time}
;Filament used: {filament_amount}m {filament_weight}g
;Filament cost: {filament_cost}
M80 ; Power on !suicide
G21 ;metric values
G90 ;absolute positioning
M107 ;start with the fan off
;M190 S90 ; PLA: Heated bed on !
;M190 S100 ; ABS: Heated bed on !
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G92 X0 Y0 Z0 E0 ;reset software position to front/left/z=0.0
G1 Z15.0 F{max_z_speed} ;move the platform down 15mm
G92 E0 ;zero the extruded length
G1 F200 E3 ;extrude 3mm of feed stock
G92 E0 ;zero the extruded length again
;go to the middle of the platform (disabled, as there is no need to go to the center)
;G1 X{machine_center_x} Y{machine_center_y} F{travel_speed}
G1 F{travel_speed}
M117 Printing...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment