1 Introduction

Cascade control has been implemented in industry and different applications [3, 13, 16] due to their disturbance rejection, faster response and other advantages over single-loop control systems. Usually, they are tuned sequentially, the inner loop controller is tuned first to give a faster response than the outer loop, and then, the outer loop controller is tuned according to the resulting system.

Apart from sequential tuning, there are some control strategies that are suitable for cascade control design such as the internal model control (IMC) [18, 21, 22, 28, 34] and Smith predictor [7], due to their flexibility in the tuning parameters. These methods provide a better system response than sequential tuning due to the adjustment of the inner loop has minimum effects on the outer loop.

Tuning methods for proportional-integral-derivative (PID) controllers based on the frequency characteristics for single loop systems have some advantages over other methods due to the robustness parameter selection such as gain margin and phase margin [4, 9, 23] or the system sensitivity [33].

Exploiting the flexibility of the IMC due to its tuning parameter and the robustness characteristics of the frequency-based tuning algorithm, an IMC–PID/PID tuning method for cascade process with phase margin and gain margin specifications is proposed in this article.

There are limited tuning methods found in the literature related to the tuning of cascade process with frequency domain specifications, but with this approach, an appropriate tuning method for nested systems is developed, in which the robust design is necessary to avoid loop interaction in the adjustment procedure and obtain a system with disturbance rejection properties.

The methods based on relay tuning [8, 19] give a practical solution for this problem, but they do not give an analytical solution. Therefore, an analytical tuning formulae based on IMC–PID control are presented in this article. A second-order plus dead time model is employed on the inner loop SOPTD, and a first-order plus dead time model FOPTD is implemented in the outer loop.

The internal model controller parameters for the inner and outer loop are adjusted by the tuning formulae based on the gain margin and phase margin specification for each loop. The internal model controller for cascade process [10, 18, 21] is related to the frequency domain specifications by the gain margin and phase margin properties of feedback systems given by the characteristics of the frequency response. Therefore, the tuning parameters of the PID/PID controllers are adjusted, taking into account the effects on the sensitivity for each loop obtaining the required system response and the specified gains and phase margins. Apart from traditional tuning procedures for single loop and cascade control systems, there are some IMC strategies based on intelligent control and optimization such as [12] where an IMC controller design is performed using ARX —artificial neural networks—for MIMO nonlinear systems is presented; in Bin et al. [5], an IMC controller design with PLS (partial least square) is shown where a predictor is implemented to adjust the controller parameters to stabilize the process. Even when intelligent control strategies for similar problems are found in the literature, the classic control techniques are still in use and they are very useful as explained in this section; therefore, the proposed control strategy explained in this article is suitable for the independent tuning of cascade control systems.

The theoretical background of this technique is based on the internal stability properties of closed-loop systems [32] where a stabilizing controller is obtained based on the characteristics of the plant, but this model is extended to cascade control systems providing a convenient methodology for this kind of control architecture. The frequency domain tuning parameters, such as the gain margin and phase margin, allow the designer to select the relative stability characteristics of the cascade system with high accuracy, exploiting the properties of these parameters [20]. The main idea of the proposed control technique is based on pole/zero cancellation, taking into account that the IMC–PID controller works as a lead-lag compensator for the inner and outer loop [31] selecting the appropriate gains and time constants for each controller. Finally, the selected controllers provide robust closed loop systems [1] where the unmodeled dynamics do not affect the system response in a wide range of the IMC–PID controller parameters, which allow the designer to select the optimal controller ensuring robust stability and robust performance.

The explanations of the theory and development of this procedure are evinced in the rest of the article. In Sect. 2, a review of the previous related work is presented. In Sect. 3, the design of the internal model controller for parallel process is shown. In Sect. 4, the derivation of the frequency domain tuning formulae based on gain and phase margin is presented. In Sect. 5, a robustness analysis is done. In Sect. 6, simulations and analysis of several examples are developed. Finally, the conclusions of the obtained results are shown in Sect. 7.

2 Related work

As explained in the previous section, there are limited contributions found in the literature related to the proposed technique, but there is some related work for the independent tuning of cascade control systems; most of this work refers to the sequential tuning of each loop. Even when these tuning procedures are not designed for cascade control systems, they are an important theoretical background for this kind of nested architecture. A robust PID controller design for single loop system is found in Wang [31] where a gain and phase margin design procedure is presented based on optimization. Another tuning procedure based on this approach is found in Li [20] where a PID tuning procedure is designed based on nonlinear optimization, taking into account the phase margin, gain margin and bandwidth specifications. The tuning of PID controllers for cascade control systems is mainly done by two strategies: One of these is by the relay method [8] where even when this method is more practical than theoretical, an analytical solution could be approximated as shown [4]; the other strategy is based on the Smith predictor [7].

Some related work can be found in Kaya and Atherton [15], where an optimal controller tuning for cascade systems for FOPTD and SOPTD based on optimality is done. Another approach for the tuning of cascade control systems is shown in Alfaro et al. [2] where a cascade control system tuning technique for 2-DOF systems is designed. Another contribution in this field is shown in Visioli and Piazzi [30] where a disturbance rejection design is developed for the PID tuning of cascade control systems. As mentioned before, another strategy used is the Smith predictor [7], which is a popular control technique for this kind of architecture; in Kaya [14], there is another example of the tuning of cascade control systems with Smith predictor where some control strategies are proposed for this kind of systems.

Some authors propose PID tuning strategies implementing artificial intelligence techniques, which provides a flexible solution for some kinds of systems where the complexity of the problem does not allow the designer to use traditional techniques [24], which explains a tuning technique for cascade control systems using genetic algorithms. This method is useful when the system is too complex due to nonlinearities, but it could be applied in noncomplex systems. Another approach using artificial intelligence is found in Shenglin et al. [26], where an IMC–PID tuning technique for single loop controller with neural network is proposed; in this case, an adaptive controller is tuned with a neural network architecture. In Huang et al. [11], a tuning procedure for cascade systems using intelligent control strategies is shown, and a fuzzy logic tuning procedure is developed with a fuzzy PID-like controller. Even when these strategies are very innovative and useful, the tuning of PID cascade control systems with robustness parameters is still necessary, due to the effectiveness and flexibility of the relative stability parameters; especially, when a transfer function representation of the plant is obtained by experimentation or system identification, reducing the complexity of the problem.

3 Internal model design for cascade process

An IMC for a cascade process as shown in Fig. 1 is necessary before deriving the frequency-based tuning formulae. The IMC controller is based on the models proposed by Dola and Majhi [6], Lee and Park [18], Morari and Zafiriou [21], obtaining the tuning rules for the inner and outer loop of the cascade process.

Fig. 1
figure 1

Cascade control system

In Fig. 1, C 1(s) is the PID controller for the inner loop, G 1(s) is the process plant for the inner loop given as a second order plus time delay model (SOPTD), C 2(s) is the PID controller for the outer loop, G 2(s) is the process plant for the outer loop given as a first order plus time delay (FOPTD) model, including the disturbance inputs as standard cascade architecture.

The equivalent closed loop transfer function for the inner loop is shown in (1)

$$\frac{{Y_{1} }}{{R_{1} }} = \frac{{C_{1} \left( s \right)G_{1} \left( s \right)}}{{1 + C_{1} \left( s \right)G_{1} \left( s \right)}}$$
(1)

The equivalent closed loop transfer function for the outer loop is shown in (2)

$$\frac{{Y_{2} }}{{R_{2} }} = \frac{{C_{2} \left( s \right)\left( {\frac{{Y_{1} }}{{R_{1} }}} \right)G_{2} \left( s \right)}}{{1 + C_{2} \left( s \right)\left( {\frac{{Y_{1} }}{{R_{1} }}} \right)G_{2} \left( s \right)}}$$
(2)

Using the transfer function relations for the inner and outer loops, the respective IMC controllers are derived to satisfy the set point and disturbance rejection requirements.

3.1 IMC controller design for the inner loop

For the inner loop IMC–PID controller design, an optimal controller must be selected in order to minimize the error on a set point change and reduce the effects of the disturbances on the inner loop. The inner loop can be designed without interacting with the performance of the outer loop.

Consider the stable function G i (s) [21], where i = 1 denotes the inner loop transfer function and i = 2 denotes the outer loop transfer function.

$$G_{i} \left( s \right) = G_{{i{\text{A}}}} \left( s \right)G_{{i{\text{M}}}} \left( s \right) \quad i = 1,2$$
(3)

where

$$G_{{i{\text{A}}}} \left( s \right) = e^{{ - s\theta_{i} }} \mathop \prod \nolimits \frac{{ - s + \zeta_{i} }}{{s + \zeta_{i}^{\text{H}} }} \quad i = 1,2\quad\text{Re} (\zeta_{i} ),\,\theta_{i} > 0$$
(4)

H denotes complex conjugate.

G iM(s) has the invertible part of the model, and G iA(s) include all the right half plane zeros and delays of G i (s).

$$\left| {G_{{i{\text{A}}}} \left( {j\omega } \right)} \right| = 1$$
(5)

The feedback controller of the inner loop is given by (6) as defined in Lee and Park [18], Morari and Zafiriou [21] where q 1 is the IMC controller and it is \({\mathcal{H}}_{2}\) optimal for a particular input.

$$C_{1} = \frac{{q_{1} }}{{1 - G_{1} q_{1} }}$$
(6)

Based on the inner loop error, set point and disturbance input, the variable \(\tilde{q}_{1}\) is obtained and then augmented by a filter as shown in (7), (8) and (9)

$$\tilde{q}_{1} = G_{{1{\text{M}}}}^{ - 1} (s)$$
(7)
$$q_{1} = \tilde{q}_{1} f$$
(8)

where the filter

$$f = \frac{1}{{\left( {\lambda_{1} s + 1} \right)^{n} }}$$
(9)

λ 1 and n must be selected to ensure that the IMC controller is proper. λ 1 adjusts the speed of the closed response in the inner loop. Later, this parameter λ 1 will be adjusted according to the gain and phase margin specifications of the inner loop, resulting in a convenient tuning method.

The main objective of the feedback controller of the inner loop is to follow the desired closed loop response [18] obtained from (1) and shown in (10)

$$\frac{{Y_{1} }}{{R_{1} }} = \frac{{G_{{1{\text{A}}}} (s)}}{{\left( {\lambda_{1} s + 1} \right)^{n} }}$$
(10)

Then, the feedback controller of the inner loop is obtained from (6) to meet the requirements of (10)

$$C_{1} (s) = \frac{{G_{1m}^{ - 1} (s)}}{{(\lambda_{1} s + 1)^{n} - G_{{1{\text{A}}}} (s)}}$$
(11)

Based on (11), the IMC–PID controller rules will be derived, obtaining the formulae for the gains and constants of the inner loop feedback controller that will be used in the tuning method based on gain and phase margin specifications.

3.2 IMC controller design of the outer loop

The IMC controller design of the outer loop is done in a similar fashion as the inner loop. The desired closed loop response of the inner loop must be considered in the design of the outer loop controller. Then, the process of the outer loop, as shown in Fig. 1, is given by G p2(s)

$$G_{p2} \left( s \right) = \frac{{Y_{1} }}{{R_{1} }}G_{2} \left( s \right) = \frac{{G_{{1{\text{A}}}} (s)}}{{\left( {\lambda_{1} s + 1} \right)^{n} }}G_{2} \left( s \right)$$
(12)

G p2(s) can be partitioned into two portions, similar as G 1(s), where G p2M(s) has the invertible part of the model and G p2A(s) include all the right half plane zeros and delays of G p2(s).

The feedback controller C 2(s) for the outer loop can be designed without effects on the closed loop performance. C 2(s) is defined by (13)

$$C_{2} = \frac{{q_{2} }}{{1 - G_{p2} q_{2} }}$$
(13)

Based on the outer loop error, set point and disturbance input, the variable \(\tilde{q}_{2}\) is obtained and then augmented by a filter as shown in (14), (15) and [16, 17]

$$\tilde{q}_{2} = G_{{p2{\text{M}}}}^{ - 1} (s)$$
(14)
$$q_{2} = \tilde{q}_{2} f$$
(15)

where the filter

$$f = \frac{1}{{\left( {\lambda_{2} s + 1} \right)^{n} }}$$
(16)

λ 2 is the IMC parameter of the outer loop that will be adjusted later according to the gain and phase margin specifications. The speed of response of the closed loop cascade control system can be adjusted with λ 2, but as it is explained later in this article, there is a minimum interaction between the inner and outer loop.

The feedback controller C 2(s) of the outer loop is designed to follow the desired closed loop response [18] obtained from (2) and given in (17)

$$\frac{{Y_{2} }}{{R_{2} }} = \frac{{G_{{p2{\text{A}}}} (s)}}{{\left( {\lambda_{2} s + 1} \right)^{n} }}$$
(17)

The feedback controller for the outer loop is obtained from (13) following the desired closed loop response given in (17) and the equivalent cascade process set point settings. C 2(s) is given in (18)

$$C_{2} (s) = \frac{{G_{p2m}^{ - 1} (s)}}{{(\lambda_{2} s + 1)^{n} - G_{{p2{\text{A}}}} (s)}}$$
(18)

With C 2(s), the IMC controller for the outer loop can be approximated by a PID controller, obtaining the gains and constants dependent of the IMC parameters which will be used for the PID controller tuning according to the frequency domain specifications.

The disturbance rejection and set point tracking of the inner and outer loop depend on the adjustment of the IMC parameters according to the frequency domain specifications of the controllers C 1(s) and C 2(s).

3.3 IMC–PID controller design

The IMC–PID controller design of the inner loop is done based on the SOPTD model approximation of G 1(s), which can be obtained by the half rule [27]. The SOPTD is described in (19)

$$G_{1} \left( s \right) = \frac{{K_{1} e^{{ - \theta_{1} s}} }}{{(\tau_{1} s + 1)(\tau_{2} s + 1)}}$$
(19)

where θ 1 is the delay of the process, K 1 is the gain, and τ 1 and τ 2 are the respective time constants.

Applying (11) for the feedback controller and using the Taylor series expansion of \(e^{{ - \theta_{1} s}}\) [27] yields the IMC–PID controller for the inner loop C 1(s)

$$C_{1} \left( s \right) = \frac{{(\tau_{1} s + 1)(\tau_{2} s + 1)}}{{K_{1} (\lambda_{1} + \theta_{1} )s}}$$
(20)

where the IMC–PID’s gain and constants of the of the inner loop are given by (21)–(23)

$$K_{c1} = \frac{{\tau_{1} }}{{K_{1} (\lambda_{1} + \theta_{1} )}}$$
(21)
$$\tau_{i1} = \tau_{1}$$
(22)
$$\tau_{d1} = \tau_{2}$$
(23)

The IMC–PID outer loop controller is designed based on the feedback controller for C 2(s) described in (18). For the system G 2(s), an FOPTD model is used approximated by the half rule [27].

$$G_{2} \left( s \right) = \frac{{K_{2} e^{{ - \theta_{2} s}} }}{{(\tau_{3} s + 1)}}$$
(24)

Then, in order to follow the closed loop response of the outer loop, an equivalent transfer function G p2(s) for the outer loop must be obtained from (12) as shown in (25)

$$G_{p2} \left( s \right) = \frac{{K_{2} e^{{ - (\theta_{1} + \theta_{2} )s}} }}{{(\lambda_{1} s + 1)(\tau_{3} s + 1)}}$$
(25)

Applying the portions G p2M and G p2A in the feedback controller for the outer loop C 2(s) described in (18) yields the IMC–PID controller of the outer loop, where the gains and constants can be obtained for the design of the frequency response-based method.

The feedback controller C 2(s) is shown in (26)

$$C_{2} \left( s \right) = \frac{{(\lambda_{1} s + 1)(\tau_{3} s + 1)}}{{K_{2} (\lambda_{2} + (\theta_{1} + \theta_{2} ))s}}$$
(26)

where the gain and constants of the IMC–PID controller of the outer loop are as follows:

$$K_{c2} = \frac{{\lambda_{1} }}{{K_{2} (\lambda_{2} + (\theta_{1} + \theta_{2} ))}}$$
(27)
$$\tau_{i2} = \lambda_{1}$$
(28)
$$\tau_{d2} = \tau_{3}$$
(29)

Based on the IMC–PID controllers defined for the inner and outer loop, the tuning rules with gain and phase margin specifications can be derived because of the relations of the controller parameters in the frequency domain as explained in the next section.

4 Tuning procedure for cascade process based on gain and phase margin specifications

As explained in the previous section, there are limited tuning methods for cascade process described in the literature and even less, those related to frequency domain specifications. IMC for cascade process offers some advantages over other methods for the tuning of cascade systems, due to the flexibility of the IMC parameters. For this reason, their frequency domain characteristics are implemented to get a flexible tuning method.

This tuning method is based on the gain and phase margin properties of feedback systems, given by the Nyquist theorem and according to the crossover frequencies of the inner and outer loop. Applying these properties and analyzing the maximum sensitivity on each loop, a fine tuning formulae can be obtained for the inner and outer loop, adjusting the IMC parameters based on the frequency response parameters. In the following subsections, the derivation of the tuning formulae for the inner and outer loop will be explained.

4.1 Derivation of the tuning procedure for the inner loop

The frequency domain properties of the inner loop [9, 10, 20] for the gain and phase margins are defined in (30)–(33), where i = 1 denotes the controller and transfer function for the inner loop and i = 2 denotes the controller and plant of the outer loop.

$$\frac{1}{{\left| {C_{i} \left( {j\omega_{pi} } \right)G_{i} (j\omega_{pi} )} \right|}} = A_{mi}$$
(30)
$$\arg \left| {C_{i} \left( {j\omega_{pi} } \right)G_{i} (j\omega_{pi} )} \right| = - \pi$$
(31)
$$\left| {C_{i} \left( {j\omega_{gi} } \right)G_{i} (j\omega_{gi} )} \right| = 1$$
(32)
$$\arg \left| {C_{i} \left( {j\omega_{gi} } \right)G_{1} (j\omega_{gi} )} \right| + \pi = \phi_{mi}$$
(33)

where A m1 is the gain margin of the inner loop, ϕ m1 is the phase margin of the inner loop, and ω p1 and ω g1 are the crossover frequencies for the inner loop.

The PID feedback controller for the inner loop has the form defined in (20), and the plant transfer function G 1(s) is defined in (19)

$$C_{1} \left( s \right) = K_{c1} \left( {1 + \frac{1}{{sT_{i1} }}} \right)(1 + s\tau_{d1} )$$
(34)

The obtained formulae for the IMC tuning parameter and the crossover frequencies ω p1 and ω g1 for the inner loop are given by (60) and (61) in Appendix 1. The IMC parameter in terms of the gain margin A m1 is given by

$$\lambda_{1} = \frac{{A_{m1} }}{{\omega_{p1} }} - \theta_{1}$$
(35)

The parameter λ 1 is found according to the desired crossover frequency and gain margin. The desired phase margin is obtained in accordance with the sensitivity of the inner loop (63) as shown in Appendix 1, where the derivations of the controller parameters are described.

The requirements for the IMC–PID tuning method of the inner loop are a phase margin A m1 and a phase margin ≥ϕ m1, Appendix 1.

4.2 Derivation of the tuning procedure for the outer loop

The derivation of the tuning procedure for the outer loop is done considering the frequency domain properties of the gain and phase margins for the equivalent close loop process. This frequency domain tuning method for the outer loop allows selecting an independent IMC parameter value from the inner loop, obtaining a very accurate frequency response for the cascade process. This is a very important consideration related to the robustness of the cascade system that is very difficult to manipulate with other control techniques for similar control systems or even sequential tuning.

In order to design the tuning method for the outer loop, the equivalent process G p2(s) (25) must be considered. The frequency domain properties of the outer loop [9, 10, 20] for the gain and phase margin are defined by (30)–(33), where i = 2 denotes the controller and plant of the outer loop.

A m2 is the gain margin of the outer loop, ϕ m2 is the phase margin of the outer loop, and ω p2 and ω g2 are the crossover frequencies.

The PID controller for the outer loop C 2(s) is represented by (36)

$$C_{2} \left( s \right) = K_{c2} \left( {1 + \frac{1}{{sT_{i2} }}} \right)(1 + s\tau_{d2} )$$
(36)

The IMC parameter for the outer loop λ 2 is shown in (37) and the respective crossover frequencies ω p2 and ω g2 are shown in (72) and (73) in Appendix 2.

$$\lambda_{2} = \frac{{A_{m2} }}{{\omega_{p2} }} - (\theta_{1} + \theta_{2} )$$
(37)

The IMC parameters λ 1 and λ 2 are now adjusted according to the desired gain margins and phase margins at a specified crossover frequencies. These IMC parameters give the required values of the gains and constants of the feedback controllers, adjusted to give the required frequency response for the inner and outer loop without tuning or detuning the feedback controllers of the cascade process sequentially.

5 Robustness analysis

In the previous section, the sensitivity of the closed loop system for the inner and outer loop was used to establish a bound for the phase margin for each loop. The sensitivity function provides information about the robustness of the control systems in terms of the relative stability, especially, when the system is tuned with frequency domain specifications. As it was explained before, the IMC parameters for each loop are adjusted based on the gain and phase margin specifications for each loop; therefore, the robustness analysis is done to test the robust stability and robust performance on each loop for different gain margins specifications. The IMC controller tuning based on frequency domain specifications is analyzed due to uncertainties of the model that interfere the performance of the system.

The complementary sensitivity function of the inner loop is used in the robust stability analysis [21, 31, 35], and it is defined in (38)

$$T_{1} \left( s \right) = \frac{{C_{1} \left( s \right)G_{1} (s)}}{{1 + C_{1} \left( s \right)G_{1} (s)}}$$
(38)

For the feedback controller C 1(s) and process plant G 1(s), the IMC controller gains and constants are given by the formulae in the previous section, and the IMC parameter is adjusted according to the frequency domain specifications.

The inner loop feedback system is robustly stable [21, 35] if

$$||T_{1} (j\omega )\bar{\ell }_{m1} ||_{\infty } = \mathop {\sup }\limits_{\omega } \left| {T_{1} (j\omega )\bar{\ell }_{m1} } \right| < 1$$
(39)

Where the uncertainty \(\bar{\ell }_{m1}\)is given by the set of stable plants described by:

$$\left| {\frac{{G_{1} \left( {j\omega } \right) - \tilde{G}_{1} \left( {j\omega } \right)}}{{\tilde{G}_{1} \left( {j\omega } \right)}}} \right| < \bar{\ell }_{m1} (\omega )$$
(40)

where \(\tilde{G}_{1} \left( {j\omega } \right)\) is the nominal plant of the inner loop.

Robust stability establishes that a given controller C 1(s) stabilizes the nominal plant \(\tilde{G}_{1} \left( {j\omega } \right)\) if the condition (39) is met.

For the outer loop, the robust stability is also analyzed, obtaining a complementary sensitivity function with the equivalent process model G p2(s) and the feedback controller C 2(s).

$$T_{2} \left( s \right) = \frac{{C_{2} \left( s \right)G_{p2} (s)}}{{1 + C_{2} \left( s \right)G_{p2} (s)}}$$
(41)

The IMC parameter is adjusted according to the frequency domain specifications of the outer loop and the equivalent cascade process.

The robust stability bound for the outer loop is given by:

$$||T_{2} (j\omega )\bar{\ell }_{m2}||_{\infty } = \mathop {\sup }\limits_{\omega } \left| {T_{2} (j\omega )\bar{\ell }_{m2} } \right| < 1$$
(42)

where the uncertainty \(\bar{\ell }_{m2}\) is given by the set of stable plants described by:

$$\left| {\frac{{G_{p2} \left( {j\omega } \right) - \tilde{G}p_{2} \left( {j\omega } \right)}}{{\tilde{G}_{p2} \left( {j\omega } \right)}}} \right| < \bar{\ell }_{m2} (\omega )$$
(43)

\(\tilde{G}_{p2} \left( {j\omega } \right)\) is the nominal plant of the inner loop.

In Figs. 2 and 3, the robust stability bound plots for the inner and outer loop are shown. In Fig. 2 is plotted the robust stability bound for the inner loop with different values of the delay constant θ 1 and the IMC parameter λ 1 adjusted by the desired gain margin range. As can be noticed, the minimum peaks occur on the relatively low values of λ 1 which is proportional to the gain margin of the inner loop A m1. Analyzing Fig. 2, the range \(\frac{{\lambda_{1} }}{{\theta_{1} }} > 0.3\) and the gain margin A m1 is the allowed region where stable controllers for the nominal process of the type \(\bar{\ell }_{m1}\), can be obtained.

Fig. 2
figure 2

Robust stability margin for the inner loop

Fig. 3
figure 3

Robust stability margin for the outer loop

The robust stability bound for the outer loop with different values of θ 1 and θ 2 is shown in Fig. 3. The IMC parameter λ 2 is adjusted according to the gain margin specification of the outer loop A m2, and as shown in Fig. 3, there is a minimum interaction on the robust stability of the inner and outer process due to the independence of their IMC parameters λ 1 and λ 2. The minimum peaks for robust stability of the outer loop occur at relative low values of λ 2, and the range is approximately \(\frac{{\lambda_{2} }}{{(\theta_{1} + \theta_{2} )}} > 0.8\), which depends on the specification parameter A m2. The robust stability bounds for the outer loop are smaller than the robust stability bounds for the inner loop, but for both loops, they are optimal and provide robustly stable controllers for the cascade process under uncertainties.

Although robust stability is the minimum requirement for the cascade systems under uncertainties, the robust performance of the inner and outer loop is considered for this analysis.

For the inner loop, the bound that guarantees robust performances for an \({\mathcal{H}}_{\infty }\) PID controller is [21, 35]

$$\left| {T_{1} (j\omega )\bar{\ell }_{m1} } \right| + \left| {W_{1} (j\omega )S_{1} (j\omega )} \right| < 1$$
(44)

where \(S_{1} (j\omega )\) is the sensitivity function defined in (63) (Appendix 1) and \(W_{1} (j\omega )\) is a weighting function that in this case, a Butterworth filter is selected as shown in (45)

$$W_{1} \left( s \right) = \frac{0.4208s - 0.4208}{s + 0.1584}$$
(45)

The closed loop system met the following condition

$$||W_{1} (j\omega )S_{1} (j\omega)||_{\infty } = \mathop {\sup }\limits_{\omega } \left| {W_{1} (j\omega )S_{1} (j\omega )} \right| < 1$$
(46)

where W 1(s) is selected based on the \({\mathcal{H}}_{2}\) optimal sensitivity function with a specific input.

Robust performance of the inner loop assumes robust stability of the inner loop, and the robust performance bound depends on the IMC parameter λ 1 adjusted by the gain margin specifications.

The bound that guarantees robust performance for the outer loop is

$$\left| {T_{2} (j\omega )\bar{\ell }_{m2} } \right| + \left| {W_{2} (j\omega )S_{2} (j\omega )} \right| < 1$$
(47)

where \(S_{2} (j\omega )\) is the sensitivity function defined in Appendix 2 (75) and \(W_{2} (j\omega )\) is a weighting function, and it is selected as a Butterworth filter as shown in (48)

$$W_{2} \left( s \right) = \frac{0.5792s - 0.5792}{s + 0.1584}$$
(48)

The closed loop system met the following condition

$$W_{2} (j\omega )S_{2} (j\omega )_{\infty } = \mathop {\sup }\limits_{\omega } \left| {W_{2} (j\omega )S_{2} (j\omega )} \right| < 1$$
(49)

In Fig. 4, the robust performance bound for the inner loop is shown, for different values of λ 1 and the time delay constant θ 1. The minimum robust performance peaks are found for relatively high values of λ 1, in the range of \(\frac{{\lambda_{1} }}{{\theta_{1} }} > 1.5\), as it depends on the gain margin specification of the inner loop. It can be noticed the relation between the robust stability and robust performance, because the robust performance depends on the robust stability bound.

Fig. 4
figure 4

Robust performance bound for the inner loop

In Fig. 5, the robust performance for the outer loop is shown, for different values of λ 2 and the time delay constants θ 1 and θ 2. The minimum robust performance bounds for the outer loop occur at relatively low values of λ 2 depending on the gain margin specifications of the inner loop, in the range of \(\frac{{\lambda_{2} }}{{(\theta_{1} + \theta_{2} )}} > 0.8\). As in the case of robust stability, the robust performance bounds for the inner and outer loops are independent and do not mutually affect their performance. The robust performance bound for the outer loop is slightly lower than the bounds for the inner loop obtaining a better equivalent cascade process performance with uncertainties.

Fig. 5
figure 5

Robust performance bound for the outer loop

It is clear that with this tuning method, it is possible to design controllers for the inner and outer loop, which meets the robustness requirements. Basically, selecting the appropriate gain and phase margin specifications for both loops according to the robustness requirements related to the IMC parameters, the specified robust controllers for both loops are obtained.

6 Numerical examples and discussion

In order to verify the performance of the proposed tuning procedure, an illustrative example is shown in this section with an analysis of the results and the employed methodology.

In this example, the proposed method is compared with other frequency domain-based methods, and the objective of this example is to implement three tuning procedures and the proposed one to test their performance when a desired set point needs to be tracked and when there are disturbances on the system. Then, a comparison of the three tuning methods for cascade process [4, 25, 29] with the proposed procedure is done examining their system response, robustness and relative stability.

The transfer functions for the inner and outer loops are as follows:

$$G_{1} \left( s \right) = \frac{100}{{\left( {S + 1} \right)\left( {0.001S + 1} \right)^{2} }}$$
(50)
$$G_{2} \left( s \right) = \frac{50}{{\left( {0.12S + 1} \right)\left( {0.75S + 1} \right)}}$$
(51)

Approximated by a SOPDT and FOPDT models, respectively, using the half rule

$$G_{1} \left( s \right) = \frac{100}{{\left( {S + 1} \right)\left( {0.0015S + 1} \right)}}e^{ - 0.0005}$$
(52)
$$G_{2} \left( s \right) = \frac{20}{{\left( {0.4950S + 1} \right)}}e^{ - 0.375}$$
(53)

The IMC controller used in the benchmark of this example use the IMC formulae from Morari and Zafiriou [21] and is tuned according to the robustness chart as mentioned [29]. The other tuning procedures are explained in Sanchis et al. [25] and Åström and Hägglund [4] where the design parameters for the cascade control system are shown in Tables 1 and 2 for the inner and outer loop, respectively.

Table 1 Desired and obtained specifications of the inner loop
Table 2 Desired and obtained specifications of the outer loop

The desired gain and phase margin with the proposed method for the inner and outer loop are shown in Tables 1 and 2.

The integral of the time-weighted error (ITAE) is implemented to measure the error signal when a set point has to be followed; therefore, the performance of every controller is analyzed. This performance index is shown in (54)

$${\text{ITAE}} = \mathop \int \limits_{0}^{\infty } t\left| {e(t)} \right|{\text{d}}t$$
(54)

The resulting step response for the proposed and the other tuning procedures [4, 25, 29] is shown in Fig. 6 where the performance of the proposed method is better due to the smaller overshoot and settling time. The disturbance response for d 1 and d 2 are shown in Fig. 7 and Fig. 8 where the system tuned with the proposed method has a smaller overshoot and better performance in comparison with the other tuning procedures as shown in the following analysis. The obtained IMC parameters for the inner and outer loop λ 1 = 0.0455 and λ 2 = 0.1842 then the controller parameters are found by (21)–(23) and (27)–(29), respectively.

Fig. 6
figure 6

Step response

Fig. 7
figure 7

Closed loop response when a disturbance is applied on d1

Fig. 8
figure 8

Closed loop response when a disturbance is applied on d2

In Tables 1 and 2, the resulting gain margin and phase margin for the inner and outer loop are shown, where the proposed method gives more accurate results of gain and phase margin for the inner and outer loop in comparison with the other tuning procedures shown in this example. Although the method [29] yields the maximum sensitivity result for the outer closed loop system, the proposed method yields a smaller ITAE, as shown in Table 3, and the outer closed loop system has a small sensitivity M s in comparison with the other tuning procedures, as confirmed in Fig. 9. This relation between the ITAE and the sensitivity M s is very common in different control systems; this means that a higher sensitivity implies a lower ITAE and vice versa, as shown in Tables 1, 2 and 3. It is important to notice that the tuning procedure of Åström and Hägglund [4] and Sanchis et al. [25] is precise in the frequency response specifications, but they yield a higher ITAE, as shown in Table 3, than the other tuning procedures.

Table 3 ITAE for the cascade control system of example 1
Fig. 9
figure 9

Robustness analysis of the overall cascade process

7 Conclusions

In this paper, an IMC tuning method based on gain and phase margin specifications for cascade control systems has been presented. The gain and phase margin specifications for the inner and outer loop are selected independently by the designer, and there is a negligible interaction between the closed loop characteristics of each loop due to the adjustment of the IMC parameters according to the frequency domain specifications. One of the characteristics of the frequency domain methods for single loops is that the system can be designed in terms of robustness specifications, with this proposed tuning method, the cascade control process can now be tuned with robustness properties according to their sensitivity and frequency domain specifications, and as it was shown in this article, it provides excellent robust stability and robust performance bounds.

There are limited tuning methods found in the literature for cascade control systems, and sequential tuning is the recommended procedure for this kind of systems. Some methods, especially frequency domain-based methods, are suitable for cascade systems, but there are other methods which are difficult to apply. The tuning method proposed in this paper yields very accurate frequency domain specifications, provides a wide range of gain and phase margin values before the cascade system becomes unstable and has low performance index values for the system response and excellent disturbance rejection in comparison with other tuning methods.

Future work aims toward the design of PID controllers with other control techniques in the frequency domain, like loop shaping, for cascade control systems. Apart from this strategy, future research will be oriented to the analysis and design of PID controllers with robust specifications like sensitivity-based controllers for cascade control systems. Finally, the analysis of other effects on PID cascade control systems will be studied, like the effects on the system with saturated inputs and other nonlinearities that can be found in electrical, mechanical and other kind of systems.