2.4 Designing a first PID controller     

Now you have identified your first linear model, the next step is to design a PID controller that performs according your to specifications. RaPID allows a multitude of controller specifications, of which here only a small subset will be treated. More advanced controller designs are described in the eight case studies of Chapter 8.

To go from the ``Identification'' window to the ``Control Design'' window, hit the ``Control Design'' button in the task bar (top left of Figure 2.8) or use the menu entry RaPID $\rightarrow \;$Control Design. The ``Control Design Parameters'' window of Figure 2.11 pops up.  


  
Figure 2.11: The ``Controller Design Parameters'' window allows you to specify the controller design specifications. For this tutorial skilift example, you will concentrate on ``Tracking Only''. RaPID will minimize the ``Settling Time'' with a maximal ``Overshoot'' of 3 percent. The ``Nominal Closed Loop Point'' determines the initial conditions for which RaPID simulates the closed loop (set the ``Initial Speed'' to 0 km/h).
\begin{figure}
\centering
\includegraphics [width=10.5cm]{line1.ps}
\end{figure}


This window allows you to choose a controller good for ``Tracking Only'' i.e. optimial following of setpoints, or for ``Variance and Tracking'' i.e. optimal rejection of load or output disturbance, with a sub-optimal tracking. The controller specifications for this skilift example are to minimize the settling time of the speed, with an allowed overshoot of 3 % (more overshoot is inadvisable for the passengers). The ``Nominal Closed Loop Point'' determines the initial conditions for which RaPID simulates the closed loop. You may assume the lift is at rest, so the initial speed is 0 km/hour.    

When you hit the OK button in the ``Control Design Parameters'' window of Figure 2.11, the ``Design Reference Definition'' window of Figure 2.12 pops up. In this window, you determine the reference for which the settling time is minimized (with a maximum overshoot of 3 %). Set the step level to 10 km/hour as in Figure 2.12 and hit the ``OK'' button.


  
Figure 2.12: In the ``Design Reference Definition'' window you select which reference signal should be tracked optimally.
\begin{figure}
\centering
\includegraphics [width=10.8cm]{line1.ps}
\end{figure}


After RaPID has computed the optimal controller according to your design specifications, the ``Control Design'' window looks like Figure 2.13. The green line in the top plot is the process output due to the reference step signal and due to a step like load signal applied at 30 seconds. For this example, the load could be for instance the wind blowing against the lift, or the increase in the number of passengers. You can turn on the plotting of the load with the menu View $\rightarrow \;$Load or by clicking the text ``Load'' in the configuration window (This load response is automatically computed to avoid you from designing controllers with a poor load rejection, without you knowing it. The value is determined such that the output change due to the load is 50 percent of the output change due to the reference.). Use zooming and data viewing to inspect the maximal speed. You will find it is equal to 10.3 km/hour. For a step size of 10 km/hour, this exactly corresponds to the desired 3 %.


  
Figure 2.13: The ``Control Design'' window after the optimal PID controller was computed. The top plot shows the reference signal and the speed. The bottom plot show the throttle and the step load at 30 seconds. Use zooming and data viewing to inspect the overshoot
\begin{figure}
\centering
\includegraphics [width=13cm]{line1.ps}
\end{figure}


Have a look at the controller coefficients with the menu Edit $\rightarrow \;$Controller. This pops up the ``Edit Designed Controller'' window as in Figure 2.14. Before you turn your attention to the validation of the designed controller, you should also inspect the loop properties (View $\rightarrow \;$Loop Properties and Section 6.8.1), the loop numerics (View $\rightarrow \;$Loop Numerics and Section 6.8.2) and the analysis of the signals (View $\rightarrow \;$Analysis and Section 6.8.3).      


  
Figure 2.14: The ``Edit Designed Controller'' window with the controller formula and parameters. Hit the ``Discrete'' radio button to inspect the parameters of the discrete controller.
\begin{figure}
\centering
\includegraphics [width=11.6cm]{line1.ps}
\end{figure}




Copyright ISMC nv
1/21/1998