Observations on PID tuning
-
Heater tuning should normally be done using P1 (the default), unless you are using very old firmware. The only time P1 is likely to be problematic is if your hot end heater is over-powered, for example if you make the mistake of using a 12V heater cartridge on a 24V system.
The heater tuning doesn't always establish the value of the dead time (D parameter in the M307 command) very accurately. If D is set too low then the temperature will oscillate; so if you see the temperature oscillating regularly even when not printing, then try increasing D, initially by about 50%. If D is set too high then the PID will be slow to respond to external changes, for example the print cooling fan turning on.
-
I'm using the latest stable firmware 2.01
The supply voltage is 12V, and in theory the heater is 12V
although the heater is a cheap china cloneI just tried the following with some PLA in
M303 H1 P1 S190
This led to
this was starting from room temperature
-
@dc42 said in Observations on PID tuning:
The only time P1 is likely to be problematic is if your hot end heater is over-powered, for example if you make the mistake of using a 12V heater cartridge on a 24V system.
Curious.
I check all my heaters to verify that they have a resistance which suggests they are 12v - which is what I need.
And yet on all of my four printers using P1.00 has always resulted in the tuning process reporting "over powered".
I usually end up in the 50% to 70% range.
Frederick
-
P0.9 seems to be the highest I can go without generating a warning
I think I might try that with adjusting the dead time
since I now know that printing smooths out some of the oscilations -
@fcwilt Mine is a 40W 24V cartridge, and my last PID run triggered the big red warning that it was likely to hit 600C in a thermal runaway. I used the numbers as generated anyway. Judging by the resistance I'm pretty sure the new cartridge is a 24V. But I got the warning at P1 anyway.
-
@3dmntbighker said in Observations on PID tuning:
@fcwilt Mine is a 40W 24V cartridge, and my last PID run triggered the big red warning that it was likely to hit 600C in a thermal runaway. I used the numbers as generated anyway. Judging by the resistance I'm pretty sure the new cartridge is a 24V. But I got the warning at P1 anyway.
I tend to be cautious when it comes to setting things on fire.
Until dc42 tells us there is a bug in the code and the warnings are bogus I'm going to play it safe.
Frederick
-
Always measure you heat cartridge resistance to know your real power output.
-
The "over powered" warning for hot ends is very common, especially since E3D started shipping silicone socks with their hot ends without reducing the heater cartridge power to compensate. Most users ignore it. However, if it predicts much more than 500C then I suggest a lower powered heater cartridge. 30W or even 25W is sufficient for an E3Dv6 hot end with a silicone sock.
-
@dc42 said in Observations on PID tuning:
However, if it predicts much more than 500C then I suggest a lower powered heater cartridge. 30W or even 25W is sufficient for an E3Dv6 hot end with a silicone sock.
Thanks for the info.
So simply using a lower P setting is not sufficient to be safe?
Frederick
-
@fcwilt said in Observations on PID tuning:
So simply using a lower P setting is not sufficient to be safe?
It will be OK as long as the MOSFET controlling the heater output does not fail short. In this case it would lead to full power heating at
Vin
voltage and no more control by the Duet. Given these fails are rare but they are a potential risk.I am currently looking into introducing something like described in this thread to be able to cut power in this case.
-
@wilriker said in Observations on PID tuning:
I am currently looking into introducing something like described in this thread to be able to cut power in this case.
There are network controlled outlets available.
https://3gstore.com/product/7755_single_outlet_remote_power_switch_app_controlled.html
I wonder if a Duet could send the needed command?
Frederick
-
@fcwilt Technically they will work as well. I have a few concerns about them though.
- First they are much more pricy then the linked solution
- They are often proprietary systems where you have to use an app to switch them
- Some of them offer to switch them from anywhere in the world but that requires to punch a hole in my firewall to some Chinese server I don't like that
Of course this is a ready built solution that is literally plug and play on the other hand.
-
@wilriker said in Observations on PID tuning:
@fcwilt Technically they will work as well. I have a few concerns about them though.
- First they are much more pricy then the linked solution
- They are often proprietary systems where you have to use an app to switch them
- Some of them offer to switch them from anywhere in the world but that requires to punch a hole in my firewall to some Chinese server I don't like that
Of course this is a ready built solution that is literally plug and play on the other hand.
Yes it is more expensive but it is possibly "plug-and-play" with Duet.
There is no app involved or outside server. It's a very simple HTTP command set needed by the web server running in the unit.
The reason I mentioned it is that these devices have many applications. I have a few in my home controlling other things and if it could work with the Duet it would just be one more use.
Frederick
-
@fcwilt I can definitely see how convenient they are - but I like to tinker my solutions including the trial-and-error spectrum of it.
-
@dc42 said in Observations on PID tuning:
The "over powered" warning for hot ends is very common, especially since E3D started shipping silicone socks with their hot ends without reducing the heater cartridge power to compensate. Most users ignore it. However, if it predicts much more than 500C then I suggest a lower powered heater cartridge. 30W or even 25W is sufficient for an E3Dv6 hot end with a silicone sock.
Damn, I just ordered a bunch of 40W heaters after my wire failed. Mine predicted 600C. Is there any point in tuning with a lower P setting at this point? Assuming I want to keep the 40's should I remove the silicone boot and re-tune at P1? Or is the best course to ditch the 40's and order the 30's? <grumble>