Skip to content

Instantly share code, notes, and snippets.

@j0hnm4r5
Last active January 7, 2023 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j0hnm4r5/be4961a4a53151c545f7a4666c595dbb to your computer and use it in GitHub Desktop.
Save j0hnm4r5/be4961a4a53151c545f7a4666c595dbb to your computer and use it in GitHub Desktop.
Start/End GCODE for Wanhao Duplicator i3 Plus / Monoprice Maker Select Plus in Cura
;Sliced at: {day} {date} {time}
;Basic settings: Layer height: {layer_height} Walls: {wall_thickness} Fill: {fill_density}
;Print time: {print_time}
;Filament used: {filament_amount}m {filament_weight}g
;Filament cost: {filament_cost}
G21 ;metric values
G90 ;absolute positioning
M117 Heating extruder & bed...
M109 S{print_temperature} ;wait for extruder temp
M190 S{print_bed_temperature} ;wait for bed temp
M117 Homing...
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
M117 Purging extruder...
M82 ;set extruder to absolute mode
G1 Z0.2 F1200 ; raise nozzle 0.2mm
G92 E0 ; reset extrusion distance
G1 Y10 ; move Y-Axis (bed) 10mm to prep for purge
G1 X100 E12 F600 ; move X-carriage 100mm while purging 12mm of filament
G92 E0 ; reset extrusion distance
G1 F{speed_travel}
M117 Printing...
M400 ; wait for pending commands to finish
M104 S0 ; turn off hotend/extruder heater
M140 S0 ; turn off bed heater
M117 Retracting filament...
G91 ; set to 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 F4800 ; move Z up a bit and retract filament even more
M106 S0 ; fan off
G90 ; set to absolute positioning
M117 Getting out of the way...
G1 X20 ; move X axis close to tower but hopefully far enough to keep the fan from rattling
G1 Y180 ; move bed forward for easier part removal
M84 ; disable motors
G90 ;absolute positioning
M117 Done! Retrieve your print.
;{profile_string}
@j0hnm4r5
Copy link
Author

j0hnm4r5 commented Jan 6, 2023

This is based on a number of sources, including this and this.

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