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
Last revision Both sides next revision
starting_ending_g-code_scripts [2017/12/24 13:28]
Matthew Upp
starting_ending_g-code_scripts [2019/03/24 01:03]
Matthew Upp
Line 14: Line 14:
 ===== Starting G-code with Purge ===== ===== Starting G-code with Purge =====
 <file gcode starting_g-code_script_with_purge.gcode>​ <file gcode starting_g-code_script_with_purge.gcode>​
-G90 ; absolute positioning - this line was added in case Cura doesn'​t include it by default+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) 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
Line 20: Line 20:
 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 35: Line 35:
 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 Y120 ; move bed forward for easier part removal G1 Y120 ; move bed forward for easier part removal
Line 60: Line 60:
 ===== Starting G-code if Using a Skirt or Brim ===== ===== Starting G-code if Using a Skirt or Brim =====
 <file gcode starting_g-code_script_without_purge.gcode>​ <file gcode starting_g-code_script_without_purge.gcode>​
-G90 ; absolute positioning - this line was added in case Cura doesn'​t include it by default+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) 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
Line 76: Line 76:
 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 Y120 ; move bed forward for easier part removal G1 Y120 ; move bed forward for easier part removal
Line 117: Line 117:
  
 ==== Move bed forward for easier part removal ==== ==== Move bed forward for easier part removal ====
 +Add this just before the line with <color #​CC2255>​M84 ; disable motors</​color>​
 <​code>​ <​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 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 G1 Y120 ; move bed forward for easier part removal
 </​code>​ </​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 ==== ==== Turn fan off after print is completed ====
starting_ending_g-code_scripts.txt · Last modified: 2019/10/19 01:44 by Matthew Upp