User Tools

Site Tools


Sidebar


User's Manual & Quick Start Guide

Specifications

Where to Purchase

Donations & Support

Replacements Parts & Information

Mods & Improvements

How-to

OctoPrint

Slicer Stuff

Troubleshooting

Maintenance

WiFi

Web UI

Firmware

Downloads

Donations & Support



Looking for the Monoprice MP Mini Delta Wiki?

starting_ending_g-code_scripts

Starting & Ending G-code Scripts


You can see where to put these scripts within Cura on the Starting & Ending G-code Scripts Location page.

Starting G-code with Purge

starting_g-code_script_with_purge.gcode
G90 ; set to absolute positioning - this line was added in case Cura doesn't include it by default
M82 ; set extruder to absolute mode - this line was added in case Cura doesn't include it by default (may not be needed)
G28 ; home all axes
; The lines below are to prep the nozzle before a print begins
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

Ending G-code with fan off after 6 minutes

ending_g-code_script.gcode
M104 S0 ; turn off hotend/extruder heater
M140 S0 ; turn off bed heater
G91 ; set to relative positioning
G1 E-2 F300 ; retract the filament a bit before lifting the nozzle to release some of the pressure
G1 Z1 ; raise Z 1mm from current position
G1 E-2 F300 ; retract filament even more
G90 ; set to absolute positioning
G1 X20 ; move X axis close to tower but hopefully far enough to keep the fan from rattling
G1 Y120 ; move bed forward for easier part removal
M84 ; disable motors
G4 S360 ; keep fan running for 360 seconds to cool hotend and allow the fan to be turned off - adjust to your needs
M107 ; turn off fan. Don't use M106 S1. Some say M107 doesn't work for them but if the hotend is below 70 degrees it should work

Starting G-code if Using a Skirt or Brim

starting_g-code_script_without_purge.gcode
G90 ; set to absolute positioning - this line was added in case Cura doesn't include it by default
M82 ; set extruder to absolute mode - this line was added in case Cura doesn't include it by default (may not be needed)
G28 ; home all axes
G92 E0 ; reset extrusion distance

Ending G-code with fan remains on

ending_g-code_script.gcode
M104 S0 ; turn off hotend/extruder heater
M140 S0 ; turn off bed heater
G91 ; set to relative positioning
G1 E-2 F300 ; retract the filament a bit before lifting the nozzle to release some of the pressure
G1 Z1 ; raise Z 1mm from current position
G1 E-2 F300 ; retract filament even more
G90 ; set to absolute positioning
G1 X20 ; move X axis close to tower but hopefully far enough to keep the fan from rattling
G1 Y120 ; move bed forward for easier part removal
M84 ; disable motors

Common Starting G-code request

Prime the nozzle before a print begins

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

Common Ending G-code request

Move bed forward for easier part removal

Add this just before the line with M84 ; disable motors

G90 ; set to absolute positioning
G1 X20 ; move X axis close to tower but hopefully far enough to keep the fan from rattling
G1 Y120 ; move bed forward for easier part removal

Raise gantry up for easier part removal

Add this just before the line with M84 ; disable motors

G90 ; set to absolute positioning
G1 Z121; move gantry all the way up

Turn fan off after print is completed

Nozzle temperature must be below 70°C before command M107 is received else the fan will remain on.
If the fan remains on after a print is completed try increasing G4 S360 to G4 S420. This will wait 420 seconds (7 minutes) before sending command M107.

G4 S360 ; keep fan running for 360 seconds to cool hotend and allow the fan to be turned off - adjust to your needs
M107 ; turn off fan
starting_ending_g-code_scripts.txt · Last modified: 2017/12/27 05:04 by Matthew Upp