Chapter 13

# 13.2 Lead Controller

A transfer function of the lead compensator is a first order combination of a real pole block and a real zero block, with an adjustable gain:

 $G_{c}(s)=K_{c}\cdot\frac{\tau s +1}{\alpha\tau s +1} = \frac{\alpha_1 s + \alpha_0}{b_1 s + 1}$ Equation 13‑1

$a_0 = K_c$ corresponds to the DC gain of the controller, and $\alpha < 1$ (the zero is closer to Im axis than the pole). Zero is at: $s_1 = - \frac{a_0}{a_1} = - \frac{1}{\tau}$ Pole is at: $s_2 = - \frac{1}{b_1} = - \frac{1}{\alpha\tau}$ In the frequency domain, the two corner frequencies are: $\omega_1 = \frac{1}{\tau}$ , $\omega_2 = \frac{1}{\alpha\tau}$ The magnitude is described as:

 $M(\omega)=K_c \cdot \frac{\sqrt{{(\omega\tau)}^2 + 1}}{\sqrt{{(\omega\alpha\tau)}^2 + 1}}$ Equation 13‑2

The phase is described by Equation 13‑2 and $\varphi_{max}$ can be calculated from $\frac{d\varpi}{d\omega}=0$. Resulting in Equation 13-4.

 $\varphi (\omega) = \tan^{-1}\omega\tau - \tan^{-1}\omega\alpha\tau$ Equation 13‑3
 $\varphi_{max} = \sin^{-1}(\frac{1-\alpha}{1+\alpha})$ Equation 13‑4

Magnitude and phase plots are shown in Figure 13-2.

The maximum of phase lead $\varphi_{max}$ occurs at the midpoint frequency as shown in Equation 13‑5:

 $\omega_0 = \sqrt{\omega_1 \omega_2} = \frac{1}{\sqrt{\alpha}\cdot \tau}$ Equation 13‑5

At this frequency the compensator gain is:

 $M(\omega_0) = K_c \frac{\sqrt{{(\omega_0\tau)^2} + 1}}{\sqrt{{(\omega_0\alpha\tau)^2} + 1}} = K_c \frac{\sqrt{{(\frac{1}{\sqrt{\alpha} \tau}\cdot\tau)^2} + 1}}{\sqrt{{(\frac{1}{\sqrt{\alpha} \tau}\cdot\alpha\tau)^2} + 1}} = K_c \frac{\sqrt{{(\frac{1}{\sqrt{\alpha}})^2} + 1}}{\sqrt{{(\frac{1}{\sqrt{\alpha} }\cdot\alpha)^2} + 1}} = K_c \frac{\sqrt{\frac{1}{\alpha} + 1}}{\sqrt{\alpha +1}} = K_c\frac{\sqrt{\frac{1+\alpha}{\alpha}}}{\sqrt{\alpha +1}}$ $M(\omega_0) = K_c \frac{1}{\sqrt{\alpha}}$ Equation 13‑6

At the high frequency $\omega \rightarrow \infty$, in practical terms, when $\omega >> \frac{1}{\alpha\tau}$ the compensator gain is:

 $M(\omega) = K_c \frac{\sqrt{{(\omega\tau)^2} + 1}}{\sqrt{{(\omega\alpha\tau)^2} + 1}}$ $\omega \rightarrow \infty$ $M(\omega) \approx K_c \frac{\sqrt{{(\omega\tau)^2}}}{\sqrt{{(\omega\alpha\tau)^2}}} = K_c$ $M(\infty)=K_c\cdot \frac{1}{\alpha}$ Equation 13‑7

How to use the Lead Controller:

• Use the phase lead available from the lead parameter $\Phi_m$ to correct deficiencies in the Phase Margin
• Try to increase BOTH $\omega_{cp}$ and $K_{DC(open)}$
• Adjust as required

### 13.2.1 Simplified Lead Controller Design

For the simplified design, this form of the Lead Compensator is more convenient:

 $G_c(s) = K_c \cdot \frac{\tau s +1}{\alpha \tau s +1}$ Equation 13‑8

Zero is at $s_1 = - \frac{1}{\tau}$, pole is at $s_2 = - \frac{1}{\alpha\tau}$. The design will involve first making a decision on what the compensated system phase margin $\Phi_m$ should be and at what frequency $\omega_{cp}$ it should occur. Recall that the phase margin is related to the equivalent closed loop damping ratio $\zeta$, which in turn determines the percent overshoot of the step response:

$\zeta = 0.01\cdot \Phi_m$

$PO = 100\cdot({e^{\frac{-\zeta\pi}{\sqrt{1-\zeta^2}}}})$

Dynamic tracking requirements (PO spec) will then be translated into the required $\Phi_m$. Also, recall that the crossover frequency $\omega_{cp}$ relates to the closed loop model frequency  which in turn affects the closed loop step response settling time:

$T_{settle(\pm5\%)}=\frac{3}{\zeta\omega_n}$

$T_{settle(\pm2\%)}=\frac{4}{\zeta\omega_n}$

