start-and-end-gcode

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
start-and-end-gcode [2018/03/30 16:00] – [Ending GCode] samuelpinchesstart-and-end-gcode [2020/12/25 02:13] (current) – external edit 127.0.0.1
Line 12: Line 12:
   * Set position to zero   * Set position to zero
   * Prime the extruder   * Prime the extruder
-  * Wipe the nozzle on the bed (not enabled by default - you need to add your own commands)+  * Wipe the nozzle on the bed (not enabled by default - you need to add your own commands, see below)
   * Enable [[a5:bed-levelling-probe|auto-bed]] or [[a5:mesh-bed-levelling-routine|mesh-bed levelling]] (if configured)   * Enable [[a5:bed-levelling-probe|auto-bed]] or [[a5:mesh-bed-levelling-routine|mesh-bed levelling]] (if configured)
  
 ===Default Start Script=== ===Default Start Script===
-  G28 ; Home all axis +  G28 ; Home all axis 
-  G1 Z15.0 F6000 ; Move up 15mm at 6000mm/min (note: more than the max speed set in the printer firmware) +  G1 Z15.0 F1000 ; Move up 15mm at 1000mm/min 
-  G92 E0 ; Reset extruder length to zero +  G92 E0 ; Reset extruder length to zero 
-  G1 F200 E10 ; Extrude 10mm at 200mm/min +  G1 F200 E10 ; Extrude 10mm at 200mm/min 
-  G92 E0 ;  Reset extruder length to zero+  G92 E0 ;  Reset extruder length to zero 
  
 The lift up and extrude is the "purge and prime" to ensure that filament is flowing correctly. If the filament is left at home position for too long while the nozzle is hot, the filament can ooze out. Then the nozzle will not be ready for printing. The purge and prime gets the filament flowing again ready for printing. The lift up and extrude is the "purge and prime" to ensure that filament is flowing correctly. If the filament is left at home position for too long while the nozzle is hot, the filament can ooze out. Then the nozzle will not be ready for printing. The purge and prime gets the filament flowing again ready for printing.
  
-You can add a "wipe"step to the starting gcode after the "purge" - watch the videos above.+You can add a "wipe" step to the starting gcode after the "purge". Replace the start gcode listed above with the lines below  or watch the videos below.
  
 +
 +===Start Script With Wipe===
 +
 +  * G28 ; Home all axis
 +  * G1 Z15.0 F1000 ; Move up 15mm at 1000mm/min
 +  * G92 E0 ; Reset extruder length to zero
 +  * G1 X0.0 Y0.0 F1000.0 ; go to edge of print area
 +  * G1 Z0.200 F1000.0 ; Go to Start Z position
 +  * G1 X60.0 E9.0 F1000.0 ; intro line
 +  * G1 X100.0 E21.5 F1000.0 ; intro line
 +  * G92 E0.0 ; reset extruder distance position
 +
 +//Thanks to [[https://www.facebook.com/groups/857364187778691/permalink/981597605355348/?comment_id=981614012020374&comment_tracking=%7B%22tn%22%3A%22R%22%7D|DaHai]] for the wipe script. //
 ---- ----
  
  
 ==== Ending GCode ==== ==== Ending GCode ====
-  * Turn off the bed heater +  * G91; Set relative positioning mode 
-  * Turn off the nozzle heater +  * G1 E-5 F600; retract filament slightly 
-  * Home the X and Y axis +  * M140 S0; Turn off the bed heater 
-  * Turn off the motors+  * M104 S0; Turn off the nozzle heater 
 +  * G28 X; Home the X axis 
 +  * G0 Y280 F600; Bring the bed to the front for easy print removal 
 +  * M84; Turn off the motors 
 + 
 +As the home positions on the A5 has the bed towards the back of the printer, one useful command to add to the end GCode, is a command to bring the Y-axis forward to the front once the print is finished. e.g. "**G0 Y280 F600**" 
 + 
 +//Thanks to Rich Haubert for the suggestion to insert a small filament retraction.// 
 + 
 +---- 
 + 
 +=== Wait for Temperature === 
 +Your 3D printer must wait to get to temperature before trying to prime the extruder. Without doing so, it will do nothing but grind the gears on the filament (or crush flexible filament) unless it is still hot enough from a print immediately beforehand. However, the three lines below only have software-specific notation.  
 + 
 +**If you are using Cura, then you do not need to add these lines to your start gcode, they are automatically added.**  
 + 
 +If you are using Slic3r, then you may want to check that you have the following lines in your start gcode.
  
-One command that is not included with the A5 but is good to add, is a command to move the Y-axis forward once the print is finishede.g"G0 Y280 F600+For Slic3r: 
 +    * M190 S[first_layer_bed_temperature] ; Set bed temp. 
 +    * M140 S[first_layer_bed_temperature]  ; Wait for bed temp. 
 +    * M109 S[first_layer_temperature_0]  ; Wait for all used extruders to reach temperature.
  
 +For Cura you can add additional wait commands to the start gcode if you want, but note that the format is slightly different [[https://github.com/Ultimaker/Cura/issues/1131#issuecomment-378851858|(See here)]]:
 +    * M190 S{print_bed_temperature} ; Set bed temp.
 +    * M140 S{print_bed_temperature} ; Wait for bed temp.
 +    * M109 S{print_temperature} ; Wait for all used extruders to reach temperature.
  
 +// Thanks to Poikilos for info on  Wait for temperature.//
 ---- ----
 ==== Links for more info ==== ==== Links for more info ====
start-and-end-gcode.1522386059.txt.gz · Last modified: 2020/12/25 02:13 (external edit)