Member Login
member
passwd
remember me on this computer.

- join now -

Search

Past & Future Posts
Neat Stuff

Visit our shop for nerds in control lifestyle products.

Cool stuff
Select a topic of interest:
...and press:
Fortune
There comes a time in the affairs of a man when he has to take the bull
by the tail and face the situation.
-- W.C. Fields
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
from the Trying my way on tuning PIDs department...
Searching Algorithm for Tuning PID
Process Control topic
advertisement
Posted by Roberto Carabajal on 25 October, 2007 - 10:41 pm
Hello:

I want to write a piece of code to find optimal set of values (Ki, Kp, Kd) of a generic PID controller, taking into account any of the classical tuning rules. The idea is to generate successive gain values, put them as PID inputs, calculate output, change gains accordingly and so on. But I found it very difficult conceiving the proper algorithm, especially dealing with convergence. Can anybody help me showing the way? I like to use MatLab/Visual Basic, but a general approach could be sufficient.

Thanks very much.
Roberto

Posted by GP on 12 December, 2007 - 12:08 am
I did a similar thing, however I opted for the old faithful Microsoft Excel. I initially considered using MATLAB. However, for ease of use, portability and the fact that almost every PC I'm going to come across will have Excel, I chose this option.

I created it all using VBA, it was a real pain (never used this type of programming before), but worth it in the end as you can visualize everything on automatically updated trends.

As for the equations, etc., just Google FOPDT equations, etc. Cascade them to create Higher Order functions, etc. for modeling.

Like you I also implemented a heap of different tuning methods (ZN, CC, IMC, etc). Really helped to see the limitations of each, also how much the tuning paramaters can change due to manipulation of certain terms.

From Control Engineering magazine...
Related articles from Control Engineering magazine
Above articles copyright 2008 Reed Business Information. Subject to its Terms of Use.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2008 Control Technology Corporation. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, PostgreSQL and Apache. Be happy.

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!