
Visit our shop for nerds in control lifestyle products.
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
by the tail and face the situation.
-- W.C. Fields
www.control.com/rss
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
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.
- Temperature, relative humidity sensors pair with wireless network
- Intrinsically safe accelerometer expands line of hazardous area sensors
- Power: Digital converter growth; fuses, harvesting, supplies, transformers, UPS
- Terminal blocks: 125 A, 1,000 V, 15 mm pitch; 100 kA short circuit current rating
- Enclose, protect: 2 plastic enclosures; device measures heat, airflow
- Control Engineering System Integrators Hall of Fame
- Listen in: Companies continue DCS investments
- New podcast: Planning your DCS migration
- Control platforms: An industry standard perseveres, in many forms
- IMTS: Robots will fight at the manufacturing technology show
Users of this site are benefiting from open source technologies, including PHP, PostgreSQL and Apache. Be happy.
Patronize our advertisers!



