Subsections

6.2 Controller Structures and Templates  

In this section we describe how the controller formula is distilled out of the controller structure and controller template (see Figure 6.2). RaPID designs an optimal discrete two degrees of freedom (2 DOF) PIDd (Proportional, Integral, Derivative, Double derivative) controller. The exact formula of the controller depends on:

6.2.1 General Controller Templates      

You open the ``Controller Template'' window either from the ``New Project'' window when the project is defined (Section 3.1.2) or from the ``Controller Structure'' window (Section 6.2.2). The two general templates discussed in this section are:

More specific industrial templates are described in Appendix A.

The controller template typically gives an answer to the question: where will the controller be implemented? Table 6.1 gives an overview of the discussion in this section and Appendix A.


 
Table 6.1: Correspondence between the controller implementation platform and the templates provided by RaPID. Once you know your implementation platform, you can enter this information in the ``Controller Template'' window. The word ``Other'' in this table means any device not in the template list. The term ``derivative gain limitation'' is explained below. 
RaPID mode Implementation platform Template Reference
File or Device in template list Associated template App A
Simulink Other input-output board General controller template with Sect 6.2.1.A
  Other discrete platform no derivative gain limitation  
  Other devices with known General controller template with Sect 6.2.1.B
  derivative gain limitation fixed derivative gain limitation  
  Any other device General controller template with Sect 6.2.1.A
    no derivative gain limitation  
Real Time Real time device in list Associated template App A


      
A. General controller template with no derivative gain limitation


  
Figure 6.3: The ``Controller Template'' window containing the general controller template with no derivative gain limitation.
\begin{figure}
\centering
\includegraphics [width=11cm]{line1.ps}
\end{figure}


Figure 6.3 shows the ``Controller Template'' window for the general controller, when the derivative gain limitation parameter is off. The most general formula for the discrete controller is then:   
 \begin{displaymath}
\mbox{\shortstack{$U(z) = m \;\; + \;\;
\underbrace{\mathbf{...
 ...bol{\gamma} R(z) - Y(z) \right]}_{\mbox{Double Derivative}}$}} \end{displaymath} (8)
where U(z), Y(z) and R(z) are the ${\cal Z}$ transformed variables of respectively the process input, process output and reference signals. The controller parameters (the boldface variables in (6.1)), are grouped into two sets: the feedback parameters acting on the process output Y(z) and the feedforward parameters acting on the reference R(z) only:

Feedback  
The set of feedback parameters ${\cal P}_{\mbox{\scriptsize Feedback}}$ consist of:
Feedforward  
The set of feedforward parameters ${\cal P}_{\mbox{\scriptsize Feedforward}}$ consist of:

  Finally, there is the manual reset m, which plays a less important role. Which parameter values in (6.1) are free to be optimized and which are fixed at zero and/or one is determined in the ``Controller Structure'' window (Section 6.2.2). 

This general discrete controller formula, with no derivative gain limitation (6.1) can be transformed to a general continuous formula:  
 \begin{displaymath}
