2. PID tuning by classical method

9.3: PID tuning by the classical method

original

introduce

Currently, more than half of the controllers used in industry are PID controllers. In the past, many of these controllers were analog; however, many of today's controllers use digital signals and computers. When a mathematical model of the system is available, the parameters of the controller can be explicitly determined. However, when mathematical models are not available, parameters must be determined experimentally. Controller tuning is the process of determining the controller parameters that produce the desired output. Controller tuning allows to optimize the process and minimize the error between the process variable and its set point.

Types of controller tuning methods include trial and error and process response curve methods. The most common classical controller tuning methods are the Ziegler-Nichols and Cohen-Coon methods. These methods are typically used when a mathematical model of the system is not available. The Ziegler-Nichols method can be used for both closed-loop and open-loop systems, while Cohen-Coon is usually used for open-loop systems . A closed loop control system is a system that uses feedback control. In an open loop system, the output is not compared with the input.

The formula below shows the PID algorithm discussed in the previous PID Control section.

u ( t ) = K c ( ϵ ( t ) + 1 τ i ∫ 0 t ϵ ( t ′ ) d t ′ + τ d d ϵ ( t ) d t ) + b u(t)=K_{c}\left(\epsilon(t)+\frac{1}{\tau_{i}} \int_{0}^{t} \epsilon\left(t^{\prime}\right) d t^{\prime}+\tau_{d} \frac{d \epsilon(t)}{d t}\right)+b \nonumber u(t)=Kc( ϵ ( t )+ti10tϵ(t)dt+tddtdϵ(t))+b

where

  • u is the control signal
  • ε is the difference between the current value and the set value.
  • K c K_c Kcis the gain of the proportional controller.
  • T i T_i Tiis the parameter of the scaled integral controller.
  • T d T_d Tdis a parameter of the scaling derived controller.
  • t is the time taken for the error measurement.
  • b is the setpoint value of the signal, also known as bias or offset.

The experimentally obtained controller gain (providing a stable and consistent oscillation for the closed-loop system) or the final gain is defined as K u K_uKu K c K_c Kcis the controller gain that has been corrected by the Ziegler-Nichols or Cohn-Kuhn method and can be entered into the above equation. K u K_uKuIt is found through experiments that from K c K_cKcand adjust upwards until a consistent oscillation is obtained, as shown below. If the gain is too low, the output signal will be damped and will eventually reach equilibrium after interference occurs, as shown below.

insert image description here

On the other hand, if the gain is too high, the oscillations become unstable and become larger and larger over time, as shown below.

insert image description here

The Process Response Curve Methods section shows the parameters required for open-loop system calculations. The Ziegler-Nichols method section shows, for both open-loop and closed-loop systems, how to find K c K_cKc, T i T_i Tiand * T d T_dTd*, the Cohen-Coon section shows another way to find K c K_cKc, T i T_i Tiand T d T_dTd.

Open-loop systems typically use a quarter damping ratio (QDR) for oscillation damping. This means that the ratio of the magnitude of the first overshoot to the magnitude of the second overshoot is 4:1.

trial

Trial and error tuning methods are based on guess and check. In this approach, proportional action is the primary control, while integral and calculus actions refine it. Controller gain, K c K_cKc, making adjustments, keeping the integral and derivative actions to a minimum, until the desired output is obtained.

The following are some common values ​​of K c K_cKc, T i T_i Tiand T d T_dTdUsed to control flow, level, pressure or temperature for trial and error calculations.

flow

P or PI control can be used at low controller gains. Gain greater accuracy with highly integrated activities using PI control. Derivative control was not considered due to the fast fluctuations and large amount of noise in the flow dynamics.

K c K_c Kc= 0.4-0.65

T i T_i Ti= 6s

level

Either P or PI control can be used, but PI control is more common due to the inaccuracy caused by the offset in P-only control. Derivative control was not considered due to the fast fluctuations and large amount of noise in the flow dynamics.

Only the P setting below is such that the control valve is fully open when the vessel is 75% full, fully closed when the vessel is 25% full, and half open when the vessel is 50% full.

K c K_cKc= 2

bias deviation b = 50%

set point = 50%

For PI control:

K c K_cKc= 2-20

T i T_i Ti= 1-5 minutes

pressure

The tuning here has a large range of possible values ​​K c K_cKcSum T i T_iTiFor PI control, depending on whether the pressure measurement is liquid or gas phase.

Liquid
K c K_cKc= 0.5-2

