You are on page 1of 2

; Add these codes to the start and end sections of the Printer settings within Cura

; 2023-04-11

; start gcode

G21 ;metric values


G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
M117 Homing X/Y ...
G28 X0 Y0 ; move X/Y to min endstops
M117 Homing Z ...
G28 Z0 ;move Z to min endstops
G1 Z15.0 F240 ;move the platform down 15mm
M117 Heating ...
M140 S{material_bed_temperature_layer_0} ;Start heating bed
M105 ;measure and display temperature of bed and nozzle
M190 S{material_bed_temperature_layer_0} ;Wait for bed to reach temp before
proceeding
M104 S{material_print_temperature_layer_0} ;Start heating extruder
M105 ;measure and display temperature of bed and nozzle
M109 S{material_print_temperature_layer_0} ;Wait for extruder to reach temp before
proceeding
M117 Start cleaning ...
M420 S1 ; Enable Bed Levelling Mesh
G92 E0 ; zero the extruded length
M413 S0 ; disable power loss recovery - may reduce blobbing and avoid unexpected
recovery
; M500 ; store eeprom settings
M117 Intro line ...
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z{layer_height_0} F1500.0 ; Move to start position
G1 X0.1 Y200.0 Z{layer_height_0} F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z{layer_height_0} F1500.0 ; Move to side a little
G1 X0.4 Y20 Z{layer_height_0} F1500.0 E30 ; Draw the second line
G92 E0 ; Reset Extruder
G1 X5 Y20 Z0.3 F240 ; Move over and up to prevent blob squish
G92 E0 ; Reset Extruder
M420 S1 ; Enable Bed Levelling Mesh
M117 Printing...

;------------------------

; end gcode

M117 Cooling down...


M104 S0 ; turn off extruder
M140 S0 ; turn off bed
M107 ; Fan off
M84 ; disable motors
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some
of the pressure
G1 Z+0.5 E-5 ;X-20 Y-20 F240 ;move Z up a bit and retract filament even more
G28 X0 ;move X to min endstops, so the head is out of the way
G90 ;Absolute positioning
G1 Y215 F3000 ;Present print
M84 ;steppers off
; M300 P300 S4000 ; turning off tone
M117 Finished.

You might also like