Check if extrusion is possible based on M302 parameters
-
Hello,
my toolchanger has prime/brush macros as part of the actual toolchange code and I wonder if there is a way to check for "is extruder hot enough for extrusion" based on the temperatures set in M302? (without manually checking for hardcoded temps)
Basically I want to skip the entire prime/brush cycle if I select a given tool when it's cold. Right now it will still try to do it and spawn the expected "too cold for extrusion" errors.
While this is not doing any harm, I'd still like to avoid that -
Yes you can
For example I have this as part of my stop.g which gets called at the end of every print.
The only thing in the slicer stop code is M0Note this is part of a loop which checks all tools, turns them off etc
It's not stand alone code but will give you the ideaif {state.currentTool!=-1} ; check if any tools are active G91 ; relative positioning if #tools[state.currentTool].heaters > 0 & heat.heaters[tools[state.currentTool].heaters[0]].current > heat.coldRetractTemperature G1 E-2 F300 ; retract the filament a bit before lifting the nozzle to release some of the pressure M291 P"Retracted 2mm" R"Retracting" S0 T5 G4 S6 ; wait for popup else M291 P{"Not retracted... Heater off or below extrude temp " ^ heat.heaters[1].current ^ " : " ^ heat.coldRetractTemperature ^ "."} R"Retract" S0 T5 G4 S6 ; wait for popup else M291 P"No active tool" R"Check tools" S0 T3
-
Ahh, perfect, thanks a lot I really need to dig more into what the objectmodel has to offer.