03-06-2007 04:46 PM
Hi there
I am writing a detailed
manual for PID tuning and summation of NI PID toolset but I could not
understand some of the PID tuning algorithm
I tried to understand
algorithm of tuning the PID toolset but I faced few thing I could not
understand why this code is there or what this code mean.
for
example:
In the file PID(DBL).vi
there is a constant 1/60 why this value has been chosen?
this code in PID Gains
Calculate.vi
why the Noise level % multiplied by 2 and Relay
Amplitude multiplied by 2 as well
Why there is a Kr and what it stand for? Can you give me a reference for this formula
Why the ultimate period Tu = to the mean period Ti <= 0 and Tu= 2*pi / mean period
/* Tp = time constant
*/
Tp=(1+Kr)*Kc*sqrt(Ti**2*Wo**2+(1-Ti*Td*Wo*Wo)**2)/Ti/Wo/Wo;
Is
this formula the same is this one?
/*
L =deatime
*/
temp=1-Ti*Td*Wo*Wo;
temp3=atan(Ti*Wo/temp);
temp3=(temp>=0)
? temp3:
pi+temp3;
L=sqrt(temp3*(pi/2+temp3-atan(Tp*Wo)))/Wo;
specially
this line
temp3=(temp>=0) ? temp3: pi+temp3;
Finally,
I could not find the code that increase the Kc till the system becomes oscillatory.
03-07-2007 01:03 AM
@mksa wrote:
Tp=(1+Kr)*Kc*sqrt(Ti**2*Wo**2+(1-Ti*Td*Wo*Wo)**2)/Ti/Wo/Wo;
Is this formula the same is this one?
03-07-2007 07:45 AM
03-08-2007 04:01 AM
this code in PID Gains Calculate.vi
why the Noise level % multiplied by 2 and Relay Amplitude multiplied by 2 as well
Why there is a Kr and what it stand for? Can you give me a reference for this formula
Why the ultimate period Tu = to the mean period Ti <= 0 and Tu= 2*pi / mean period
I could not find the code that increase the Kc till the system becomes oscillatory.
Thanks
Sacha Emery
National Instruments (UK)
03-08-2007 07:43 AM
Hi,
The formula that you are refering to is available in this paper :
Rongfu Luo, Joe Qin, Dapang Chen. "A New Approach to Closed Loop Autotuning for PID Controllers"; Proceedings of the American Control Conference; Philadelphia, Pennsylvania; June 1998.
From this paper I was able to obtain the following information:
Kr is the equivalent gain or describing function for the relay element that makes the proportional-only control system oscilate.
Kc is not increased. The oscilation depends on the Relay Amplitude provided by the user. If the value provided doesn't make the process go to limit cycle, you should repeat the procedure until it oscilates.
The parameters "Noise Level" and "Relay Amplitude" are expected to be from mean value or offset to maximum. The "multiplied by 2" just normalize the parameters to peak-to-peak.
I could not understand your question on Tu and Ti.
Barp - Control and Simulation Group - National Instruments
/ it takes almost no time to rate an answer
04-01-2007 07:06 AM
Thanks for every one
but I still
could not match the equations on the File with the equations on the
article
Rongfu Luo, Joe Qin, Dapang Chen. "A New Approach to Closed Loop Autotuning for PID Controllers"; Proceedings of the American Control Conference; Philadelphia, Pennsylvania; June 1998.
For example equation 9 for Tp in the article not the same as the one in PID Calculate Gains.vi
also I do not which equation in the article for deadtime (τ , τ` or τ``) match the equation in the file and how the equation simplified to become in the form in the file PID Calculate Gains.vi?