\mbox{\shortstack{$U(s) = m \;\; + \;\;
\underbrace{K \left[...
 ...left[ \gamma R(s) - Y(s) \right]}_{\mbox{Double Derivative}}$}}\end{displaymath} (9)
with:

Which parameter values in (6.2) are free to be optimized and which are fixed at zero and/or one is determined in the ``Controller Structure'' window (Section 6.2.2).

Note that this general controller template with no derivative gain limitation, is a good structure to implement in discrete form (6.1) on an input-output board or any other discrete platform, but that the transformation to continuous form (6.2) is not very physical, since the derivative Td s and double derivative actions Tdd2 s2 are not limited in frequency or gain (see also Table 6.1).

      
B. General controller template with fixed derivative gain limitation


  
Figure 6.4: The ``Controller Template'' window containing the general controller template with fixed derivative gain limitation. The limiting value is fixed at 10.
\begin{figure}
\centering
\includegraphics [width=11cm]{line1.ps}
\end{figure}


Figure 6.4 shows the ``Controller Template'' window for the general controller, when the derivative gain limitation is active. In this case, the limiting value N is equal to 10. The most general formula for the discrete controller is now:   
 \begin{displaymath}
\mbox{\shortstack{$U(z) = m \;\; + \;\;
\underbrace{\mathbf{...
 ...bol{\gamma} R(z) - Y(z) \right]}_{\mbox{Double Derivative}}$}} \end{displaymath} (10)
The controller parameters (the boldface variables in (6.3)), are again grouped into two sets: the feedback parameters acting on the process output Y(z) and the feedforward parameters acting on the reference R(z) only:

Feedback  
The set of feedback parameters ${\cal P}_{\mbox{\scriptsize Feedback}}$ consist of:
   The feedforward parameters and the manual reset are the same as before in (6.1). Note that the two formulas (6.1) and (6.3) only differ in their derivative and double derivative terms. The variable N in (6.3) is exactly the derivative gain limitation that is entered in the ``Controller Template'' window of Figure 6.4.

Which parameter values in (6.3) are free to be optimized and which are fixed at zero and/or one is determined in the ``Controller Structure'' window (Section 6.2.2). 

This general discrete controller structure, with fixed derivative gain limitation (6.3) can be transformed to a general continuous formula:  
 \begin{displaymath}
\mbox{\shortstack{$U(s) = m \;\; + \;\;
\underbrace{K \left[...
 ...left[ \gamma R(s) - Y(s) \right]}_{\mbox{Double Derivative}}$}}\end{displaymath} (11)
with:

With N still the ``Limiting Value'' parameter as it was entered in the ``Controller Template'' window of Figure 6.4. Which parameter values in (6.2) are free to be optimized and which are fixed at zero and/or one is determined in the ``Controller Structure'' window (Section 6.2.2). 

Note that this general controller template with fixed derivative gain limitation can be easily implemented in discrete form (6.3) as well as in continuous form, since the derivative and double derivative terms are limited in frequency and gain (6.4). Note also that the limiting gain for the derivative term for high frequencies ($s \rightarrow \infty$) in (6.4) is equal to K N, which explains the name ``Derivative Gain Limit'' of the parameter N (see also Table 6.1).


Other industrial controller templates lead to other controller formulas, as is extensively described in Appendix A.

   

Finally note that the check box at the bottom left of the ``Controller Template'' window in Figures 6.3 and 6.4 allows you to choose a default template which is loaded automatically each time a new project is started. If you select a template different from the general controller with no gain derivation and hit the ``OK'' button in the ``Controller Template'' window while the check box is marked, each subsequent new project will have this template as a default. This is useful when you are always working with the same template (the same DCS system for instance).

6.2.2 Controller Structure        

Once the controller template is defined, the controller structure determines which parameters in the formulas (6.1) through (6.4) can be freely varied and which should stay fixed at zero and/or one. Indirectly, this determines the complexity of the controller (P, PI, PD, PID,...) and the feedforward freedom in the controller.

The ``Controller Structure'' window thus gives an answer to the question: what type of controller will be implemented? Note that your choice of controller template as described in the previous section also influences the possible choices of controller structures: most industrial devices only allow a limited set of possible controller structures.

You start the ``Controller Structure'' window of Figure 6.5 from the menu Controller $\rightarrow \;$Structure or by hitting the ``Control'' box in the main ``Control Design'' window or by hitting the structure button in the ``Controller Parameter Design'' window (see Section 6.3.1).


  
Figure 6.5: The ``Controller Structure'' window allows you to further customize the controller computed by RaPID. You determine the complexity (P, PI, PD, PID, ...) as well as the amount of feedforward with this window. The ``Formula'' push button (lower left) allows you to inspect the final controller formula. The structure shown here is the default for non-integrating processes.
\begin{figure}
\centering
\includegraphics [width=12cm]{line1.ps}
\end{figure}


The ``Controller Structure'' window determines together with the ``Controller Template'' window the final formula of the controller (see Figure 6.2).

The letters in the window correspond to the controller action in formulas (6.1) through (6.4) as follows:

P: 
Proportional action
I: 
Integral action
D: 
Derivative action
d: 
Double derivative action

The correspondence between the template formula's in the previous section and the ``Controller Structure'' window is as follows (for instance for the derivative term):   

Similar statements hold for the proportional action P and its feedforward parameter $\boldsymbol{\alpha}$, and for the double derivative action d and its feedforward parameter $\boldsymbol{\gamma}$. The integral term always acts purely on the error.

When a letter is not represented in the ``Controller Structure'' window, like the d in Figure 6.5, the corresponding term is not present in the formula's of Section 6.2.1.

Note that the possible controller structures can be limited by the choice of the industrial template. For instance, most industrial controllers have no double derivative term.    As an example, the controller structure as in Figure 6.5 with the general controller template with no derivative gain limitation (Figure 6.3), leads to a discrete controller formula:

\begin{displaymath}
U(z) = m + 
\mathbf{K} \left[ \boldsymbol{\alpha} R(z) - Y(z...
 ...} \left[ R(z) - Y(z) \right] - \mathbf{K_d}
\frac{z-1}{z} Y(z) \end{displaymath}

where RaPID determines the parameters $\mathbf{K}, \boldsymbol{\alpha}, \mathbf{K_i}$ and $\mathbf{K_d}$.This final controller form can always be checked by hitting the ``Formula...'' button in the ``Controller Structure'' window, which pops up Figure 6.6.


  
Figure 6.6: The ``Controller Formula'' window allows you to further check the form of the controller. All fixed parameters and their values are indicated at the bottom. The other parameters ($K, \alpha, T_i$ and Td for this case) are free to be optimized by RaPID. You can inspect the discrete form of the controller with the radio buttons on top.
\begin{figure}
\centering
\includegraphics [width=11.6cm]{line1.ps}
\end{figure}


    Finally, it should be noted that the default structure selection for non-integrating processes is the one of Figure 6.5, while the default selection for integrating processes is the one of Figure 6.7. The ``integral'' term is removed from the controller, since it is already present in the process itself. This works well as long as there are no constant (step like) load disturbances. The RaPID course notes explain in more detail why this is a sensible default structure.


  
Figure 6.7: The ``Controller Structure'' window shows the default structure for integrating processes. The ``integral'' term is removed from the controller, since it is already present in the process itself. This works well as long as there are no constant load disturbances.
\begin{figure}
\centering
\includegraphics [width=12cm]{line1.ps}
\end{figure}




Peter Van Overschee
1/21/1998