Jump to content

Parameters in start.gcode


maartenw

Recommended Posts

Posted · Parameters in start.gcode

in Cura (14.01) 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}

 

This results in a start of the generated gcode:

;Generated with Cura_SteamEngine 13.12

M109 T0 S220.000000

T0

;Sliced at: Mon 10-02-2014 00:50:32

;Basic settings: Layer height: 0.1 Walls: 0.8 Fill: 30

;Print time: #P_TIME#

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

;Filament cost: #F_COST#

 

Would it be possible to get the correct figures for {print_time}, {filament_amount} and many other settings - also those not shown in the default start.gcode?

I would like to include the Basic, Advanced and Expert settings in the gcode file.

 

  • Link to post
    Share on other sites

    Posted · Parameters in start.gcode

    Thanks for the quick answer.

    OK, at the end of the file, but in the default code, the partial info is in the start code, and gives eg #P_TIME#, which is something I cannot translate to time ...

    You mention to import the values, but howto?

     

  • Link to post
    Share on other sites

    Posted · Parameters in start.gcode

    I also recognized this issue a while ago and already asked Daid about it.

    From my point of view this info lines are very helpfull as I store all my gcodes. When there´s a need to printing them it´s nice to just to open the file in editor instead loading it into cura and can see how long the print app. takes - or if you sell the prints, how much it costs...

     

  • Link to post
    Share on other sites

    Posted · Parameters in start.gcode

    You mention to import the values, but howto?

    In cura do "file" "import profile from gcode". Something like that.

    Pretty much all settings that can be found in an ini file ("file" "save profile") can be placed in the start.gcode section.

    So you could save all the settings you care about at the top of the file. That's actually a really cool idea. I don't recommend putting all 100 or so settings there - but the ones you have ever changed would be good.

     

  • 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
        • 48 replies
    ×
    ×
    • Create New...