Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
temperaturecontrol-pid-autotuning [2017/01/25 18:36]
arthur
temperaturecontrol-pid-autotuning [2017/01/26 13:08]
arthur
Line 3: Line 3:
 Here is an example of the G-code command used to launch PID autotune :  Here is an example of the G-code command used to launch PID autotune : 
  
-[[code]]+<code>
 M303 E0 S190 M303 E0 S190
-[[/code]]+</code>
  
 * E**0** is the number of the temperaturecontrol module, in the order they have been configured. Here it would be 0 for the hotend, and 1 for the bed. * E**0** is the number of the temperaturecontrol module, in the order they have been configured. Here it would be 0 for the hotend, and 1 for the bed.
Line 12: Line 12:
 When you run the command, tuning begins : When you run the command, tuning begins :
  
-[[code]]+<code>
 Target: 190.0 Target: 190.0
 Start PID tune, command is M303 E0 S190 Start PID tune, command is M303 E0 S190
Line 22: Line 22:
 T:  22.1/190.0 @80 1 0/8 T:  22.1/190.0 @80 1 0/8
 Etc ... Etc ...
-[[/code]]+</code>
  
 It continues for 3 to 8 cycles, heating up, cooling down. Then :  It continues for 3 to 8 cycles, heating up, cooling down. Then : 
  
-[[code]]+<code>
 Cycle 4: max: 246.189, min: 227.627, avg separation: 0.418274 Cycle 4: max: 246.189, min: 227.627, avg separation: 0.418274
  Ku: 34.9838, Pu: 39.85  Ku: 34.9838, Pu: 39.85
Line 34: Line 34:
  Kd:   105  Kd:   105
 PID Autotune Complete! The settings above have been loaded into memory, but not written to your config file. PID Autotune Complete! The settings above have been loaded into memory, but not written to your config file.
-[[/code]]+</code>
  
 Now edit your configuration to use those three values ( **Kp** is <​kbd>​p_factor</​kbd>,​ **Ki** is <​kbd>​i_factor</​kbd>,​ **Kd** is <​kbd>​d_factor</​kbd>​ ), reset, and temperature control should work much better. (Also M301 can be used to set the PID values and saved with M500) Now edit your configuration to use those three values ( **Kp** is <​kbd>​p_factor</​kbd>,​ **Ki** is <​kbd>​i_factor</​kbd>,​ **Kd** is <​kbd>​d_factor</​kbd>​ ), reset, and temperature control should work much better. (Also M301 can be used to set the PID values and saved with M500)
Line 40: Line 40:
 Alternatively,​ you can also enter the following G-code :  Alternatively,​ you can also enter the following G-code : 
  
-[[code]]+<code>
 M500 M500
-[[/code]]+</code>
  
 Which will save the configuration values automatically in a configuration override file. Which will save the configuration values automatically in a configuration override file.
Line 50: Line 50:
 <callout type="​warning"​ icon="​true"​ title="​ Network">​ <callout type="​warning"​ icon="​true"​ title="​ Network">​
  
-Do not send M303 over ​the web interface, use Telnet, Pronterface or any other serial terminal. If sent over the web, the answers will accumulate in Smoothie'​s RAM and may crash it.+Do not send <​key>​M303</​key>​ over ​the web interface, use Telnet, Pronterface or any other serial terminal. If sent over the web, the answers will accumulate in Smoothie'​s RAM and may crash it.
  
 </​callout>​ </​callout>​