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

      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
      • 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
        • 26 replies
    ×
    ×
    • Create New...