User Tools

Site Tools


starting_ending_g-code_scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
starting_ending_g-code_scripts [2017/07/29 10:46]
Matthew Upp
starting_ending_g-code_scripts [2019/10/19 01:44] (current)
Matthew Upp
Line 6: Line 6:
  
 You can see where to put these scripts within Cura on the [[starting_ending_g-code_location|Starting & Ending G-code Scripts Location]] page. You can see where to put these scripts within Cura on the [[starting_ending_g-code_location|Starting & Ending G-code Scripts Location]] page.
 +
  
  
Line 11: Line 12:
 <WRAP column half> <WRAP column half>
  
-===== Starting G-code ===== +===== Starting G-code ​with Purge ===== 
-<file gcode starting_g-code_script.gcode>+<file gcode 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 G28 ; home all axes
-; The following lines can be eliminated if using a skirt 
 ; The lines below are to prep the nozzle before a print begins ; The lines below are to prep the nozzle before a print begins
 G1 Z0.2 F1200 ; raise nozzle 0.2mm G1 Z0.2 F1200 ; raise nozzle 0.2mm
 G92 E0 ; reset extrusion distance G92 E0 ; reset extrusion distance
-G1 Y10 ; move Y-Axis (bed) 10mm to prep for purge+G1 Y1 ; move Y-Axis (bed) 1mm to prep for purge
 G1 X100 E12 F600 ; move X-carriage 100mm while purging 12mm of filament G1 X100 E12 F600 ; move X-carriage 100mm while purging 12mm of filament
 G92 E0 ; reset extrusion distance G92 E0 ; reset extrusion distance
Line 29: Line 31:
  
  
-===== Ending G-code =====+===== Ending G-code ​with fan off after 6 minutes ​=====
 <file gcode ending_g-code_script.gcode>​ <file gcode ending_g-code_script.gcode>​
 M104 S0 ; turn off hotend/​extruder heater M104 S0 ; turn off hotend/​extruder heater
 M140 S0 ; turn off bed heater M140 S0 ; turn off bed heater
-G91 ; Switch ​to use Relative Coordinates+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 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 Z1 ; raise Z 1mm from current position
 G1 E-2 F300 ; retract filament even more G1 E-2 F300 ; retract filament even more
-G90 ; Switch back to using Absolute Coordinates+G90 ; set to absolute positioning
 G1 X20 ; move X axis close to tower but hopefully far enough to keep the fan from rattling G1 X20 ; move X axis close to tower but hopefully far enough to keep the fan from rattling
-G1 Y115 ; move bed forward for easier part removal+G1 Y120 ; move bed forward for easier part removal
 M84 ; disable motors M84 ; disable motors
-G4 S600 ; keep fan running for 600 seconds to cool hotend and allow the fan to be turned off +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. Some say M107 doesn'​t work for them but if the hotend is cool enough ​it should work +M107 ; turn off fan. Don't use M106 S1. Using M106 S1 may prevent the fan from turning on for the following print. Some say M107 doesn'​t work for them but if the hotend is below 70 degrees ​it should work 
-;M106 S1 ; turn off fan. Remove the semicolon in front of M106 if M107 doesn'​t work for you+
 </​file>​ </​file>​
 +
 +</​WRAP>​
 +</​WRAP>​
 +
 +
 +----
 +
 +
 +<WRAP group>
 +<WRAP column half>
 +
 +===== Starting G-code if Using a Skirt or Brim =====
 +<file gcode 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
 +</​file>​
 +
 +
 +</​WRAP>​
 +
 +<WRAP column half>
 +
 +
 +===== Ending G-code with fan remains on =====
 +<file gcode 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
 +</​file>​
 +
 +
 +</​WRAP>​
 +</​WRAP>​
 +
 +
 +----
 +
 +
 +<WRAP group>
 +<WRAP column half>
 +
 +===== Common Starting G-code request =====
 +
 +==== Prime the nozzle before a print begins ====
 +<​code>​
 +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
 +</​code>​
 +
 +
 +</​WRAP>​
 +
 +<WRAP column half>
 +
 +
 +===== Common Ending G-code request =====
 +
 +==== Move bed forward for easier part removal ====
 +Add this just before the line with <color #​CC2255>​M84 ; disable motors</​color>​
 +<​code>​
 +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
 +</​code>​
 +
 +----
 +
 +==== Raise gantry up for easier part removal ====
 +Add this just before the line with <color #​CC2255>​M84 ; disable motors</​color>​
 +<​code>​
 +G90 ; set to absolute positioning
 +G1 Z121; move gantry all the way up
 +</​code>​
 +
 +----
 +
 +==== Turn fan off after print is completed ====
 +
 +//Nozzle temperature must be below 70°C before command <color #​CC2255>​M107</​color>​ is received else the fan will remain on. \\
 +If the fan remains on after a print is completed try increasing <color #​CC2255>​G4 S360</​color>​ to <color #​CC2255>​G4 S420</​color>​. This will wait 420 seconds (7 minutes) before sending command <color #​CC2255>​M107</​color>​. //
 +
 +<​code>​
 +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
 +</​code>​
  
 </​WRAP>​ </​WRAP>​
 </​WRAP>​ </​WRAP>​
  
starting_ending_g-code_scripts.1501325173.txt.gz · Last modified: 2017/07/29 10:46 by Matthew Upp