T i T_iTi= 6-15 seconds

Gas
K c K_cKc= 2-10

T i T_iTi= 2-10 minutes

temperature

Since the temperature sensor responds relatively slowly to dynamic temperature changes, a PID controller is used.

K c K_c Kc= 2-10

T i T_iTi= 2-10 minutes

T d T_d Td= 0-5 minutes

Treatment Response Curve

In this approach, the variables to be measured are those of an already existing system. A disturbance is introduced into the system and data can then be obtained from this curve. The system is first allowed to reach steady state, followed by disturbances, X o X_oXo, is introduced to it. Percent disturbances to the system can be introduced by changes in set points or process variables. For example, if you have a thermometer that you can only turn up or down 10 degrees, then raising the temperature by 1 degree will cause a 10% disturbance to the system. These types of curves are obtained in open-loop systems without system control, allowing disturbances to be recorded. The process response curve method typically yields a response to a step function change and can measure several parameters including: transport lag or dead time, T dead T_deadTde a d , the time τ of the response change and the limit value of the response in the steady state,Mu.

T d e a d T_dead Tde a d = Transmission Lag or Dead Time: Time elapsed from the moment a disturbance is introduced to the first sign of change in the output signal

τ = time for the response to occur

X o X_o Xo= size of step change

Mu = value at which the system responds when it returns to steady state

R = τ dead τ R=\frac{\tau_{\text {dead}}}{\tau} \nonumber R=ttdead

K o = X o M u τ τ dead K_{o}=\frac{X_{o}}{M_{u}} \frac{\tau}{\tau_{\text {dead}}} \nonumber Ko=MuXotdeadt

An example of these parameters determining a typical process response curve to a step change is shown below.
To find T dead T_deadTdFor the values ​​of e a d and T, draw a line at the inflection point tangent to the response curve, and find these values ​​from the graph.

insert image description here

To map these parameters to the P, I, and D control constants, see Tables 2 and 3 in the ZN and Cohen Coon sections below.

Ziegler-Nichols method

In the 1940s, Ziegler and Nichols devised two empirical methods for obtaining controller parameters. Their method is used for non-first-order plus dead-time cases and involves intensive manual calculations. With improvements in optimization software, most of these manual methods are no longer used. However, even with computer aids, the following two methods are still used today and are considered to be among the most common:

Ziegler-Nichols closed-loop tuning method

The Ziegler-Nichols closed-loop tuning method allows you to use the limiting gain value, K u K_uKu, and the final period of oscillation, Pu , to calculate Kc K_cKc. This is an easy way to tune a PID controller, which can be improved to provide a better approximation of the controller. You can get the controller constant K c K_cKc, T i T_i Tiand * T d T_dTd*In systems with feedback. The Ziegler-Nichols closed-loop tuning method is limited to tuning procedures that cannot be run in an open-loop environment.

Determine the final gain value, K u K_uKu, by finding the value of the proportional-only gain that causes the control loop to oscillate infinitely in steady state. This means that the gains of the I and D controllers are set to zero in order to determine the effect of P. It tests K c K_cKcvalue to optimize it for the controller. Another important value associated with this proportional-only control tuning method is the terminal period ( Pu ). The terminal period is the time required to complete one full oscillation when the system is in steady state. These two parameters, K u K_uKuand Pu to find the loop tuning constants of the controller (P, PI or PID). To find the values ​​of these parameters and calculate tuning constants, follow these steps:

Closed Loop (Feedback Loop)

  1. Remove integral and derivative actions. Set the integration time ( T i T_iTi) to 999 or its maximum value, and set the derivative controller ( T d T_dTd) to zero.
  2. Create small disturbances in the loop by changing the set point. Adjust the gain proportionally, increasing and/or decreasing the gain until the oscillations have a constant amplitude.
  3. Record the gain value ( K u K_uKu) and oscillation period ( Pu ).

insert image description here

Figure 1. System tuning using the Ziegler-Nichols closed-loop tuning method

  1. Substitute these values ​​into the Ziegler-Nichols closed-loop equation and determine the necessary settings for the controller.

Table 1. Closed loop calculation K c K_cKc, T i T_i Ti, T d T_d Td

Ntable.gif

Advantage

  1. Simple experiment; only P controller needs to be replaced
  2. Including the dynamics of the entire process allows for a more accurate understanding of how the system behaves

