Beruflich Dokumente
Kultur Dokumente
Computer-Controlled Systems
Sampling and Reconstruction
A Naive Approach to Computer-Controlled Systems
Deadbeat Control
Is there a need for a theory for computer-controlled systems?
TU Berlin
Computer-Controlled Systems
Clock
r(t)
e(t)
e[k]
ADC
u[k]
Computer
DAC &
ZOH
u(t)
y(t)
Plant
Controller
TU Berlin
Clock
r[k]
e[k]
u[k]
Computer
DAC &
ZOH
u(t)
y(t)
Plant
y[k]
ADC
Dicretised Plant
TU Berlin
Components
A-D converter (ADC) and D-A converter (DAC)
Algorithm
Clock
Plant
TU Berlin
TU Berlin
Sampling
Sampling frequency needs to be large enough in comparison with the maximum rate of change
of f (t).
Otherwise, high frequency components will be mistakenly interpreted as low frequencies in the
sampled sequence.
Example:
= 0.1 s we obtain
f [k]
= 3 cos(0.2k) + cos 2k +
f [k]
= 3 cos(0.2k) + 0.5
The high frequency component appears as a signal of low frequency (here zero). This phenomenon
is known as aliasing.
17th April 2014
TU Berlin
TU Berlin
f (t) =
f [k]
k=
sin(s (t k)/2)
s (t k)/2
The frequency N = s /2 plays an important role. This frequency is called the Nyquist
frequency.
A typical rule of thumb is to require that the sampling rate is 5 to 10 times the bandwidth of the
system.
The Shannon reconstruction given above is not useful in control applications as the operation is
non-causal requiring past and future values.
TU Berlin
TU Berlin
10
> 20 (N > 0 ).
s /2 0
0 s /2
s /2 0
0 s /2
implement and therefore often used (risk that higher frequencies created by sampling remain in
the control system).
TU Berlin
11
< 20 (N < 0 ).
s /2
s /2
s /2
s /2
TU Berlin
12
Preventing Aliasing
Anti-aliasing filters
02
s2 + 20 s + 2
02
s2 + 20 s + 2
y(t)
Anti-aliasing
analog filter
a
A/D converter
(acquisition frequency)
Anti-aliasing
digital filter
y[k]
Down-sampling
( = n a )
TU Berlin
13
Time dependence
Clock
u(t)
ADC
Computer
algorithm
Continuous-time
system
y[k]
DAC &
ZOH
ys(t)
y(t)
TU Berlin
14
TU Berlin
15
The computer controlled system behaves as a continuous-time system if the sampling period is
sufficiently small!
uc
u
Controller
Amplifier
y
Arm
TU Berlin
16
c
Js2
bK
a
Uc (s) K
s+b
Y (s)
s+a
J02
c
TU Berlin
17
U (s)
=
=
u(t)
dx(t)
dt
bK
a
K
Uc (s) + KY (s) + K
(a b)
Y (s)
(s + a)
!
a
Uc (s) Y (s) + X(s)
b
= K
= ax(t) + (a b)y(t)
x(t + ) x(t)
= ax(t) + (a b)y(t)
17th April 2014
TU Berlin
18
u[k]
x[k + 1]
= K
=
TU Berlin
19
= 0.2/0
TU Berlin
20
= 0.5/0
TU Berlin
21
= 1.08/0
TU Berlin
22
Deadbeat control
The previous example seemed to indicate that a computer-controlled system will be inferior to a
continuous-time example.
This is not the case: The direct design of a discrete time controller based on a discretised plant
offers control strategies with superior performance!
= 1.4/0 .
Sampling can initiated when the command signal is changed to avoid extra time delays due to
the lack of synchronisation.
TU Berlin
23
Deadbeat control
TU Berlin
24
TU Berlin
25
Difference Equations
The behaviour of computer-controlled systems can very easily described at the sampling
instants by difference equations.
Difference equations play the same role as differential equations for continuous-time systems.
Example: Design of the deadbeat controller for the disk arm servo system
The disk arm dynamics with a control signal, that is constant over the sampling intervals, can be
exactly described at sampling instants by
c2
2J
(1)
c2
2J
= t0 uc [k] s0 y[k] s1 y[k 1]
17th April 2014
TU Berlin
26
c2
2J
) yields:
t0
2
(uc [k 1] + uc [k 2])
TU Berlin
27
TU Berlin
28