Jump to content
Ultimaker Community of 3D Printing Experts

Parameters in start.gcode


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


;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

      • New here? Get ahead with a free onboarding course
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 13 replies
    • Create New...