Parameters:
* Pnnn Heater index
* Snnn Target active temperature (note 1)
* Rnnn Target standby temperature (note 1)
* Tnnn Heater state: 0 = off, 1 = standby 2 = on. (notes 1,2)
This command allows direct control of heaters without having
to know whether a heater is a bed, chamber, tool or some other
type of heater. It does not replace any existing G or M code
commands and is meant more for use from the command line and
by user interfaces. Although nothing prevents it, this command
should not be used by slicers. They should continue to use the
standard control commands.
The P parameter is required and selects the heater. There is no
default so the minimum command is M308 Pnnn which prints the
heater's current state, target active temperature, target standby
temperature and the current temperature as follows:
"Heater 1 State: 'Off', Active temp: 225.0°, Standby temp: 190.0°,
Current temp: 23.2°"
The S and R parameters are optional and set the target active and
standby temperatures.
The T parameter is also optional and if supplied, sets the heater's
current state where 0 = off, 1 = standby 2 = on.
Examples:
* M308 P0 S70 R50
Set heater 0 (usually but not necessarily the bed) target
active temperature to 70 and the target standby temperature
to 50. Since the T parameter is not supplied, the heater's
current state is not altered.
* M308 P0 T1
Set heater 0 to standby. Any previously set standby temperature
is preserved, even if set by another command such as M140, M141,
G10, etc.
* M308 P1 S225
Set heater 1 (an extruder maybe) target active temperature to
225 leaving its target standby temperature and state alone.
Notes:
(1): Since the T parameter explicitly controls the state of the
heater, no special importance is placed on temperatures less
than -273. They will NOT turn the heater off as they may in
other commands.
(2): This command will return an error if an attempt is made
to set the temperatures or state of a heater in "fault"
or "tuning" state. Use the appropriate commands to return
the heater to a working state before re-issuing this command.
Special considerations when a heater is assigned to a tool:
Attempting to change the state of a heater that is assigned to
the current tool when the printer is in the Printing, Pausing,
Paused or Resuming state will result in an error. This is to
prevent an accidental disruption of a print.
Changing the temperatures of a heater assigned to a tool will also
change the tool's defined active and standby temperatures.