Jump to content

How to reset start/end gcode ?


tonycstech

Recommended Posts

Posted · How to reset start/end gcode ?

Reinstalling Cura is one Solution.

Or try in Cura: File > Reset Profile to Default

Or Use the following:

;Start GCode Cura 14.07

;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 S75 ;{print_bed_temperature}

M109 S220 ;{print_temperature}

G21 ;metric values

G90 ;absolute positioning

M82 ;set extruder to absolute mode

M907 E1000 ;set extruder current to normal state

;only needed for Trinamic-Stepper

;not needed for UM2-Original

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...

;END GCode Cura 14.07

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

;{profile_string}

Markus

 

  • Link to post
    Share on other sites

    Posted · How to reset start/end gcode ?

    Just because I had a nightmare trying to restore mine even after reinstalling these might help someone:

     

    Cura 14.09 - Original Ultimaker with Official Heated Bed Kit

    start.gcode

     


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

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

    Posted · How to reset start/end gcode ?

    Thanks !

     

  • Link to post
    Share on other sites

    Posted · How to reset start/end gcode ?

    I have had this too, tinkering with the headers and then not knowing if i have broken something. A "reset to defaults" button for each script would be cool. Once you have edited it, unless you save it away its gone, and even if you reinstall it picks up your old preffernces file with the edits in it.

  • Link to post
    Share on other sites

    Posted · How to reset start/end gcode ?

    For future reference, if you rename/remove current_profile.ini in the Cura directory under the Cura installation directory, Cura will regenerate it with the original start/end gcode.

    On my system. this file is:

    C:Program Files (x86)Cura_14.07Curacurrent_profile.ini

    NOTE THAT THIS RESETS ALL YOUR SETTINGS TOO.

     

  • Link to post
    Share on other sites

    Posted · How to reset start/end gcode ?

    I have had this too, tinkering with the headers and then not knowing if i have broken something. A "reset to defaults" button for each script would be cool. Once you have edited it, unless you save it away its gone, and even if you reinstall it picks up your old preffernces file with the edits in it.

     

    File -> Reset profile to default

     

  • Link to post
    Share on other sites

    Posted · How to reset start/end gcode ?

    File -> Reset profile to default

     

    This was the first thing I tried when I messed up my start.gcode but it doesn't actually seem to restore the default start/end gcode.

     

  • 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 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 18 replies
      • 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
    ×
    ×
    • Create New...