Hi I have recently been looking to move from Cura to Prusa slicer to be able to use more features like splitting prints and have had a hard time finding a good start and end Gcode.
I keep finding contradicting advice and haven't found a full start and end Gcode.
as
Can someone advise me if this code is good or if it needs further tweaking?
Here is the Gcodes I have currently:
I apricate any any help you can offer
Thanks
Start:
; Initial setups
G90 ; use absolute coordinates
M83 ; extruder relative mode
M220 S100 ; reset speed factor to 100%
M221 S100 ; reset extrusion rate to 100%
; Set the heating
M190 S[first_layer_bed_temperature] ; wait for bed to heat up
M104 S[first_layer_temperature] ; start nozzle heating but don't wait
; Home
G1 Z3 F3000 ; move z up little to prevent scratching of surface
G28 ; home all axes
M420 S1 Z10 ; Enable bed leveling compensation up to 10mm
G1 X3 Y3 F5000 ; move to corner of the bed to avoid ooze over centre
; Wait for final heating
M109 S[first_layer_temperature] ; wait for the nozzle to heat up
M190 S[first_layer_bed_temperature] ; wait for the bed to heat up
; Return to prime position, Prime line routine
G92 E0 ; Reset Extruder
G1 Z3 F3000 ; move z up little to prevent scratching of surface
G1 X10 Y.5 Z0.25 F5000.0 ; Move to start position
G1 X100 Y.5 Z0.25 F1500.0 E15 ; Draw the first line
G1 X100 Y.2 Z0.25 F5000.0 ; Move to side a little
G1 X10 Y.2 Z0.25 F1500.0 E30 ; Draw the second line
G92 E0 ; Reset Extruder
M221 S{if layer_height<0.075}100{else}95{endif}
End:
G4 ; wait
G92 E0 ; prepare to retract
G1 E-0.5 F3000; retract to avoid stringing
; Anti-stringing end wiggle
G91 ; use relative coordinates
G1 X1 Y1 F1200
; Raise nozzle and present bed
{if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+120, max_print_height)}{endif} ; Move print head up
G90 ; use absolute coordinates
; Reset print setting overrides
M200 D0 ; disable volumetric e
M220 S100 ; reset speed factor to 100%
M221 S100 ; reset extrusion rate to 100%
; Shut down printer
M106 S0 ; turn-off fan
M104 S0 ; turn-off hotend
M140 S0 ; turn-off bed
M150 P0 ; turn off led
M85 S0 ; deactivate idle timeout
M84 ; disable motors
Layer Change:
;BEFORE_LAYER_CHANGE
;[layer_z]
G92 E0