Skip to main content

Site Navigation

Your Account

Choose Language

Help

Revision to Tuning the heater temperature control

Thomas Beyer

Auto tuning is initiated by the M303 command:
 
[code]
M303 H1 S240 ; auto tune heater 1, default PWM, 240C target or maximum temperature
 
M303 ; report the auto-tune status or last result
[/code]
 
=== Firmware 1.18beta1 and later ===
After you have run auto tuning and checked that the heater control is working well, run M500 to save the heater parameters in config-override.g (this is supported in firmware 1.17 and later). Alternatively, construct a M307 command with the model parameters and add it to config.g. For example, if after tuning you run M307 H0 and see this:
 
M307 H0[code]M307 H0[/code]
M307 H0[code]M307 H0[/code]
 
Heater 0 model: gain 199.0, time constant 962.6, dead time 4.5, in use: yes
then you should add the following to config.g to preserve this model:
 
M307[code]M307 H0 A199.0 C962.6 D4.5 B0B0[/code]
M307[code]M307 H0 A199.0 C962.6 D4.5 B0B0[/code]
 
The B0 parameter tells the system to use PID (the default on power up is bang-bang for the bed heater). If you need to limit the maximum PWM of the heater, add an S parameter to the M307 command, for example S0.8 will limit the PWM to 80%.
Model parameters can be changed and reported using the M307 command. Examples:
 
[code]
M307 H1 A350 C139 D5.5 B0 ; set model parameters for heater 1 and use PID mode
 
M307 H1 ; report model parameters for heater 1, and whether the model is being used
[/code]
 
The H parameter specifies the heater.
This mode is intended as a backup, for use if model-based tuning is not working well enough. The parameters are configured using the M301 command. Example:
 
M301[code]M301 H1 P10 I0.2 D50 T0.3 S1.0S1.0[/code]
M301[code]M301 H1 P10 I0.2 D50 T0.3 S1.0S1.0[/code]
 
The H parameter is the heater number. Usually, 0 is the bed heater, 1 is the extruder 0 heater, and so on.

To undo the changes made by this version, click 'Revert Changes.' This will automatically restore the previous version of this guide.

Revert Changes