Command T0 sets bed to active temp and tool 0 to off
-
Hi all,
I'm working through changing my workflow on my printer, and I'm trying to figure out why the command
T0
is causing this behavior to happen. I would ideally wantT0
to just select the tool and the bed, but put both of them in the "off" state.Is this the expected behavior when executing this command, or am I doing something incorrectly?
Thank you
-
You could call a .G file using M98 and pass it a parameter to control the effect:
Bed heater control:
M140 Saaa Rsss ; where aaa is the active temp and sss is the standby temp M144 S1 ; S0 = standby S1 = active
Tool heater control:
; --------------------------------------------------------------------------------
; M568 Pnnn Rnnn Snnn Fnnn An
; - Parameters
; -- Pnnn: tool number - if this parameter is not provided, the current tool is used
; -- Rnnn: standby temperature(s)
; -- Snnn: active temperature(s)
; -- An : heater state: 0 = off, 1 = standby temperature(s), 2 = active temperature(s)
;
; Supported in RRF 3.3 and later. If there is a current tool and the P parameter specifies a different tool, then any heaters used by the current tool are not affected.
; --------------------------------------------------------------------------------M568 Pttt Saaa Rsss Ahhh ; where ttt is the tool #, aaa is the active temp, sss the standby temp and hhh is the heater state
-
@Surgikill said in Command T0 sets bed to active temp and tool 0 to off:
Hi all,
I'm working through changing my workflow on my printer, and I'm trying to figure out why the command
T0
is causing this behavior to happen. I would ideally wantT0
to just select the tool and the bed, but put both of them in the "off" state.Is this the expected behavior when executing this command, or am I doing something incorrectly?
Thank you
That's really weird. Why should selecting a tool have any effect on what the bed heater does? Or just as importantly, why would you want it to? The only explanation I can think of is that there is something in the tool change macros (tpre or tpost) that is changing the behaviour of the bed heater. If you send T0 P0 that will select the tool and suppress any tool change macros. Or if you want to Tn to do something with the bed heater, then that would be the place to put those commands (either tpre or tpost).
-
@fcwilt Where would I be putting the M98 command, in the tpost.g file?
-
@Surgikill said in Command T0 sets bed to active temp and tool 0 to off:
@fcwilt Where would I be putting the M98 command, in the tpost.g file?
Have you determined how the T0 command is current affecting the heating state of the tool and/or bed?
In any case in the tpre#.g files the tool is not yet selected. In the tpost#.g files it is.
So you can put the M568 Pttt Ahhh in the tpost#.g file specifying the tool number with ttt and the heater state with hhh (0 = off, 1 = standby temps, 2 = active temps)
You can use M118 to monitor what happens during tool changes if you might find that helpful.
For example, you can put the following in each specified file where # is the tool number.
M118 S{"tpre#.g state.currentTool = " ^ state.currentTool} M118 S{"tpost#.g state.currentTool = " ^ state.currentTool} M118 S{"tfree#.g state.currentTool = " ^ state.currentTool}
Then as tool changes take place you can see how the value of the currentTool state changes.
Frederick