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/07/14 20:01] 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
  
  
Line 31: Line 30:
 ===Start Script With Wipe=== ===Start Script With Wipe===
  
-  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 X0.0 Y0.0 F1000.0 ; go to edge of print area   * G1 X0.0 Y0.0 F1000.0 ; go to edge of print area
   * G1 Z0.200 F1000.0 ; Go to Start Z position   * G1 Z0.200 F1000.0 ; Go to Start Z position
Line 39: Line 38:
   * G1 X100.0 E21.5 F1000.0 ; intro line   * G1 X100.0 E21.5 F1000.0 ; intro line
   * G92 E0.0 ; reset extruder distance position   * 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 ====
 +  * G91; Set relative positioning mode
 +  * G1 E-5 F600; retract filament slightly
   * M140 S0; Turn off the bed heater   * M140 S0; Turn off the bed heater
   * M104 S0; Turn off the nozzle heater   * M104 S0; Turn off the nozzle heater
-  * G28 X Y; Home the X and Y axis+  * G28 X; Home the X axis
   * G0 Y280 F600; Bring the bed to the front for easy print removal   * G0 Y280 F600; Bring the bed to the front for easy print removal
   * M84; Turn off the motors   * M84; Turn off the motors
Line 52: Line 54:
 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**" 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.
 +
 +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.1531562518.txt.gz · Last modified: 2020/12/25 02:13 (external edit)