Jump to content
Sign in to follow this  
maartenw

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

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.

 

Share this post


Link to post
Share on other sites
Posted · Parameters in start.gcode

The settings used should be included at the end of the file. They're not in plain text but can be imported into cura at a later date.

 

Share this post


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?

 

Share this post


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

 

Share this post


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.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Our picks

    • Ultimaker Cura 4.0 | Stable available!
      Ultimaker Cura 4.0 is mainly focused on the improved user interface and cloud integration.
      As always, we want to collect your user feedback for this release. If there are any improvements you can think of, feel free to mention it here and help us to shape the next release.
      • 98 replies
×
×
  • Create New...

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!