The start gcode can contain replacement patterns such as {material_print_temperature} which will be automatically replaced with -in this case- the material temperature. Now there is no setting for linear advance in Cura, so no replacement pattern either (or is there?).
I recently wrote a plugin to be able to enter a Z Offset in the sidebar. I can easily adapt that to add a Linear Advance setting that you can use in your start gcode (but that has no other effect). Does that make sense? I must admit I don’t know what gcode you need for linear advance.
If you really want different start gcode, and you are not affraid of editing text-files, you can manually edit your quality profiles to include start gcode snippets.
In the Configuration folder, there’s a folder named “definition_changes”, which has a .inst.cfg file for your printer(s) containing the changes you make in Machine Settings - including start gcode. The “quality_changes” folder contains very similar files, for the quality profiles you created. You can copy and edit the gcode snippets to the quality_changes files, and that will override what is set in the machine settings.
I would NOT recommend the latter route.
Recommended Posts
gr5 2,094
Well maybe you could create a different machine for each type of filament? Then each machine could have different start codes. You could also create a plugin to do this easily and the plugin input value (the gcode) could show up as one of the many profile settings. This would probably be a plugin that other people would use. It's easiest to look at an existing plugin and just make the minor modifications to make it do your gcode insertion thing.
Link to post
Share on other sites