Chapter 2 Discrete Data Control Systems
Chapter 2 Discrete Data Control Systems
There is a need to control the evolution with time of one or more of the system
variables.
A sensor is needed to measure the controlled variable and compare its behavior
to a reference signal.
Control action is based on an error signal defined as the difference between the
reference and the actual values.
The controller that manipulates the error signal-
To determine the desired control action has classically been an analog system,
which includes
oelectrical, fluid,
opneumatic, or
o mechanical components.
(i.e., their input and output signals are defined over a continuous time interval
and have values that are defined over a continuous range of amplitudes).
Accuracy.
Digital signals are represented in terms of zeros and ones with typically
12 bits or more to represent a single number.
This involves a very small error as compared to analog signals where noise and
power supply drift are always present.
Implementation errors.
Digital processing of control signals involves addition and multiplication by
stored numerical values.
The errors that result from digital representation and arithmetic are negligible.
By contrast, the processing of analog signals is performed using components such
as resistors and capacitors with actual values that vary significantly from the
nominal design values.
Flexibility.
An analog controller is difficult to modify or redesign once implemented in
hardware.
A digital controller is implemented in firmware or software, and its modification is
possible without a complete replacement of the original controller.
Speed.
The speed of computer hardware has increased exponentially since the
1980s.
This increase in processing speed has made it possible to sample and
process control signals at very high speeds.
Because the interval between samples, the sampling period, can be made very
small, digital controllers achieve performance that is essentially the same as
that based on continuous monitoring of the controlled variable.
Cost.
Although the prices of most goods and services have steadily increased, the
cost of digital circuitry continues to decrease.
Advances in very large scale integration (VLSI) technology have made it possible
to manufacture better, faster, and more reliable integrated circuits and to offer
them to the consumer at a lower price.
The Structure o f a Digital Control System
To control a physical system or process using a digital controller, the
controller must receive measurements from the system, process them, and
then send control signals to the actuator that effects the control action.
In almost all applications, both the plant and the actuator are analog
systems.
Anactuatoris a component of a
machine that is responsible for moving
or controlling a mechanism or system.
Example 1
Given a first-order system of bandwidth 10 rad/s, select a suitable
sampling frequency and find the corresponding sampling period.
Solution
A suitable choice of sampling frequency is ws = 60, k=6 and given wb =
10 rad/s. The corresponding
sampling period is approximately T = 2/ws 0.1 s.
Example 2
A closed-loop control system must be designed for a steady-state error not
to exceed 5 percent, a damping ratio of about 0.7, and an undamped
natural frequency of 10 rad/s.
Select a suitable sampling period for the system if the system has a sensor
delay of
1. 0.02 s
2. 0.03 s
Solution
Let the sampling frequency be
SAMPLED-DATA SYSTEMS
Sampled data (or a discrete signal) are data obtained for the system
variables only at discrete intervals and are denoted as x{kT).
A system where part of the system acts on sampled data is called a sampled-
data system.
A sampler is basically a switch that closes every T seconds for one instant of
time.
Consider an ideal sampler, as shown in Figure The input is r(t), and the
output is r*(t), where nT is the current sample time, and the current
value of r*(t) is r(nT)
.We then have r*(t) = r(nT)(t nT), where is the impulse function
The z-Transform
The z-transform is an important tool in the analysis and design of
discrete-time systems.
The term method specifies the method used to obtain the digital
transfer function. For a system with a zero-order hold and sampler
(DAC and ADC), we use
MATLAB Results of converting Continuous TF to Discrete time
TF for Zero Order hold and Sampler
>> num=[2 4 3];
>> den=[1 2 3 5]; g=tf(num,den)
g=
2 s^2 + 4 s + 3
---------------------
s^3 + 2 s^2 + 3 s + 5
>> gd=c2d(g,0.1,'zoh')
gd =
For a system with a time delay, the discrete transfer function can be
obtained using the commands
gdelay =
s^2 + 4 s + 5
exp(-1*s) * -----------------------
2 s^3 + 4 s^2 + 5 s + 6
>> gdelay_d=c2d(gdelay,0.1,'zoh')
gdelay_d =
g=
2 s^2 + 4 s + 3
---------------------
s^3 + 2 s^2 + 3 s + 5
>> gd=c2d(g,0.1,'foh')
gd =
gd=c2d(g,0.1, FOH);