flexi-bot/docs/marlin/_gcode/M306.md
2023-09-05 20:38:49 +02:00

2.3 KiB

tag title brief author requires group since codes notes parameters examples
m0306 Model predictive temperature control Set MPC values for a hotend. CRCinAU MPCTEMP thermal 2.0.9.4
M306
Requires `MPCTEMP`.
View current values with [`M306`](/docs/gcode/M306.html) and no parameters.
If `EEPROM_SETTINGS` is enabled, all calibration values are saved with [`M500`](/docs/gcode/M500.html), loaded with [`M501`](/docs/gcode/M501.html), and reset with [`M502`](/docs/gcode/M502.html).
Heater Power (P) is related to the heater cartridge in the hotend. Most printers have 30 or 40 watt heaters.
`M306 T` will move your hotend to 1mm above the bed for optimal calibration. You should ensure your hotend and print bed are free from debris before running an auto-tune.
See [the Marlin MPC documentation](/docs/features/model_predictive_control.html) for more information about MPC parameters.
tag optional description values
A true Ambient heat transfer coefficient (no fan).
tag type
value float
tag optional description values
C true Heatblock Capacity (joules/kelvin)
tag type
value float
tag optional description values
E true Extruder index. If omitted, the command applies to the active extruder.
tag type
index int
tag optional description values
F true Ambient heat transfer coefficient (fan on full).
tag type
value float
tag optional description values
H true Filament Heat Capacity (joules/kelvin/mm)
tag type
value float
tag optional description values
P true Heater power in watts
tag type
value float
tag optional description values
R true Sensor responsiveness (= transfer coefficient / heat capacity).
tag type
value float
tag optional description
T true Autotune the selected extruder.
pre code
Configure MPCTEMP for 40W hotend heater
M306 P40
pre code
Configure MPCTEMP for 70W hotend heater
M306 P70
pre code
Perform MPCTEMP auto-tune - after setting heater element power
M306 T