Disadvantages

  1. experimentation can be time consuming
  2. It is possible to venture into unstable regions when testing the P controller, which may cause the system to go out of control

Ziegler-Nichols open-loop tuning method or process response method:

This method remains a common technique for tuning controllers that use proportional, integral, and derived operations. The Ziegler-Nichols loop-opening method is also known as the process response method because it tests the change in the loop-opening response of the process to the output of the controlled variable. This basic test requires recording the system's response, preferably with a plotter or computer. Once certain process response values ​​are found, they can be substituted into the Ziegler-Nichols equation with specific multiplier constants to obtain the gain of a controller with P, PI or PID action.

Open loop (feedforward loop)

To use the Ziegler-Nichols open-loop tuning method, the following steps must be performed:

  1. Performing an Open Loop Step Test

2. Determine the transport lag or dead time from the process response curve, T dead T_deadTde a d , the time constant or time τ of response change, and the extreme value reached by the response in steady state,Mu, forX o X_oXostep change.
K o = X o M u TT dead K_o = \frac{X_o}{M_u} \frac{T}{T_dead}Ko=MuXoTdeadT

  1. Determine the cycle tuning constant. Substitute the reaction rate and dead time values ​​into the Ziegler-Nichols open-loop tuning equation for the corresponding controller (P, PI, or PID) to calculate the controller constants. Use the table below.

Table 2. Open loop calculation of K c K_cKc, T i T_i Ti, T d T_d Td

insert image description here

Advantage

  1. Faster and easier to use than other methods
  2. This is a powerful and popular method
  3. Of the two techniques, the process reaction method is the easiest to implement and the least disruptive.

Disadvantages

  1. It relies on purely proportional measurements to estimate I and D controllers.
  2. Approximate K c K_cKc, T i T_i Tiand * T d T_dTd*Values ​​may not be completely accurate for different systems.
  3. It is not available for I, D and PD controllers

Cohen-Coon method

The Cohen-Coon method of controller tuning corrects for the slow steady-state response given by the Ziegler-Nichols method when there is a large dead time (process delay) relative to the open-loop time constant; in order for this Approaches that are practical require large process delays that would otherwise predict unreasonably large controller gains. This method is only used for first-order models with time delays because the controller does not respond instantaneously to disturbances (step disturbances are asymptotic rather than instantaneous).

The Cohen-Coon method is classified as an "offline" tuning method, meaning that a step change can be introduced to the input once it is in steady state. The output can then be measured as a function of the time constant and time delay, and this response can be used to estimate initial control parameters.

For the Cohen-Coon method, there is a predetermined set of settings to obtain a minimum offset and a standard attenuation ratio of 1/4 (QDR). The 1/4 (QDR) decay ratio refers to the response in which the oscillations are reduced such that the amplitude of the second oscillation will be 1/4 of the amplitude of the first oscillation. These settings are shown in Table 3.

Table 3. Standard Recommendation Equations for Optimizing Cohn-Kuhn Forecasts

ohencoontable.gif

The variables P, N and L are defined as follows.
ftable2.jpg

Or, K 0 K_0K0Can be substituted for (P/NL). K 0 K_0K0、τ 和 T d e a d T_dead Tde a d are defined in the Process Response Curve section. An example of using these parameters is shown here [1].

The process of the Kohn-Kuhn turning method is as follows:

  1. Wait until the process reaches a steady state.
  2. Introduces a step change in the input.
  3. From the output, an approximate first-order process of the time constant τ delay τ is obtained when the input step is introduced into the unit .

The values ​​of τ and τ can be obtained by first recording the following time instances:

t 0 t_0 t0= time t 2 t_2 of the start of the input stept2= time to half o'clock t 3 t_3t3= time to reach the 63.2% point
insert image description here

  1. use t 0 t_0t0 t 2 t_2 t2 t 3 t_3 t3, measured values ​​at A and B, evaluate process parameter τ, T dead T_deadTde a d sumKo.
  2. According to τ, τ, find the controller parameters and Ko .

Advantage

  1. For systems with time delay.
  2. Faster closed loop response time.

Drawbacks and Limitations

  1. Unstable closed-loop system.
  2. Can only be used for first-order models that include large process delays.
  3. offline method.
  4. Approximate value $K_c$0 X i X_iXiand T d T_dTdValues ​​may not be completely accurate for different systems.

Other methods

These are other common methods used, but they can be complex and are not considered classical, so they are only briefly discussed.

internal model control

