Digital Control: Fundamentals: ENGI 7825: Control Systems II Andrew Vardy
Digital Control: Fundamentals: ENGI 7825: Control Systems II Andrew Vardy
Control:
Fundamentals
ENGI 7825: Control Systems II
Andrew Vardy
Introduction
• So far we have considered only continuous-time (CT) systems.
However, computers are very often incorporated into modern control
systems. Computers are discrete-time (DT) components.
• Computers have the following advantageous characteristics for
control systems:
– They continuously grow both faster and cheaper; Microcontrollers
(complete computer on one IC) often cost < $5
– Fully customizable through software
– Operation is static and largely invariant to environmental conditions
• We can contrast digital computers with analog electronic components
(e.g. resistors, inductors, capacitors, op-amps)
– Not easily customizable once installed and may deviate from specs
– Affected by variations in temperature
– Produce analog (i.e. CT) signals which are quite susceptible to noise
Notation
• The material to come on Digital Control comes from
different sources:
– “Feedback Control of Dynamic Systems”, 6th Edition, by Franklin,
Powell, and Emami-Naeini (Sections 8.1, 8.2)
– “Feedback Control Systems”, 5th Edition, by Phillips and Parr
(Sections 11.6, 11.7, 11.8, 12.9, 13.4, 14.2)
– “Control Systems Engineering”, 5th Edition, by Nise (z-transform
tables)
– “Linear System Theory and Design”, 4th Edition by Chen (Section
4.2)
• The notation will consequently vary:
– Quantities with unqualified references to time are continuous-
time: e.g. u(t)
– Quantities which refer to integer multiples of the sampling
period, T, are discrete samples: e.g. u(kT)
• Often the T is dropped, leaving an index k: u(k)
• Sometimes square brackets are used for discrete-time signals: u[k]
unique relationship between the excitation and response, input and output, or cause and effect
is essential in defining a system. A system with only one input terminal and only one output
terminal is called a single-variable system or a single-input single-output (SISO) system.
A system with two or more input terminals and/or two or more output terminals is called
Discrete-Time Systems
a multivariable system. More specifically, we can call a system a multi-input multi-output
(MIMO) system if it has two or more input terminals and output terminals, a single-input
multi-output (SIMO) system if it has one input terminal and two or more output terminals.
Ca)
Plant
r(t) GCs) y( I)
Sensor
(b)
2 3 4 5 6 7 8 kT
(8.2)
k=O
• CT systems are governed by differential equations
wheref(k) is the sampled version off(t), as shown in Fig. 8.3, and k = 0, 1,2,3, ...
refers to discrete sample times to, tl, t2, 13, .... This leads directly to a property
• For DT systems the notion of a derivative is not so
analogous to Eq. (8.1), specifically, that
well defined; DT systems are governed by difference
ZIf(k - I)} = Z-IF(Z). (8.3)
equations
This relation allows us to easily find the transfer function of a discrete system, given the
• The following is a general 2 nd order difference
difference equations of that system. For example, the general second-order difference
equationequation:
y(k) = -aly(k - I) - a2y(k - 2) + bou(k) + blu(k - 1) + b2U(k - 2)
0.5z
F (z) =
(z 0.5)(z 0.7)
We expand F (z)/z,
Therefore,
2.5z 2.5z
F (z) = +
z 0.5 z 0.7
Apply the inverse z-Transform on each term,
Notice that do not get f (t). We only get back its sampled values.
Discrete-Time State Space
• The discrete-time (DT) state space representation is
of the following form:
equation:
y(k + n) + a1 y(k + n 1) + a2 y(k + n 2) + . . . + an 1 y(k + 1) + an y(k) = bu(k)
x1 (k + 1) = x2 (k)
x2 (k + 1) = x3 (k)
.. ..
. .
xn 1 (k + 1) = xn (k)
2 3
2 3 0 1 0 ... 0 2 3 2 3
x1 (k + 1) 6 7 x1 (k) 0
6 7 6
6
0 0 1 76
7 6 x2 (k) 7 6 7
6 x2 (k + 1) 7 7 6 0 7
pling instant, and u(k) is the input at the k-th sampling instant. Let us define:
x1 (k) = y(k)
x1 (k + 1) = x2 (k)
x2 (k + 1) = x3 (k)
.. ..
. .
xn 1 (k + 1) = xn (k)
or
• Notice that this is in Controller Canonical Form (CCF)
x(k + 1) = Gx(k) + Hu(k)
Solution of the DT State Space Equations
• Consider just the DT state space difference equation:
Notice how closely this followed the derivation of the state-space solution in CT
Example
• Consider the DT system with the following transfer function:
COVERED ON BOARD
• Now that we have the state-space representation, we can
solve for Y(z) and then y(k):