Notifications
Clear all

[Solved] GCode operations help  

  RSS
targodove
(@targodove)
New Member
GCode operations help

I would like to do something like "M190 S{first_layer_bed_temperature-10}" however this is invalid. This "{if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+30, max_print_height)}{endif} " however is allowed so clearly some form of operations (addition and subtraction) are allowed in the GCode. 

Where could I find more information on what GCode operation are allowed and how would I structure a command to set and wait for the bed level temperature to reach (first_layer_bed_temperature - 10)?

Best Answer by Dave Avery:

rough details @ https://github.com/prusa3d/PrusaSlicer/wiki/Slic3r-Prusa-Edition-Macro-Language

and your answer...

M190 S{first_layer_bed_temperature[0]-10}

Posted : 04/09/2019 11:13 am
Dave Avery
(@dave-avery)
Honorable Member
RE: GCode operations help

rough details @ https://github.com/prusa3d/PrusaSlicer/wiki/Slic3r-Prusa-Edition-Macro-Language

and your answer...

M190 S{first_layer_bed_temperature[0]-10}

Posted : 04/09/2019 11:38 am
targodove liked
bobstro
(@bobstro)
Illustrious Member
RE: GCode operations help

Have you tried using first_layer_bed_temperature[0]?

My notes and disclaimers on 3D printing and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan...
Posted : 04/09/2019 1:38 pm
targodove liked
Share: