【正文】
不安全的。 Kd越大時,越容易超調,但是不同擾動區(qū)域的信號噪音的瞬態(tài)響應可能導致系統(tǒng)的不穩(wěn)定。過大的比例增益會導致系統(tǒng)的不穩(wěn)定乃至崩潰。 微分值計算如下: Dout:微分輸出值 Kd:微分時間常數,協(xié)調參數 e:偏差 =SPPV t:時間或瞬時時間(當前的) 微分作用減緩了控制器輸出的變化率,這種效果最接近于控制器的給定值。然而,因為積分從過去的積累誤差作出反應,引起當前的值越過設定值(跨過設定值向其它方向改變)。 積分值的大小與偏差的大小及持續(xù)時間成正比。如果比例增益太高,系統(tǒng)將變得不穩(wěn)定。 比例度是根據當前的錯誤值而做出的變動。 注釋:這部分描述 PID 控制器理想平行或非相互作用的形式。 理論上,控制器能用來控制可測量對象,以及可以影響偏差的輸出、輸入標準值的所有過程參數。為有效的控制系統(tǒng)選擇正確的參數被稱為整定控制器。當偏差小時而做了一個大變動,相當于一個大的調整控制器,會導致超調。作為一個控制器,在確定溫度給定值后,就可以粗略決定改變閥門位置多少,以及怎樣改變偏差值。 感覺水溫就是對過程值或變量的測量。 控制環(huán)基礎 一個關于控制環(huán)類似的例子就是保持水在理想溫度,涉及到兩個過程,冷、熱水的混合。在控制系統(tǒng)中存在 P,PI,PD,PID調節(jié)器。控制器的響應可以被認 為是對系統(tǒng)偏差的響應。 PID 控制器算法涉及到三個部分:比例,積分,微分。PID控制器通過調節(jié)給定值與測量值之間的偏差,給出正確的調整,從而有規(guī)律地糾正控制過程。根據具體的工藝要求,通過 PID 控制器的參數整定,從而提供調節(jié)作用。這是通過把不想要的控制輸出置零取得。 注釋:由于控制理論和應用領域的差異,很多相關變量的命名約定是常用的。重復這個過程,調節(jié)熱水流直到溫度處于期望的穩(wěn)定值。測量值與給定值之間的差就是偏差值,太高、太低或正常。微分作用就是根據水溫變得更熱、更冷,以及變化速率來 決定什么時候、怎樣調整那些閥門。人不會這樣做,因為我們是有智慧的控制人員,可以從歷史經驗中學習,但PID控制器沒有學習能力,必須正確的設定。供給水溫的變化就構成了對過程的一個擾動。 由于它們悠久的歷史,簡易,良好的理論基礎以及簡單的設置、維護要求, PID 控制器被許多應用實踐所采納。因此: Pout, Iout和 Dout是控制器的三個參數,下面分別予以確定。 e:偏差 =SPPV t:時間或瞬時時間(當前的) 一個高的比例增益產生于一種輸出值的大的變化。盡管有穩(wěn)態(tài)補償,理論和工業(yè)實踐都表明比例度在輸出控制中起到大部分的作用。對總的控制作用的積分大小由積分時間常數來決定,即Ki,積分值計算如下: Iout:積分值 Ki:積分時間常數,協(xié)調參數 e:偏差 =SPPV ζ:積分時間 積分值加速面向設定值的過程運動并且消除殘余的只與控制器發(fā)生作用的穩(wěn)態(tài)偏差。對整個控制行為的微分作用的大小稱為微分值 Kd。 三種參數控制的輸出值,比例,積分和微分綜合起來能夠計算出 PID 調節(jié)器的輸出,計算控制器輸出時, PID算法的最終形式 u(t)為: 協(xié)調參數分別是: Kp:比例增益 — 偏差愈大時, Kp 也愈大,比例期補償更大。 Kd:微分。 最佳控制行為就是過程能根據應用作出相應的變化。一些過程有一定的非線性,因此在系統(tǒng)滿負荷下正常工作的參數在系統(tǒng)零負荷下將停止工作。手工協(xié)調方法相對來說可能沒有效率。增加 P值直到環(huán)的輸出值擺動,然后, P值應該大約被設為標準值的四分之 一。不過, I 值太大將引起過度的反應并且超調。 B.尼科 爾斯 發(fā)明。相應地, PID協(xié)調和循環(huán)優(yōu)化軟件被用來保證結果的確定。在有幾分鐘響應時 間的環(huán)、數學環(huán)路調諧中被推薦,因為反復試驗要花費數天,而僅僅是為了找到一套穩(wěn)定的環(huán)價值。 PID算法的修改 基于 PID算法給 PID控制應用提出了一些挑戰(zhàn)。 限制不可缺少的偏差被計算的時間段。機械的比率主要是一個設備變動一次的函數。當系統(tǒng)偏差值增加時,比例、微分控制能產生積極的變動,例如設定值的變動。因此,控制系統(tǒng)不超調。單獨的前饋控制經常能提供主要控制器輸出值的部分。如果一速度 PID 控制器被用來控制負荷的速度,并驅動被原動力使用的力或者力矩,它有利于賦予負荷所需的加速度,恰當估價并且給 PID速度環(huán)控制器的輸出添加給定值。 因此,在非線性系統(tǒng) (象 空調系統(tǒng) 那樣 )內的PID 控制器的工 作是易變的。 一個關于 微分方面的問題是少量測量或者過程 噪音 能引起輸出的大量改變。這 相當于使用 PID 控制器作為一個 PI控制器。 一個 PID 控制器擔任外環(huán)控制器,例如易流動物體或者速度控制主要物質參數。這些機械控制器經常使用一根 杠桿 , 曲軸 和活塞由壓縮空氣提供能量。現(xiàn)在,用 microcontrollers或者 FPGAs實現(xiàn)的數字控制器已經基本上替換電子控制器。 the Proportional, the Integral and Derivative values. The Proportional value determines the reaction to the current error, the Integral determines the reaction based on the sum of recent errors and the Derivative determines the reaction to the rate at which the error has been changing. The weightedsum of these three actions is used to adjust the process via a control element such as the position of a control valve or the power supply of a heating tuning the three constants in the PID controller algorithm the PID can provide control action designed for specific process requirements. The response of the controller can be described in terms of the responsiveness of the controller to an error, the degree to which the controller overshoots the setpoint and the degree of system oscillation. Note that the use of the PID algorithm for control does not guarantee optimal control of the system or system stability. Some applications may require using only one or two modes to provide the appropriate system control. This is achieved by setting the gain of undesired control outputs to zero. A PID controller will be called a PI, PD, P or I controller in the absence of the respective control actions. PI controllers are particularly mon, since derivative action is very sensitive to measurement noise, and the absence of an integral value may prevent the system from reaching its target value due to the control action. Note: Due to the diversity of the field of control theory and application, many naming conventions for the relevant variables are in mon use. loop basics A familiar example of a control loop is the action taken to keep one39。s frequency response to design the PID loop values. In loops with response times of several minutes, mathematical loop tuning is remended, because trial and error can literally take days just to find a stable set of loop values. Optimal values are harder to find. Some digital loop controllers offer a selftuning feature in which very small setpoint changes are sent to the process, allowing the controller itself to calculate optimal tuning values. Other formulas are available to tune the loop according to different performance criteria. 4 Modifications to the PID algorithm The basic PID algorithm presents some challenges in control applications that have been addressed by minor modifications to the PID mon problem resulting from the ideal PID implementations is integral windup. This can be addressed by: Initializing the controller integral to a desired value Disabling the integral function until the PV has entered the controllable region Limiting the time period over which the integral error is calculated Preventing the integral term from accumulating above or below predetermined bounds Many PID loops control a mechanical device (for example, a valve). Mechanical maintenance can be a major cost and wear leads to control degradation in the form of either stiction or a deadband in the mechanical response to an input signal. The rate of mechanical wear is mainly a function of how often a device is activated to make a change. Where wear is a significant concern, the PID loop may have an output deadband to reduce the frequency of activation of the output (valve). This is acplished by modifying the controller to hold its output steady if the change would be small (within the defined deadband range). The calculated output must leave the deadband before the