Skip to main content
Erschienen in:
Buchtitelbild

Open Access 2018 | OriginalPaper | Buchkapitel

4. PID Design Example

verfasst von : Steven A. Frank

Erschienen in: Control Theory Tutorial

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

This chapter continues to develop the example of proportional, integral, and derivative control. The analysis illustrates the classic responses to a step change in input and a temporary impulse perturbation to input. The techniques for analyzing and visualizing dynamics and sensitivities are emphasized, particularly the Bode gain and phase plots.
I illustrate the principles of feedback control with an example. We start with an intrinsic process
$$\begin{aligned} P(s)=\left( \frac{a}{s+a}\right) \left( \frac{b}{s+b}\right) =\frac{ab}{(s+a)(s+b)}. \end{aligned}$$
This process cascades two exponential decay systems, each with dynamics as in Eq. 2.​8 and associated transfer function as in Eq. 2.​9. For example, if the input into this system is a unit impulse at time zero, then the system output is
$$\begin{aligned} y(t)=\frac{ab}{b-a}\left( e^{-at}-e^{-bt}\right) , \end{aligned}$$
expressing the cascade of two exponentially decaying processes.
For this example, we use
$$\begin{aligned} P(s)=\frac{1}{(s+0.1)(s+10)} \end{aligned}$$
(4.1)
as the process. We also consider an alternative process
$$\begin{aligned} \tilde{P}(s)=\frac{1}{(s+0.01)(s+100)}. \end{aligned}$$
(4.2)
We assume during system analysis and design that Eq. 4.1 describes the process, but in fact Eq. 4.2 is actually the true process. Put another way, the difference between the two processes may reflect uncertain information about the true process or unknown disturbances that alter the process. Thus, we may consider how a system performs when it was designed, or evolved, in response to a process, P, and the underlying system becomes \(\tilde{P}\).
In this example, the problem concerns the design of a negative feedback loop, as in Fig. 3.​2a, that uses a controller with proportional, integral, and derivative (PID) action. Many methods derive PID controllers by tuning the various sensitivity and performance tradeoffs (Åström and Hägglund 2006; Garpinger et al. 2014).
I obtained the parameters for the PID controller in Eq. 3.​6 by using the Ziegler–Nichols method in Mathematica, yielding
$$\begin{aligned} C(s)=\frac{6s^2+121s+606}{s}. \end{aligned}$$
(4.3)
I also used Mathematica to calculate the feedforward filter in Fig. 3.​2a, yielding
$$\begin{aligned} F(s)=\frac{s^2+10.4s+101}{s^2+20.2s+101}. \end{aligned}$$
(4.4)

4.1 Output Response to Step Input

Figure 4.1 illustrates various system responses to a unit step increase from zero to one in the reference input signal, r. Panel (a) shows the response of the base process, P, by itself. The blue curve is the double exponential decay process of Eq. 4.1. That process responds slowly because of the first exponential process with time decay \(a=0.1\), which averages inputs over a time horizon with decay time \(1/a=10\), as in Eq. 2.​8. The gold curve, based on Eq. 4.2, rises even more slowly, because that alternative process, \(\tilde{P}\), has an even longer time horizon for averaging inputs of \(1/a=100\).
Panel (b) shows the response of the full feedback loop of Fig. 3.​2a with the PID controller in Eq. 4.3 and no feedforward filter, \(F=1\). Note that the system responds much more rapidly, with a much shorter time span over the x-axis than in (a). The rapid response follows from the very high gain of the PID controller, which strongly amplifies low-frequency inputs.
The PID controller was designed to match the base process P in Eq. 4.1, with response in blue. When the actual base process deviates as in \(\tilde{P}\) of Eq. 4.2, the response is still reasonably good, although the system has a greater overshoot upon first response and takes longer to settle down and match the reference input. The reasonably good response in the gold curve shows the robustness of the PID feedback loop to variations in the underlying process.
Panel (c) shows the response of the system with a feedforward filter, F, from Eq. 4.4. Note that the system in blue with the base process, P, improves significantly, with lower overshoot and less oscillation when settling to match the reference input. By contrast, the system in gold with the alternative base process, \(\tilde{P}\), changes its response very little with the additional feedforward filter. This difference reflects the fact that feedforward works well only when one has very good knowledge of the underlying process, whereas feedback works broadly and robustly with respect to many kinds of perturbations.

4.2 Error Response to Noise and Disturbance

Figure 4.2 illustrates the system error in response to sensor noise, n, and process disturbance, d. Panel (a) shows the error in response to a unit step change in n, the input noise to the sensor. That step input to the sensor creates a biased measurement, y, of the system output, \(\eta \). The biased measured value of y is fed back into the control loop. A biased sensor produces an error response that is equivalent to the output response for a reference signal. Thus, Fig. 4.2a matches Fig. 4.1b.
Panel (b) shows the error response to an impulse input at the sensor. An impulse causes a brief jolt to the system. The system briefly responds by a large deviation from its setpoint, but then returns quickly to stable zero error, at which the output matches the reference input. An impulse to the reference signal produces an equivalent deviation in the system output but with opposite sign.
The error response to process disturbance in panels (c) and (d) demonstrates that the system strongly rejects disturbances or uncertainties to the intrinsic system process.

4.3 Output Response to Fluctuating Input

