Skip to content

Instantly share code, notes, and snippets.

@kind3r
Last active November 10, 2023 03:40
Show Gist options
  • Save kind3r/0625a642d58ef693c7ac5232e9c413ef to your computer and use it in GitHub Desktop.
Save kind3r/0625a642d58ef693c7ac5232e9c413ef to your computer and use it in GitHub Desktop.
3D Printer start G-code for Prusa Slicer
M104 S150 ; start heating the extruder a bit to save some time but prevent oozing
M140 S[first_layer_bed_temperature] ; heatbed temperature
M190 S[first_layer_bed_temperature] ; wait for the bed to heat up
M83 ; extruder relative mode
G28 ; home all axes
G29 ; Bed autolevel (optional, for BLTouch only)
G92 E0 ; reset extruder
G1 X0 Y0 F5000 ; move to 0/0/0
G1 Z0
M109 S[first_layer_temperature] ; Heat up extruder
M42 P4 S0 ; Turn off LED (optional)
M42 P5 S0
M42 P6 S0
G1 X20 Y5 Z0.3 F5000.0 ; move to start-line position
G1 Z0.3 F1000 ; print height
G1 X200 Y5 F1500.0 E15 ; draw 1st line
G1 X200 Y5.3 Z0.3 F5000.0 ; move to side a little
G1 X5.3 Y5.3 Z0.3 F1500.0 E30 ; draw 2nd line
@kind3r
Copy link
Author

kind3r commented Apr 20, 2020

Startup code I use in my Artillery Genius:

  • preheat to 150 in background to save time
  • home axis
  • perform ABL (cause I have a BLTouch, this is optional)
  • move to 0x0x0 and heat to filament temp (so that it has no place to ooze)
  • do 2 purge lines on the whole length of the bed on X axis at 0.3 layer height

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment