Jump to content
Ultimaker Community of 3D Printing Experts

"perfect" start.gcode & end.gcode for Cura 15.04.2 (Mac) for Octoprint

Recommended Posts

I've been reading this board and several threads about octoprint and reprap.

It looks like the default end and start code is not the best to use.

Currently it is :

start.gcode :


G28G1 X110 Y45 F3000 ; bring extruder to the frontG92 E0 ; zero the extruded lengthG1 Z30 ; lowerG1 E50 F225 ; purge nozzle with 50mm of filamentG1 X80 Y60 F3000 ; move aside of the puddle of primed plasticG92 E0 ; zero the extruded length again


end.gcode :


G28M104 S0 ; turn off heatersM140 S0 ; turn off bedM84 ; disable motors


But that doesn't seem to be the perfect codes to use with Octoprint?

Anybody who can help me out with tweaking this code to use with my Ultimaker2?

Thanks in advance ;)

Share this post

Link to post
Share on other sites

ow OK, my bad :-)

The default start.gcode is :

;Sliced at: {day} {date} {time}
;Basic settings: Layer height: {layer_height} Walls: {wall_thickness} Fill: {fill_density}
;Print time: {print_time}
;Filament used: {filament_amount}m {filament_weight}g
;Filament cost: {filament_cost}
;M190 S{print_bed_temperature} ;Uncomment to add your own bed temperature line
;M109 S{print_temperature} ;Uncomment to add your own temperature line
G21        ;metric values
G90        ;absolute positioning
M82        ;set extruder to absolute mode
M107       ;start with the fan off
G28 X0 Y0  ;move X/Y to min endstops
G28 Z0     ;move Z to min endstops
G1 Z15.0 F{travel_speed} ;move the platform down 15mm
G92 E0                  ;zero the extruded length
G1 F200 E3              ;extrude 3mm of feed stock
G92 E0                  ;zero the extruded length again
G1 F{travel_speed}
;Put printing message on LCD screen
M117 Printing...

default end.gcode :

;End GCode
M104 S0                     ;extruder heater off
M140 S0                     ;heated bed heater off (if you have it)
G91                                    ;relative positioning
G1 E-1 F300                            ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
G28 X0 Y0                              ;move X/Y to min endstops, so the head is out of the way
M84                         ;steppers off
G90                         ;absolute positioning

which one should I use? Or do I need adjustments to any of the codes?

Edited by Guest

Share this post

Link to post
Share on other sites

Not perfect but it's mine :)


G28			; Tous les axes en position maisonG1 X10 Y15 Z20 F12000	; Positionnement de la tête pour le primingG92 E0			; Remise à zéro de la position feederG1 E28 F225		; Extrusion rapideG92 E0			; Remise à zéro de la position feederG1 E6 F60		; Extrusion d'appointG1 X100 Y15 Z0.2 F12000	; Dépôt du résidu



G1 Z0.2			; LiftG1 E-20 F1000		; Rétraction M104 S0			; Extinction de l'extrudeuseM140 S0			; Extinction du plateau chauffantG28			; Tous les axes en position maisonM84			; Mise hors tension des moteurs


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Our picks

    • Ultimaker Cura | a new interface
      We're not only trying to always make Ultimaker Cura better with the usual new features and improvements we build, but we're also trying to make it more pleasant to operate. The interface was the focus for the upcoming release, from which we would already like to present you the first glance. 
        • Like
      • 27 replies
    • "Back To The Future" using Generative Design & Investment Casting
      Designing for light-weight parts is becoming more important, and I’m a firm believer in the need to produce lighter weight, less over-engineered parts for the future. This is for sustainability reasons because we need to be using less raw materials and, in things like transportation, it impacts the energy usage of the product during it’s service life.
        • Like
      • 12 replies

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!