UltiMaker uses functional, analytical and tracking cookies. Tracking cookies enhance your experience on our website and may also collect your personal data outside of Ultimaker websites. If you agree with the use of tracking cookies, click “I agree, continue browsing”. You can withdraw your consent at any time. If you do not consent with the use of tracking cookies, click “Refuse”. You can find more information about cookies on our Privacy and Cookie Policy page.
Is it possible to perform operations on cura variables in start gcode? For example if layer_0 is 65C, adding 5 to a variable like M190 S{material_bed_temperature_layer_0 + 5}. This does not work, it shows M190 S65+5 when I look at the gcode and I want it to be M190 S70, but that gives an idea of what I'm trying to do. If that is possible, what is the syntax to add +5 to the variable?
How to perform operations on cura gcode variables?
in UltiMaker Cura
Posted
Is it possible to perform operations on cura variables in start gcode? For example if layer_0 is 65C, adding 5 to a variable like M190 S{material_bed_temperature_layer_0 + 5}. This does not work, it shows M190 S65+5 when I look at the gcode and I want it to be M190 S70, but that gives an idea of what I'm trying to do. If that is possible, what is the syntax to add +5 to the variable?