Figure 4.3 illustrates the system output in response to fluctuating input (green). The top row shows the output of the system process, either P (blue) or \(\tilde{P}\) (gold), alone in an open loop. The system process is a cascade of two low-pass filters, which pass low-frequency inputs and do not respond to high-frequency inputs.
The upper left panel shows the response to the (green) low-frequency input, \(\omega =0.1\), in which the base system P (blue) passes through the input with a slight reduction in amplitude and lag in phase. The altered system \(\tilde{P}\) (gold) responds only weakly to the low frequency of \(\omega =0.1\), because the altered system has slower response characteristics than the base system. At a reduced input frequency of \(\omega =0.01\) (not shown), the gold curve would match the blue curve at \(\omega =0.1\). As frequency increases along the top row, the processes P and \(\tilde{P}\) block the higher-frequency inputs.
The lower row shows the response of the full PID feedback loop system. At a low frequency of \(\omega \le 0.1\), the output tracks the input nearly perfectly. That close tracking arises because of the very high gain amplification of the PID controller at low frequency, which reduces the system tracking error to zero, as in Eq. 3.​5.
At a higher frequency of \(\omega =10\), the system with the base process P responds with a resonant increase in amplitude and a lag in phase. The slower altered process, \(\tilde{P}\), responds only weakly to input at this frequency. As frequency continues to increase, both systems respond weakly or not at all.
The system response to sensor noise would be of equal magnitude but altered sign and phase, as shown in Eq. 3.​7.
Low-frequency tracking and high-frequency rejection typically provide the greatest performance benefit. The environmental references that it pays to track often change relatively slowly, whereas the noisy inputs in both the reference signal and in the sensors often fluctuate relatively rapidly.

4.4 Insights from Bode Gain and Phase Plots

Figure 4.4 provides more general insight into the ways in which PID control, feedback, and input filtering alter system response.
Panels (a) and (b) show the Bode gain and phase responses for the intrinsic system process, P (blue), and the altered process, \(\tilde{P}\) (gold). Low-frequency inputs pass through. High-frequency inputs cause little response. The phase plot shows that these processes respond slowly, lagging the input. The lag increases with frequency.
Panels (c) and (d) show the responses for the open loop with the PID controller, C, combined with the process, P or \(\tilde{P}\), as in Fig. 2.​1b. Note the very high gain in panel (c) at lower frequencies and the low gain at high frequencies.
PID controllers are typically designed to be used in closed-loop feedback systems, as in Fig. 2.​1c. Panels (e) and (f) illustrate the closed-loop response. The high open-loop gain of the PID controller at low frequency causes the feedback system to track the reference input closely. That close tracking matches the \(\log (1)=0\) gain at low frequency in panel (e). Note also the low-frequency phase matching, or zero phase lag, shown in panel (f), further demonstrating the close tracking of reference inputs. At high frequency, the low gain of the open-loop PID controller shown in panel (c) results in the closed-loop rejection of high-frequency inputs, shown as the low gain at high frequency in panel (e).
Note the resonant peak of the closed-loop system in panel (e) near \(\omega =10\) for the blue curve and at a lower frequency for the altered process in the gold curve. Note also that the altered process, \(\tilde{P}\), in gold, retains the excellent low-frequency tracking and high-frequency input rejection, even though the controller was designed for the base process, P, shown in blue. The PID feedback loop is robust to differences in the underlying process that varies from the assumed form of P.
Panels (g) and (h) show the PID closed-loop system with a feedforward filter, F, as in Fig. 3.​2a. The feedforward filter smooths out the resonant peak for the blue curve, so that system does not amplify inputs at resonant frequencies. Amplified resonant inputs may lead to instabilities or poor system performance. Note that the feedforward filter does not have much effect on the altered process in gold. Feedforward modifiers of a process typically work well only for a specific process. They often do not work robustly over a variant range of processes.

4.5 Sensitivities in Bode Gain Plots

Figure 4.5 illustrates the sensitivities of the system error output, \(r-\eta \), to inputs from the reference, r, sensor noise, n, and load disturbance, d, signals, calculated from Eq. 3.​9. Figure 3.​2a shows the inputs and loop structure.
The blue curve of panel (a) shows the error sensitivity to the reference input. That sensitivity is approximately the mirror image of the system output response to the reference input, as shown in Fig. 4.4e (note the different scale). The duality of the error response and the system response arises from the fact that the error is \(r-\eta \), and the system response is \(\eta \).
Perfect tracking means that the output matches the input, \(r=\eta \). Thus, a small error corresponds to a low gain of the error in response to input, as occurs at low frequency for the blue curve of Fig. 4.5a. In the same way, a small error corresponds to a gain of one for the relation between the reference input, r, and the system output, \(\eta \), as occurs at low frequency for the blue curve of Fig. 4.4e.
The noise sensitivity in the green curve of Fig. 4.5a shows that the system error is sensitive to low-frequency bias in the sensor measurements, y, of the system output, \(\eta \). When the sensor produces a low-frequency bias, that bias feeds back into the system and creates a bias in the error estimate, thus causing an error mismatch between the reference input and the system output. In other words, the system is sensitive to errors when the sensor suffers low-frequency perturbations. The PID system rejects high-frequency sensor noise, leading to the reduced gain at high frequency illustrated by the green curve.
The disturbance load sensitivity in the red curve of Fig. 4.5a shows the low sensitivity of this PID feedback system to process variations.
This PID feedback system is very robust to an altered underlying process, as shown in earlier figures. Here, Fig. 4.5b illustrates that robustness by showing the relatively minor changes in system sensitivities when the underlying process changes from P to \(\tilde{P}\). However, other types of change to the underlying process may cause greater changes in system performance. Robustness depends on both the amount of change and the kinds of change to a system.
Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://​creativecommons.​org/​licenses/​by/​4.​0/​), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.
The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
Metadaten
Titel
PID Design Example
verfasst von
Steven A. Frank
Copyright-Jahr
2018
DOI
https://doi.org/10.1007/978-3-319-91707-8_4

Neuer Inhalt