Start and End Gcode PrusaSlicer and SuperSlicer

Posted by Andrew Van Rayel

Start Code

At the beginning, it draws a line to the left. The table and the extruder are warmed at the same time, not one at a time.

G90 ; use absolute coordinates

M83 ; extruder relative mode

M104 S[first_layer_temperature] ; set extruder temp

M140 S[first_layer_bed_temperature] ; set bed temp

M190 S[first_layer_bed_temperature] ; wait for bed temp

M109 S[first_layer_temperature] ; wait for extruder temp

G28 ; home all

G1 Z2 F240

G1 X2 Y10 F2500

G1 Z0.28 F240

G92 E0.0

G1 Y170 E15.0 F1500.0 ; intro line

G1 X2.3 F5000

G1 Y10 E30 F1200.0 ; intro line

G92 E0.0

End Code

Parks the extruder over the model and moves the table forward (not to the rear as in the stock version)

M104 S0 ; turn off temperature

M140 S0 ; turn off heatbed

M107 ; turn off fan

{if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+10, max_print_height)} F600{endif} ; Move print head up

G1 X0 Y160 F2500 ; present print

M84 X Y E ; disable motors

Last Threads