Lead Compensator adds phase lead at the mid-point frequency $\omega_{0}$ as seen in Figure 13‑2. Dynamic tracking requirements (Settling Time spec) will then be translated into the required $\omega_{cp}$. Once $\omega_{cp}$ is decided, we will assume the maximum phase lift will be placed at this frequency to maximize the Phase Margin:

 $\omega_{cp} = \omega_0$ Equation 13‑9

Once $\Phi_{m} = \omega_0$ is decided, calculate the compensator parameter  from the maximum of the phase lead needed:

 $\varphi_{max}=\sin^{-1}({\frac{1-\alpha}{1+\alpha}})$ Equation 13‑10

The compensator time constant $\tau$ can now be calculated:

 $\omega_{cp} = \omega_{0} = \frac{1}{\sqrt{\alpha}\cdot\tau}$ Equation 13‑11

Remember that the additional magnitude added by the lead component at the mid-point frequency is equal to $M(\omega_0)=K_c\frac{1}{\sqrt{\alpha}}$, as shown in Figure 13‑2. This will shift the crossover frequency $\omega_{cp}$ from its intended position at $\omega_{0}$, and will affect the Phase Margin. To re-adjust the crossover frequency, change the DC gain of the controller, $K_{c}$. Note that the resulting open loop gain may or may not meet the error specification.

NOTE:

This design is simple but does not allow meeting the closed loop steady state error specification directly. When the system is Type 1 and the step error is of no concern, this approach works best. Notice that since the DC gain of the controller is adjusted last, to achieve at the same time an improvement in the system tracking as well may require many trial-and-error iterations. This may prove tedious, or impossible, and so this simple approach should be mainly used if improving the tracking accuracy is not important, for example, when the system already has high error constants and therefore a good steady state tracking. This approach allows meeting the design requirements w.r.t. damping (percent overshoot) and speed (settling time) with relatively few calculations.

### 13.2.2 Analytical Lead Controller Design

When achieving the DC tracking accuracy is as important as the dynamic tracking, a different, more analytical approach is recommended, which will allow you to find a lead network with a specific DC gain, that will create a specified Phase Margin $\Phi_{m}$ at a specified crossover frequency, $\omega_{cp}$ . Recall that the transfer function of the lead compensator is:

$G_c(s)=\frac{a_1s+a_0}{b_1+1}$

Coefficient $a_{0}$ corresponds to the DC gain of the controller. Zero is at $s_1 = -\frac{a_0}{a_1}$, pole is at $s_2 = -\frac{1}{b_1}$, as shown in Figure 13‑1. Dynamic tracking requirements dictate what values of the Phase Margin $\Phi_m$ and of the crossover frequency $\omega_{cp}$ should be chosen. Ideally, we want to have the specified Phase Margin $\Phi_m$ to occur at the specified frequency $\omega_{cp}$. Note that the new crossover frequency $\omega_{cp}$ should be chosen to be larger than the uncompensated one. The condition is written as:

 $G_c(j\omega_{cp})GH(j\omega_{cp}) = 1\angle (-180^\circ + \Phi_m)$ $\frac{a_1j\omega_{cp} + a_0}{b_1j\omega_{cp}+1}GH(j\omega_{cp}) = 1\angle (-180^\circ + \Phi_m)$ Equation 13‑12

The above complex equation results in two conditions (magnitude and phase), with two unknowns, $a_{1}$ and $b_{1}$:

 $\left | \frac{a_1j\omega_{cp} + a_0}{b_1j\omega_{cp}+1}GH(j\omega_{cp}) \right | = 1$ $\tan^{-1}(\frac{a_1j\omega_{cp}}{a_0})-\tan^{-1}(b_1j\omega_{cp}) = -180^{\circ}+\Phi_m$ Equation 13‑13

The two equations can be then solved. It is convenient to define the following “Phase Lift” angle $\theta$:

 $\theta = -180^{\circ} + \Phi_m - \angle G(j\omega_{cp})$ Equation 13‑14

The Lead Controller coefficients are then calculated as:

 $a_1 = \frac{1 - a_0\cdot\left | G(j\omega_{cp}) \right |\cdot\cos{\theta}}{\omega_{cp}\cdot\left | G(j\omega_{cp}) \right |\cdot\sin{\theta}}$ $b_1 = \frac{\cos{\theta} - a_0 \cdot \left | G(j\omega_{cp}) \right |}{\omega_{cp}\cdot\sin{\theta}}$ Equation 13‑15

Observation I:

Note that although the solution to these equations will always exist, not all solutions will be acceptable. If $a_{1}$ is negative, the Lead Controller will be non-minimum phase. If $b_{1}$ is negative, the Lead Controller is unstable. If either of these cases occurs, the initial choices of $\Phi_{m}$, $\omega_{cp}$ have to be modified until positive solutions are found.

Observation II:

Note that if $\omega_{cp}$ for the compensated system is chosen to be less than that of the uncompensated system, we will end up with a Lag Controller transfer function, shown in Equation 13‑16, where $a_0 = K_c$ corresponds to the DC gain of the controller, and $a<1$ (i.e. the controller pole is closer to Im axis than the zero).

## License

Introduction to Control Systems Copyright © by Malgorzata Zywno is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, except where otherwise noted.