Chapter4 Handout
Chapter4 Handout
Fall 2021/2022
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 1 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Table of Contents
2 z-Plane Specifications
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 2 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Introduction
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 3 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Table of Contents
2 z-Plane Specifications
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 4 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
In some control applications, the desired transfer function of the closed-loop system is
known from the design specification.
This approach to design is known as synthesis.
Clearly, the resulting controller must be realizable for this approach to yield a useful
design.
Disturbances
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 5 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
This design calls for a D(z) that will cancel the plant effects and add whatever is necessary to
give the desired result.
Note that the controller D(z) must be realizable that is the degree of numerator must not
exceed that of the denominator.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 6 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
As noticed, the step response performance indices are functions of (ζ, ωn ). Also (ζ, ωn )
determine system poles:
p
s = −ζωn ± jωn 1 − ζ 2 = −ζωn ± jωd
placing the closed-loop poles at placing locations, we can shape the response of the system
and achieve desired time response characteristics.
The pole placement approach is applicable for both continuous-time systems and
discrete-time systems.
▶ thanks to the mapping between s- and z-plane poles (z = e sT ) provided that the sampling
interval is chosen sufficiently small.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 7 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Design a controller
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 8 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Example
The open-loop transfer function of a system together with a ZOH is given by:
0.03(z + 0.75)
G (z) = , T = 0.2 s
z 2 − 1.5z + 0.5
Design a digital controller so that for the closed-loop system:
percent overshoot is 9.5%,
settling time (2%) is 2 sec,
steady-state error to a step input is zero and to a ramp input is 0.2.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 9 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 10 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
N(z)
H(z) =
(z − 0.577 − j0.341)(z − 0.577 + j0.341)
N(z)
= 2
z − 1.154z + 0.449
Before we proceed, we must determine the degree of N(z). This degree must be ≤ 2 so
that H(z) is realizable.
If we choose N(z) to be exactly of order 2, this means that the closed-loop will start its
response instantaneously without delay.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 11 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Also, from the given specifications, it is required that, for a unit-ramp input, ess = 0.2:
ess = lim 1 − z −1 R(z) [1 − H(z)]
z→1
Tz
= lim 1 − z −1 [1 − H(z)]
z→1 (z − 1)2
0.2 b1 z + b0 0
= lim 1− 2 =
z→1 z − 1 z − 1.154z + 0.449 0
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 16 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Rules to follow:
H(z) must have a zero at infinity of the same order as the zero of G (z) at infinity
1 − H(z) must contain as zeros all the poles of G (z) that are outside the unit circle.
H(z) must contain as zeros all the zeros of G (z) that are outside the unit circle.
For a type 1 system with velocity constant Kv , we must have a zero steady-state error to
a step input, that is:
z
e(∞) = lim (z − 1) [1 − H(z)] = 0 ⇒ H(1) = 1
z→1 z −1
The error to a unit ramp must be 1/Kv , that is (using L’Hôpital rule):
Tz 1 dH 1
e(∞) = lim (z − 1) 2
[1 − H(z)] = ⇒ −T =
z→1 (z − 1) Kv dz z=1 Kv
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 17 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Table of Contents
2 z-Plane Specifications
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 18 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 21 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Example
Indicate on a z-plane map the region of acceptable closed-loop poles for the antenna design of
previous chapter.
Table of Contents
2 z-Plane Specifications
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 26 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 27 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Example
Obtain the root locus plot and the critical gain for
the first-order type 1 system with loop gain
1
L(z) =
z −1
Example
Obtain the root locus plot and the critical
gain for the second-order type 1 system with
1
loop gain L(z) =
(z − 1)(z − 0.5)
Table of Contents
2 z-Plane Specifications
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 30 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Introductory Example
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 31 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Procedure:
Because of the similarity of s-domain and z-domain root loci, Procedures 1, 2, and 3 seen
in the previous chapter are applicable with minor changes in the z-domain.
However, the following equation is no longer valid because the real and imaginary
components of the complex conjugate poles are different in the z-domain:
ωd
a= + ζωn
tan(θc )
A digital controller with a zero and no poles is not realizable, and a pole must be added
to the controller.
To minimize the effect of the pole on the time response, it is placed at the origin.
This is analogous to placing an s-plane pole far in the LHP to minimize its effect.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 34 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Im[zzcl ]
a = Re[zzcl ] −
tan(θa )
e −ζωn T sin(ωd T )
= e −ζωn T cos(ωd T ) −
tan(θa )
where θa is the angle of the controller zero. θa is given by
θa = θc + θp = θc + θzcl
θzcl is the angle of the controller pole and θc is the controller angle contribution at the
closed-loop pole location.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 35 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Example
Design a digital controller for the DC motor position control system, where the (type 1)
1
analog plant has the transfer function G (s) =
s(s + 1)(s + 10)
for a settling time of less than 1 s and a damping ratio of 0.7.
For a sampling period of 0.01 s, the plant, ADC, and DAC have the z-transfer function
(z + 0.2606)(z + 3.632)
G (z) = 1.6217 × 10−7
(z − 1)(z − 0.9048)(z − 0.99)
Using a PD controller with pole-zero cancellation improves the system transient response
z − 0.99
C (z) = K
z
The design meets the desired specifications with a gain of 4,580.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 37 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
The time
Digital response
Control shows
System Design (ULFG) less than 5%Control
overshoot
Systems II –with
Chaptera4 fast time response
Fallthat meets all
2021/2022 39 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Table of Contents
2 z-Plane Specifications
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 40 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
The frequency response methods for continuous control system design were developed from
the original work of Bode (1945) on feedback-amplifier techniques. Their attractiveness for
design of continuous linear feedback systems depends on several ideas:
1 The gain and phase curves for a rational transfer function can be easily plotted by hand.
2 If a physical realization of the system is available, the frequency response can be
measured experimentally without the necessity of having a mathematical model at all.
3 Nyquist stability criterion can be applied, and dynamic response specifications can be
readily interpreted in terms of gain and phase margins, which are easily seen on the plot
of log gain and phase-versus-log frequency.
4 The system error constants, mainly Kp and Kv , can be read directly from the
low-frequency asymptote of the gain plot.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 41 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Example
Plot the discrete frequency response corresponding to the plant transfer function
1
G (s) =
s(s + 1)
sampling with a zero order hold at T = 0.2, 1, and 2 seconds and compare with the
continuous response
0.018731(z + 0.9355)
G1 (z) = , T = 0.2 s
(z − 1)(z − 0.8187)
0.36788(z + 0.7183)
G2 (z) = ,T = 1 s
(z − 1)(z − 0.3679)
1.1353(z + 0.5232)
G3 (z) = ,T = 2 s
(z − 1)(z − 0.1353)
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 43 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
The accuracy of this approximation for sample rates is up to ωT = π/2, which corresponds to
frequencies up to 1/4 the sample rate.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 44 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Gain Margin
the Gain Margin (GM) is the factor by which the gain can be increased before causing the
system become unstable, and is usually the inverse of the magnitude of D(z)G (z) when its
phase is 180◦ .
Phase Margin
The Phase Margin (PM) is the difference between −180◦ and the phase of D(z)G (z) when its
amplitude is 1. The PM is a measure of how much additional phase lag or time delay can be
tolerated in the loop before instability results.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 45 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
The steady-state error constants for polynomial inputs for discrete systems are given by
Type 0 system Kp = lim D(z)G (z)
z→1
(z − 1)D(z)G (z)
Type 1 system Kv = lim
z→1 Tz
For Type 0 system, the magnitude frequency-response plot will show a constant value on
the low-frequency asymptote which is equal to Kp .
For Type 1 system, the magnitude of D(z)G (z) at ω = 1 on the low-frequency asymptote
is equal to Kv .
The evaluation of the low-frequency asymptote of D(z)G (z) at ω = 1 yields Kv .
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 47 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Example
Use the discrete Bode plot to determine
the Kv for the antenna system with the
controller
z + 0.9672
Gc (z)G (z) =0.0484
(z − 1)(z − 0.9048)
z − 0.8
× (6)
z − 0.5
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 48 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
For continuous systems, the phase margin, PM, is related to the damping ratio, ζ, for a
second order system by the approximate relation ζ ≈ PM/100.
The PM from a discrete z-plane frequency response analysis carries essentially the same
implications about the damping ratio of the closed-loop system as it does for continuous
systems.
For second-order systems without zeros, the relationship between ζ and PM shows that
the approximation of ζ ≈ PM/100 is equally valid for continuous and discrete systems
with reasonably fast sampling.
For higher order systems, the damping of the individual modes needs to be determined
using other methods.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 49 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
The magnitude of the loop gain is unity at the gain crossover frequency:
hp i1/2
ωgc = ωn 4ζ 4 + 1 − 2ζ 2
Next, we consider the phase margin and derive
2ζ
PM = 180◦ + G (jωgc ) = tan−1 hp
i1/2
4ζ 4 + 1 − 2ζ 2
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 53 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
This transforms the transfer function of a system from the z-plane to the w -plane.
The w -plane is a complex plane whose imaginary part is denoted by v . To express the
relationship between the frequency ω in the s-plane and the frequency v in the w -plane, we let
T ωT
s = jω and therefore z = e jωT . After some calculations, we have w = jv = j tan
2 2
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 54 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 55 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
The system is a Type 0 system. To cancel the steady-state error, an integrator should be
added to the system (pole at z = 1).
A simple approach is to cancel the dominant pole at z = 0.9802.
Increase the gain to attain the required gain crossover frequency.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 57 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 58 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Example
1
Consider the DC motor speed control system with transfer function G (s) = .
(s + 1)(s + 3)
Design a digital controller using frequency response methods to obtain (zero steady-state error
due to a unit step, an overshoot less than 10%, and a settling time of about 1 s. Use a
sampling period T = 0.2 s.
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 59 / 61
Direct Design Method z-Plane Specifications Discrete Root Locus Design using Root Locus Frequency response design
Digital Control System Design (ULFG) Control Systems II – Chapter 4 Fall 2021/2022 61 / 61