Jump to content

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


Recommended Posts

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

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 ;)

  • Link to post
    Share on other sites

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

    Ha I recognise that code. Its my simplify3d start code. Easy to recognise as it starts in the front-middle and not the left-front. You can change the xy easy to left front again. I've not used octoprint but it's on my todo list. .. i'll see if I can have a look soon.

  • Link to post
    Share on other sites

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

    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
  • Link to post
    Share on other sites

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

    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


  • 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

      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
      • Ultimaker Cura 5.6 stable released
        Cura now supports Method series printers!
        A year after the merger of Ultimaker and MakerBotQQ, we have unlocked the ability for users of our Method series printers to slice files using UltiMaker Cura. As of this release, users can find profiles for our Method and Method XL printers, as well as material profiles for ABS-R, ABS-CF, and RapidRinse. Meaning it’s now possible to use either Cura or the existing cloud-slicing software CloudPrint when printing with these printers or materials
        • 6 replies
    • Create New...