Author Topic: PID Tuning Spreadsheet  (Read 5217 times)

0 Members and 1 Guest are viewing this topic.

Offline BootalitoTopic starter

  • Supporter
  • ****
  • Posts: 116
  • Country: us
    • EasyEda.com/TerryJMyers
PID Tuning Spreadsheet
« on: October 30, 2017, 05:42:49 pm »
I developed this tool a while ago and thought I'd share.  This is a spreadsheet that I use to tune PID loops, specifically the PID ladder logic function block in Allen Bradley PLCs.  There is lots of software that can automate this (TuneWizard is another I use), however for a quick PID tuning job that gets it 95% optimized (really all you need for most industrial control) this spreadsheet is pretty much all I use.

https://www.dropbox.com/s/m4czdt3ex253z0b/PID%20tuning.xlsx?dl=0

A couple of notes:
1. The PID parameter units are in minutes not seconds (because AB's PID block was programmed that way).
2. The PID parameters calculated are for the dependant PID equation, whereas most people are used to Independant equation, or Velocity Form as in ABs PIDE function block.  There is a little converter section in the spreadsheet to go between the two.  Arguably the Dependant equation is better, but Independant is easier to understand.  If anyone is interested I can explain

I haven't tried using it to tune many things that are not ABs PID function block, however with a little tweaking it would work fine, as the math is all there.  For example, if you wanted to tune a loop using the arduino PID library (https://github.com/br3ttb/Arduino-PID-Library), you would want to do two things: 1. In the Closed Loop Tuning Method get rid of all of the "/60"'s in I and D. 2. Whichever parameters you want to try use the "Independent / Dependent Conversion" table on the right to convert to Independent, and I can almost guarantee that the numbers will work as I've studied that library with the intention of using it for some projects, and its sound.
 
The following users thanked this post: Vgkid, negativ3, macboy, mikerj, SilverSolder, chuckb, Mukrakiish

Offline windsoul

  • Newbie
  • Posts: 1
  • Country: cn
Re: PID Tuning Spreadsheet
« Reply #1 on: December 16, 2021, 04:17:50 am »
the file has been deleted. Could you please update it?
thx
 

Offline sorin

  • Frequent Contributor
  • **
  • Posts: 279
  • Country: de
Re: PID Tuning Spreadsheet
« Reply #2 on: December 17, 2021, 02:46:27 pm »
Im not the author, but I saved it my pc.
« Last Edit: December 17, 2021, 02:48:38 pm by sorin »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf