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:
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:
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.
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
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:
![]() |
(8) |
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:
![]() |
(9) |
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).
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:
![]() |
(10) |
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:
![]() |
(11) |
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 (
) 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).
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
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).
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:
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):
![]()
![]()
![]()
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:
![]()
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.