PID Control Theory

PID Control Theory

9 PID Control Theory Kambiz Arab Tehrani1 and Augustin Mpanda2,3 1University of Nancy, Teaching and Research at the University of Picardie, INSSET, Saint-Quentin, Director of Power Electronic Society IPDRP, 2Tshwane University of Technology/FSATI 3ESIEE-Amiens 1,3France 2South Africa 1. Introduction Feedback control is a control mechanism that uses information from measurements. In a feedback control system, the output is sensed. There are two main types of feedback control systems: 1) positive feedback 2) negative feedback. The positive feedback is used to increase the size of the input but in a negative feedback, the feedback is used to decrease the size of the input. The negative systems are usually stable. A PID is widely used in feedback control of industrial processes on the market in 1939 and has remained the most widely used controller in process control until today. Thus, the PID controller can be understood as a controller that takes the present, the past, and the future of the error into consideration. After digital implementation was introduced, a certain change of the structure of the control system was proposed and has been adopted in many applications. But that change does not influence the essential part of the analysis and design of PID controllers. A proportional– integral–derivative controller (PID controller) is a method of the control loop feedback. This method is composing of three controllers [1]: 1. Proportional controller (PC) 2. Integral controller (IC) 3. Derivative controller (DC) 1.1 Role of a Proportional Controller (PC) The role of a proportional depends on the present error, I on the accumulation of past error and D on prediction of future error. The weighted sum of these three actions is used to adjust Proportional control is a simple and widely used method of control for many kinds of systems. In a proportional controller, steady state error tends to depend inversely upon the proportional gain (ie: if the gain is made larger the error goes down). The proportional response can be adjusted by multiplying the error by a constant Kp, called the proportional gain. The proportional term is given by: P KP.() error t (1) A high proportional gain results in a large change in the output for a given change in the error. If the proportional gain is very high, the system can become unstable. In contrast, a www.intechopen.com 214 Introduction to PID Controllers – Theory, Tuning and Application to Frontier Areas small gain results in a small output response to a large input error. If the proportional gain is very low, the control action may be too small when responding to system disturbances. Consequently, a proportional controller (Kp) will have the effect of reducing the rise time and will reduce, but never eliminate, the steady-state error. In practice the proportional band (PB) is expressed as a percentage so: 100 PB% (2) KP Thus a PB of 10% Kp=10 1.2 Role of an Integral⇔ Controller (IC) An Integral controller (IC) is proportional to both the magnitude of the error and the duration of the error. The integral in in a PID controller is the sum of the instantaneous error over time and gives the accumulated offset that should have been corrected previously. Consequently, an integral control (Ki) will have the effect of eliminating the steady-state error, but it may make the transient response worse. The integral term is given by: t I KI error() t dt (3) 0 1.3 Role of a Derivative Controller (DC) The derivative of the process error is calculated by determining the slope of the error over time and multiplying this rate of change by the derivative gain Kd. The derivative term slows the rate of change of the controller output.A derivative control (Kd) will have the effect of increasing the stability of the system, reducing the overshoot, and improving the transient response. The derivative term is given by: derror() t DK . (4) D dt Effects of each of controllers Kp, Kd, and Ki on a closed-loop system are summarized in the table shown below in tableau 1. 2. PID controller (PIDC) A typical structure of a PID control system is shown in Fig.1. Fig.2 shows a structure of a PID control system. The error signal e(t) is used to generate the proportional, integral, and Table 1. A PID controller in a closed-loop system www.intechopen.com PID Control Theory 215 derivative actions, with the resulting signals weighted and summed to form the control signal u(t) applied to the plant model. Fig. 1. A PID control system Fig. 2. A structure of a PID control system where u(t) is the input signal to the multivariable processes, the error signal e(t) is defined as e(t) =r(t) − y(t), and r(t) is the reference input signal. A standard PID controller structure is also known as the ‘‘three-term” controller. This principle mode of action of the PID controller can be explained by the parallel connection of the P, I and D elements shown in Figure 3. Block diagram of the PID controller 2 1.. TTID S 1 Gs() KP (1 ) = KTPD(1s ) (5) TSI . Tsi where KP is the proportional gain, TI is the integral time constant, TD is the derivative time constant, KI =KP /TI is the integral gain and KD =KPTD is the derivative gain. The ‘‘three- term” functionalities are highlighted below. The terms KP , TI and TD definitions are: The proportional term: providing an overall control action proportional to the error signal through the all pass gain factor. The integral term: reducing steady state errors through low frequency compensation by an integrator. The derivative term: improving transient response through high frequency compensation by a differentiator. www.intechopen.com 216 Introduction to PID Controllers – Theory, Tuning and Application to Frontier Areas OR Fig. 3. Parallel Form of the PID Compensator These three variables KP , TI and TD are usually tuned within given ranges. Therefore, they are often called the tuning parameters of the controller. By proper choice of these tuning parameters a controller can be adapted for a specific plant to obtain a good behaviour of the controlled system. The time response of the controller output is t etdt() 0 de() t UtKet()Pd (() T ) (6) Tdi t Using this relationship for a step input of et(), i.e. et() () t , the step response r(t) of the PID controller can be easily determined. The result is shown in below. One has to observe that the length of the arrow KTPDof the D action is only a measure of the weight of the impulse. www.intechopen.com PID Control Theory 217 Fig. 4. a) Step response of PID ideal formb) Step response of PID real form 2.1 The transfer function of the PID controller The transfer function of the PID controller is Us() Gs() (7) Es() 2 KI KSDPI KS K Gs() KPD K S = (8) S S 2.2 PID pole zero cancellation The PID equation can be written in this form: K 2 p Ki Ksd() s KKdd Gs() (9) s When this form is used it is easy to determine the closed loop transfer function. 1 Hs() (10) 22 ss200 If Ki 2 0 (11) Kd Kp 20 (12) Kd Then Kd GsHs() () (13) s www.intechopen.com 218 Introduction to PID Controllers – Theory, Tuning and Application to Frontier Areas This can be very useful to remove unstable poles. There are several prescriptive rules used in PID tuning. The most effective methods generally involve the development of some form of process model, and then choosing P, I, and D based on the dynamic model parameters. 2.3 Tuning methods We present here four tuning methods for a PID controller [2,3]. Method Advantages Disadvantages Manual Online method Requires experienced No math expression personnel Ziegler-Nichols Online method Some trial and error, process Proven method upset and very aggressive tuning Cohen-Coon Good process models Offline method Some math Good only for first order processes Software tools Online or offline method, Some cost and training consistent tuning, Support involved Non-Steady State tuning Algorithmic Online or offline method, Very slow Consistent tuning, Support Non-Steady State tuning, Very precise 2.3.1 The Ziegler–Nichols tuning method The Ziegler–Nichols tuning method is a heuristic method of tuning a PID controller. It was proposed by John G. Ziegler and Nichols in the 1940's. It is performed by setting I (integral) and D (derivative) gains to zero. The P (proportional) gain, Kp is then increased (from zero) until it reaches the ultimate gain Ku, at which the output of the control loop oscillates with a constant amplitude. Ku and the oscillation period Tu are used to set the P, I, and D gains depending on the type of controller used [3,4]: www.intechopen.com PID Control Theory 219 We can realise a PID controller by two methods: First, an analog PID controller Second, a digital PID controller 1. Circuit diagram below (figure.5) shows an analog PID controller. In this figure, we present an analog PID controller with three simple op amp amplifier, integrator and differentiator circuits. Fig. 5. Electronic circuit implementation of an analog PID controller www.intechopen.com 220 Introduction to PID Controllers – Theory, Tuning and Application to Frontier Areas Finally, we need to add the three PID terms together. Again the summing amplifier OP4 serves us well. Because the error amp, PID and summing circuits are inverting types, we need to add a final op amp inverter OP5 to make the final output positive.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    18 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us