Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add M306 documentation #442

Merged
merged 9 commits into from
Jun 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
95 changes: 95 additions & 0 deletions _gcode/M306.md
@@ -0,0 +1,95 @@
---
tag: m0306
title: Model predictive temperature control
brief: Set MPC values for a hotend.
author: CRCinAU

requires: MPCTEMP
group: thermal
since: 2.0.9.4

codes: [ M306 ]

notes:
- 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.'

parameters:
-
tag: A
optional: true
description: Ambient heat transfer coefficient (no fan).
values:
-
tag: value
type: float
-
tag: C
optional: true
description: Heatblock Capacity (joules/kelvin)
values:
-
tag: value
type: float
-
tag: E
optional: true
description: Extruder number to set. (Default: E0)
values:
-
tag: index
type: int
-
tag: F
optional: true
description: Ambient heat transfer coefficient (fan on full).
values:
-
tag: value
type: float
-
tag: H
optional: true
description: Filament Heat Capacity (joules/kelvin/mm)
values:
-
tag: value
type: float
-
tag: P
optional: true
description: Heater power in watts
values:
-
tag: value
type: float
-
tag: R
optional: true
description: Sensor responsiveness (= transfer coefficient / heat capacity).
values:
-
tag: value
type: float
-
tag: T
optional: true
description: Autotune the active extruder.

examples:
-
pre: 'Configure MPCTEMP for 40W hotend heater'
code:
- M306 P40
-
pre: 'Configure MPCTEMP for 70W hotend heater'
code:
- M306 P70
-
pre: 'Perform MPCTEMP auto-tune - after setting heater element power'
code:
- M306 T
---