Skip to content

Instantly share code, notes, and snippets.

@ex-nerd
Created October 22, 2019 07:22
Show Gist options
  • Save ex-nerd/cf4463e40bbe2ca23bd06d6f8813e76d to your computer and use it in GitHub Desktop.
Save ex-nerd/cf4463e40bbe2ca23bd06d6f8813e76d to your computer and use it in GitHub Desktop.

Revisions

  1. ex-nerd created this gist Oct 22, 2019.
    35 changes: 35 additions & 0 deletions kosselpro_prusaslicer_start.gcode
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    ; Start heating up the base first (takes logest)
    M140 S[first_layer_bed_temperature]

    ; Set the standby and active temperatures for "both" tools
    G10 P0 R[temperature_0] S[temperature_0]
    G10 P1 R[temperature_1] S[temperature_1]

    ; Home to top 3 endstops
    G28

    ; Allow movement outside machine limits
    M564 S0

    ; move to starting position to heat up
    G1 X122.5 Y0 Z3 F6000.0

    ; Wait for the temp to be good for the first layer
    M109 S[first_layer_temperature] ; extruder temp
    M190 S[first_layer_bed_temperature] ; bed temp

    ; Draw an arc along the outer edge of the print bed.
    G92 E0.0
    G1 Z0.2 F6000.0 ; drop down to 0.2mm
    G2 X106.738 Y-60.11 I-122.5 J0 E9.0 F1000.0 ; intro line
    G2 X81.684 Y-91.291 I-106.738 J60.11 E12.5 F1000.0 ; intro line
    G92 E0.0

    ; Enforce machine limits
    M564 S1

    M83 ; extruder relative mode

    ; Just in case someone mucked with the temperature above, make sure it’s set properly
    M104 S[first_layer_temperature] ; set extruder temp
    M140 S[first_layer_bed_temperature] ; set bed temp