is there a gcode to enable the chamber fan on print start? id like to enable it when it passes 35c in the chamber and then turn off or reduce chamber fan speed as needed?
i have never messed with gcode yet so i would have no idea how to do this
my chamber can hit 42c on long prints due to the soundproofing box i built around it and if i remove the top/door it adds to the sound which will keep me from sleeping
The X1C chamber temperature live control is not (easily) achieved by coding due to many limitations.
Some relevant to your case:
The g-code is interpreted line by line, so a conditional loop is interpreted once and not run continuously - suggestion: use the layer change g-code, i.e. at every layer change, it will verify the chamber temperature and adjust the fan speed;
There are many unavailable variables. The truth is that they just aren’t documented. I usually find them by trial and error with educated guesses based on the other variables’ names and types.
I cannot find the chamber temperature, and I am printing, so I am unable to verify - suggestion: my guess is an array, so test chamber_temperature[0] ;
The chamber temperature is regulated in the printer g-code and firmware; the latter takes precedence and is not editable. I think 35C will not be a problem, but you must test.
The marling command to set the BL chamber fan is
M106 P3 SXXX;
The XXX varies between 0 and 255, i.e. 0% - S0 and 100% - S255.
Instead of using the maximum, you can use a lower frequency and reduce noise.
At your own risk, go to the printer settings(1), machine g-code tab (2), and in the layer box (3):
It would matter if there is a command to change the fan settings afterwards. My g-code(default) mainly focuses on the timelapse, update info, etc… no fan.
Anywhere should work…
Edit: for testing, I would print something simple (e.g. a cube) and set the temperature to a value slightly superior to the measured value. The fan will start (or not) quickly, and you save material and time to get the result.
I am sorry to read it, and thank you for sharing.
I was almost sure it could work. I still don’t see how it can fail. I will try to replicate your test and look for a solution if it exists.
Please correct me if I am wrong: you added the code into the “Machine G-code” - “Layer Change G-code” and tested it and found that when the printer chamber temperature exceeds the 35ºC setpoint, the auxiliary fan doesn’t start as expected.