The Internal Model Control (IMC) method was developed with robustness in mind. Ziegler-Nichols open-loop and Cohen-Kuhn method controllers have large gain and short integration time, which are not conducive to chemical engineering applications. The IMC method involves closed-loop control without overshoot or oscillatory behavior. However, for systems with first-order dead times, the IMC method is very complicated.

Autotune changes

The automatic tuning variation (ATV) technique is also a closed-loop method for determining two important system constants ( Pu and K u K_uKuFor example). These values ​​can be determined without disturbing the system, and the tuning value of the PID can be obtained from them. The ATV method is only suitable for systems with a large amount of dead time or the resulting period, Pu , will be equal to the sampling period.

Example 9.3.1

You're a controls engineer working at Perfect Design when your best controller fails. As a backup, you think that by using a cursory knowledge of classical methods, you can sustain the development of your product. After adjusting the gain to a set of data obtained from the controller, you will find that the final gain is 4.3289.

From the tuning graph below, determine the type of cycle this graph represents; then, calculate K c K_cKc, T i T_i Tiand * T d T_dTd*Applies to all three types of controllers.

ave.gif

the solution

From the fact that this graph oscillates rather than a step function, we see that this is a closed loop. Therefore, the values ​​will be calculated accordingly.

We get the final yield, K u K_uKu= 4.3289. From the figure below, we see that the final period of this gain is Pu = 6.28
ave2.gif

From this, we can calculate K c K_cKc, T i T_i Tiand * T d T_dTd*Applies to all three types of controllers. The results are shown in the table below. (Results are calculated from the Ziegler-Nichols closed-loop equation.

able4.gif

Example 9.3.29.3.2

Your partner finds another set of data after a controller failure and decides to use the Cohen-Coon method because of the slow response time of the system. They also noticed that the control dial from 0 to 8 was set to 3 instead of 1. Fortunately, the response curve was obtained earlier, as shown below. From these data, he wants to calculate K c K_cKc, T i T_i Tiand * T d T_dTd*. Help him determine these values. Note that the y-axis is the percent change in the process variable.

x2.jpg

the solution

In order to solve K c K_cKc, T i T_i Tiand * T d T_dTd*, L, ΔCp and T must first be determined. All these values ​​can be calculated from a given reaction curve.

x2soln.jpg

From the process response curve, we can find:
L=3
T=11
\(Δ C_p= 0.55\, (55%)\)

Now that these three values ​​have been found, N and R can be calculated using the equations below.
N = Δ C p TN=\frac{\Delta C_p}{T}N=TC _p

R = L T = N L Δ C p R=\frac{L}{T} = \frac{N L}{\Delta C_p} R=TL=C _pNL

Using these equations, you find that
N = .05
R = 0.27
We also know that there is a 200% change due to the controller moving from 1 to 3.
P = 2.00

We use these values ​​to calculate K c K_cKc, T i T_i Tiand * T d T_dTd*, for the three types of controllers based on the formulas in Table 3.

he466figure.jpg

Tuning the parameters of the PID controller on the real system

There are several ways to tune the parameters of a PID controller. They involve the following procedures. For each, name the procedure and explain how the given measurement information is used to select the parameters of the PID controller.

Example 9.3.19.3.1
  1. The controller is only set to P and the system operates in "closed loop", which means the controller is connected and working. Gain is tuned until resonance is obtained. The amplitude and frequency of this resonance are measured.
  2. The system is kept in "open loop" mode, step function changes are manually made to the system (either by disturbance or by the controller itself). The resulting response of the system is recorded as a function of time.
the solution

one. We will use the Ziegler-Nichols method.

K i K_i Ki=0.5 K u K_u Ku
K u K_u Kuis the final gain when the system starts to oscillate.

2. We will use the Cohen-Coon method.

We can locate the inflection point of the step function and draw the tangent. T dead T_deadTde a d lies at the intersection of this tangent with t and Τ lies at the intersection of the tangent of M(t)

Exercise 9.3.1

Which of the following do you document in the Ziegler-Nichols method?

  1. K c K_c Kc
  2. T i T_i Ti
  3. K o K_oKo
  4. T d T_d Td
  • Answer : C
Exercise 9.3.2

For the Ziegler-Nichols method, it is important that:

  1. Find the gain that produces ringing
  2. Set P and I controllers to zero
  3. record oscillation period
  4. Calculate Tc
  • Answer : A, C

Guess you like

Origin blog.csdn.net/acktomas/article/details/129856529