版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 pid controllerfrom wikipedia the free encyclopediaa proportionalintegralderivative controller pid controller is a generic control loop feedback mechanism widely used in industrial control systems a pid controller attempts to correct the error between a measured process variable and a desired setpoi
2、nt by calculating and then outputting a corrective action that can adjust the process accordinglythe pid controller calculation algorithm involves three separate parameters the proportional the integral and derivative values the proportional value determines the reaction to the current error the int
3、egral 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
4、supply of a heating elementby 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
5、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 stabilitysome applications may require using only one or two modes to provide the appropriate system control this is a
6、chieved 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 common since derivative action is very sensitive to measurement noise and the absence of an inte
7、gral value may prevent the system from reaching its target value due to the control actiona block diagram of a pid controllernote due to the diversity of the field of control theory and application many naming conventions for the relevant variables are in common use1control loop basicsa familiar exa
8、mple of a control loop is the action taken to keep ones shower water at the ideal temperature which typically involves the mixing of two process streams cold and hot water the person feels the water to estimate its temperature based on this measurement they perform a control action use the cold wate
9、r tap to adjust the process the person would repeat this input-output control loop adjusting the hot water flow until the process temperature stabilized at the desired valuefeeling the water temperature is taking a measurement of the process value or process variable pv the desired temperature is ca
10、lled the setpoint sp the output from the controller and input to the process the tap position is called the manipulated variable mv the difference between the measurement and the setpoint is the error e too hot or too cold and by how muchas a controller one decides roughly how much to change the tap
11、 position mv after one determines the temperature pv and therefore the error this first estimate is the equivalent of the proportional action of a pid controller the integral action of a pid controller can be thought of as gradually adjusting the temperature when it is almost right derivative action
12、 can be thought of as noticing the water temperature is getting hotter or colder and how fast and taking that into account when deciding how to adjust the tapmaking a change that is too large when the error is small is equivalent to a high gain controller and will lead to overshoot if the controller
13、 were to repeatedly make changes that were too large and repeatedly overshoot the target this control loop would be termed unstable and the output would oscillate around the setpoint in either a constant growing or decaying sinusoid a human would not do this because we are adaptive controllers learn
14、ing from the process history but pid controllers do not have the ability to learn and must be set up correctly selecting the correct gains for effective control is known as tuning the controllerif a controller starts from a stable state at zero error pv sp then further changes by the controller will
15、 be in response to changes in other measured or unmeasured inputs to the process that impact on the process and hence on the pv variables that impact on the process other than the mv are known as disturbances and generally controllers are used to reject disturbances andor implement setpoint changes
16、changes in feed water temperature constitute a disturbance to the shower processin theory a controller can be used to control any process which has a measurable output pv a known ideal value for that output sp and an input to the process mv that will affect the relevant pv controllers are used in in
17、dustry to regulate temperature pressure flow rate chemical composition speed and practically every other variable for which a measurement exists automobile cruise control is an example of a process which utilizes automated controldue to their long history simplicity well grounded theory and simple s
18、etup and maintenance requirements pid controllers are the controllers of choice for many of these applications2pid controller theorynote this section describes the ideal parallel or non-interacting form of the pid controller for other forms please see the section alternative notation and pid formsth
19、e pid control scheme is named after its three correcting terms whose sum constitutes the manipulated variable mv hencewhere pout iout and dout are the contributions to the output from the pid controller from each of the three terms as defined below21 proportional termthe proportional term makes a ch
20、ange to the output that is proportional to the current error value the proportional response can be adjusted by multiplying the error by a constant kp called the proportional gainthe proportional term is given bywherepout proportional output kp proportional gain a tuning parameter e error sp pv t ti
21、me or instantaneous time the present change of response for varying kpa high proportional gain results in a large change in the output for a given change in the error if the proportional gain is too high the system can become unstable see the section on loop tuning in contrast a small gain results i
22、n a small output response to a large input error and a less responsive or sensitive controller if the proportional gain is too low the control action may be too small when responding to system disturbancesin the absence of disturbances pure proportional control will not settle at its target value bu
23、t will retain a steady state error that is a function of the proportional gain and the process gain despite the steady-state offset both tuning theory and industrial practice indicate that it is the proportional term that should contribute the bulk of the output changecomgral termthe contribution fr
24、om the integral term is proportional to both the magnitude of the error and the duration of the error summing the instantaneous error over time integrating the error gives the accumulated offset that should have been corrected previously the accumulated error is then multiplied by the integral gain
25、and added to the controller output the magnitude of the contribution of the integral term to the overall control action is determined by the integral gain kithe integral term is given bychange of response for varying kiwhere iout integral output ki integral gain a tuning parameter e error sp pv time
26、 in the past contributing to the integral response the integral term when added to the proportional term accelerates the movement of the process towards setpoint and eliminates the residual steady-state error that occurs with a proportional only controller however since the integral term is respondi
27、ng to accumulated errors from the past it can cause the present value to overshoot the setpoint value cross over the setpoint and then create a deviation in the other direction for further notes regarding integral gain tuning and controller stability see the section on loop tuning23 derivative termt
28、he rate of change of the process error is calculated by determining the slope of the error over time ie its first derivative with respect to time and multiplying this rate of change by the derivative gain kd the magnitude of the contribution of the derivative term to the overall control action is te
29、rmed the derivative gain kdthe derivative term is given by change of response for varying kdwhere dout derivative output kd derivative gain a tuning parameter e error sp pv t time or instantaneous time the present the derivative term slows the rate of change of the controller output and this effect
30、is most noticeable close to the controller setpoint hence derivative control is used to reduce the magnitude of the overshoot produced by the integral component and improve the combined controller-process stability however differentiation of a signal amplifies noise and thus this term in the control
31、ler is highly sensitive to noise in the error term and can cause a process to become unstable if the noise and the derivative gain are sufficiently large24 summarythe output from the three terms the proportional the integral and the derivative terms are summed to calculate the output of the pid cont
32、roller defining u t as the controller output the final form of the pid algorithm isand the tuning parameters arekp proportional gain - larger kp typically means faster response since the larger the error the larger the proportional term compensation an excessively large proportional gain will lead t
33、o process instability and oscillation ki integral gain - larger ki implies steady state errors are eliminated quicker the trade-off is larger overshoot any negative error integrated during transient response must be integrated away by positive error before we reach steady state kd derivative gain -
34、larger kd decreases overshoot but slows down transient response and may lead to instability due to signal noise amplification in the differentiation of the error 3 loop tuningif the pid controller parameters the gains of the proportional integral and derivative terms are chosen incorrectly the contr
35、olled process input can be unstable ie its output diverges with or without oscillation and is limited only by saturation or mechanical breakage tuning a control loop is the adjustment of its control parameters gainproportional band integral gainreset derivative gainrate to the optimum values for the
36、 desired control responsethe optimum behavior on a process change or setpoint change varies depending on the application some processes must not allow an overshoot of the process variable beyond the setpoint if for example this would be unsafe other processes must minimize the energy expended in rea
37、ching a new setpoint generally stability of response the reverse of instability is required and the process must not oscillate for any combination of process conditions and setpoints some processes have a degree of non-linearity and so parameters that work well at full-load conditions dont work when
38、 the process is starting up from no-load this section describes some traditional manual methods for loop tuningthere are several methods for tuning a pid loop the most effective methods generally involve the development of some form of process model then choosing p i and d based on the dynamic model
39、 parameters manual tuning methods can be relatively inefficientthe choice of method will depend largely on whether or not the loop can be taken offline for tuning and the response time of the system if the system can be taken offline the best tuning method often involves subjecting the system to a s
40、tep change in input measuring the output as a function of time and using this response to determine the control parameters choosing a tuning method methodadvantagesdisadvantages manual tuningno math required online methodrequires experienced personnel zieglernicholsproven method online methodprocess
41、 upset some trial-and-error very aggressive tuning software toolsconsistent tuning online or offline method may include valve and sensor analysis allow simulation before downloadingsome cost and training involved cohen-coongood process modelssome math offline method only good for first-order process
42、es31 manual tuningif the system must remain online one tuning method is to first set the i and d values to zero increase the p until the output of the loop oscillates then the p should be left set to be approximately half of that value for a quarter amplitude decay type response then increase d unti
43、l any offset is correct in sufficient time for the process however too much d will cause instability finally increase i if required until the loop is acceptably quick to reach its reference after a load disturbance however too much i will cause excessive response and overshoot a fast pid loop tuning
44、 usually overshoots slightly to reach the setpoint more quickly however some systems cannot accept overshoot in which case an over-damped closed-loop system is required which will require a p setting significantly less than half that of the p setting causing oscillationeffects of increasing paramete
45、rsparameterrise timeshootsettlingtimess errorkpdecreaseincreasesmall changedecreasekidecreaseincreaseincreaseeliminatekdsmall decreasedecreasedecreasenone32zieglernichols methodanother tuning method is formally known as the zieglernichols method introduced by john g ziegler and nathaniel b nichols a
46、s in the method above the i and d gains are first set to zero the p gain is increased until it reaches the critical gain kc at which the output of the loop starts to oscillate kc and the oscillation period pc are used to set the gains as shownzieglernichols methodcontrol typekpkikdp05 kc-pi045kc12 k
47、p pc-pid06 kc2kp pckppc 833 pid tuning softwaremost modern industrial facilities no longer tune loops using the manual calculation methods shown above instead pid tuning and loop optimization software are used to ensure consistent results these software packages will gather the data develop process
48、models and suggest optimal tuning some software packages can even develop tuning by gathering data from reference changesmathematical pid loop tuning induces an impulse in the system and then uses the controlled systems frequency response to design the pid loop values in loops with response times of
49、 several minutes mathematical loop tuning is recommended 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 self-tuning feature in which very small setpoint changes are sent to the process a
50、llowing the controller itself to calculate optimal tuning valuesother formulas are available to tune the loop according to different performance criteria4 modifications to the pid algorithmthe basic pid algorithm presents some challenges in control applications that have been addressed by minor modi
51、fications to the pid formone common problem resulting from the ideal pid implementations is integral windup this can be addressed byinitializing the controller integral to a desired value disabling the integral function until the pv has entered the controllable region limiting the time period over w
52、hich the integral error is calculated preventing the integral term from accumulating above or below pre-determined 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
53、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
54、 accomplished 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 actual output will changethe proportional and derivative terms can produce excessive movement in the output when
55、 a system is subjected to an instantaneous step increase in the error such as a large setpoint change in the case of the derivative term this is due to taking the derivative of the error which is very large in the case of an instantaneous step change 5 limitations of pid controlwhile pid controllers
56、 are applicable to many control problems they can perform poorly in some applicationspid controllers when used alone can give poor performance when the pid loop gains must be reduced so that the control system does not overshoot oscillate or hunt about the control setpoint value the control system p
57、erformance can be improved by combining the feedback or closed-loop control of a pid controller with feed-forward or open-loop control knowledge about the system such as the desired acceleration and inertia can be fed forward and combined with the pid output to improve the overall system performance
58、 the feed-forward value alone can often provide the major portion of the controller output the pid controller can then be used primarily to respond to whatever difference or error remains between the setpoint sp and the actual value of the process variable pv since the feed-forward output is not affected by the process feedback it can never cause the control system to oscillate thus improving the system response and stabilityfor example in most motion control systems in order to accele
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 吉林艺术学院《西方视觉艺术发展史》2021-2022学年第一学期期末试卷
- 吉林艺术学院《理性色彩训练》2021-2022学年第一学期期末试卷
- 广东汽修厂合作协议书范本
- 吉林师范大学《重唱与表演唱》2021-2022学年第一学期期末试卷
- 2024年大学生团购协议书模板范本
- 吉林师范大学《现代电子信息技术选讲II》2021-2022学年期末试卷
- 万达商家入驻协议书范文
- 2022年山东省公务员录用考试《申论》真题(B类)及答案解析
- 农业合作社稽核管理制度创新
- 吉林师范大学《和声Ⅱ》2021-2022学年第一学期期末试卷
- 广东省2020年中考英语试题【含答案】
- EBO管理体系与案例分享
- 拦砂坝施工设计方案
- GB/T 20934-2016钢拉杆
- 教研课平行四边形和梯形的复习ppt
- S曲线和技术进化法则TRIZ专题培训课件
- 铜矿普查简报铜矿
- 消防设施定期检查、检测、维修保养记录
- 小学数学北师大四年级上册数学好玩 数图形的学问 省一等奖
- 运算放大器知识介绍课件
- 养老型年金险产品理念课件
评论
0/150
提交评论