Hi, I have a temperature_fan that I’m hopefully trying to have set from superslicer’s chamber temperature setting being passed in. The idea is that once the chamber gets up to temp the fan will use PID to control it so that it stays around the target. (I don’t have a heater for the chamber, so it works using bed heat)
What I can’t figure out is how to get it to set a target temperature based on a value from super slicer. I’m passing M141 S[chamber_temperature] in my start gcode from superslicer but it doesn’t seem to set target_temp. What am I doing wrong?
Could you provide me a little more detail? How does one get the value from the gcode that comes in on M141? Does that automatically then execute on m141 in gcode? I see that there is param. notation but I don’t know what the param would be for the above M141 S[temp] command?
So then I get an unknown gcode m141. It would be preferable to be able to get the value of the m141 that is passed in and call the macro m141. I can’t find anything on how to get that?
The only I can think of that might work is to use “rawparams” and parse the value yourself, but I’ve never tried it so I don’t know for sure. See Commands templates - Klipper documentation for some info on using rawparams
Mainsail has a bug on it though because it will prompt for a value of S but it passes = S instead of just S so it doesn’t work in the UI but it does work in GCode.