Jump to content

start GCode


tomnagel

Recommended Posts

Posted · start GCode

In Cura, I have a tab called "Start/End-GCode". If I compare the GCode that is generated by Cura with the lines on that tab, I notice there are some lines in the GCode even before the Startcode. I copied them both below.

 

I want to do some actions with the printer before it starts warming up. Currently, this is not possible, because the lines in StartCode are executed AFTER the warming commands.

Can I somehow influence these first few lines? Where do they come from?

 

 

Below the actual GCode:

 

M140 S65.000000

M109 T0 S190.000000

T0

M190 S65.000000

;Sliced at: Sat 10-05-2014 21:36:23

;Basic settings: Layer height: 0.2 Walls: 0.4 Fill: 0

;Print time: #P_TIME#

;Filament used: #F_AMNT#m #F_WGHT#g

;Filament cost: #F_COST#

;M190 S65 ;Uncomment to add your own bed temperature line

;M109 S190 ;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 F15000 ;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 F15000

;Put printing message on LCD screen

M117 Printing...

 

And here is the StartCode:

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

 

  • Link to post
    Share on other sites

    Posted · start GCode

    The lines on the top come from Cura. They won't be there if you uncomment lines 6 and 7 of the start.gcode. And then you can add other commands before these two lines.

     

  • Link to post
    Share on other sites

    Posted · start GCode

    I always set my temp to 0C in cura which means Cura doesn't do anything related to temperature so you can add your own temperature gcodes (there's one where it waits until it gets to the temp and another gcode where it doesn't wait) or you can set the temp before you start the print or whatever.

     

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