Digital Control Systems Overview
Digital Control Systems Overview
np
Date: 2065/4/20
Digital control system: The rapid increase in the use of digital controller in the controlled
system is due to its achievement in the optimum performance. Digital control system
provides optimal performance in the form of maximum productivity, maximum profit,
minimum cost or minimum energy use etc. The application of computer control has made
possible the intelligent motion in industrial robots, the optimization of the fuel economy in
automobiles and refinement in the operations of house hold appliances and machines such as
microwave ovens, washing machine, Air-conditioning. Decision making capability and
flexibility in the control programs are major advantages of digital control system.
The current trend towards rather then analog control system is mainly due do the
availability of low cost digital computers and the advantages found in working with digital
signals rather then continuous time signals.
Digital
Clock Control
Transducer
Figure 1 shows the basic block diagram or principle of DCS . The controller operation is
performed or controlled by the clock. In such a DCS points of the systems pass signals of
varying amplitude either in continuous time or discrete time or in numerical code.
1. Sample and Hold ( S/H) : It is the circuit that receives an analog input signal and holds
this signals at a constant value for a specified period of time. Usually the signal is
electrical but it may be optical or mechanical.
2. ADC: ADC also called an encoder is a device that converts an analog signal into a
digital signal, usually a numerically coded signal in binary form. Such a converter is need
as an interface between an analog component and the digital component. Basically ADC
involves sampling , quantizing and encoding.
3. Digital Computer: The digital computer processes the sequences of numbers by mean of
an algorithm an produces an new sequences of numbers.
4. DAC: DAC also called an decoder is a device that converts a digital signal (
Numerically coded data) into an analog signal. It acts as an the interfacing device
between the digital component and an analog component. The real time clock in the
computer synchronizes the events. The output of the hold circuit which is continuous time
signal is fed the plant either directly or through the actuator which controls the dynamics
of the system ( i.e it smoothens the slope of the signal)
5. Plant or process: A plant is a physical object to be controlled. The examples are a
furnace, chemical reactors and a set of machine parts functioning together to perform a
particular operations such as servo system etc.
6. Transducer/sensor: A transducer is a device that converts an input signal into an output
signal of a another form such as device that converts a temperature into a voltage output (
thermistor or thermocouple ), an optical signal into voltage ( phototransistor )
Discrete times control system: Discrete time control system is control system in which one
or more variable can change only at discrete instants of time. These instants which are
denoted by KT or tk ( k =0, 1, 2, ………), specify the times at which some physical
measurements is performed. The time interval between two discrete instants is taken to be
sufficiently short that the data for the time between them can be approximated by simple
interpolation.
Date: 2065/4/21
Fig.1 shows the diagram of data acquisition system. The basic parameters are explained
below:
1. Physical variable: The input to the system is a physical variable such as position,
velocity, acceleration, temperature, pressure etc.
2. Transducer amplifier and low pass filter: The physical variables (which are generally
in non-electrical form) is first converted into an electrical signal (a voltage or a current
signal) by a suitable transducer. Amplifier then amplifies the voltage output of the
transducer (i.e the signal have rises to the necessary level). The LPF follows the amplifier
which attenuates the high frequency signal components such as noise signals which are
random in nature. The o/p of LPF is an analog signal. The signal is then fed to an analog
multiplexer.
3. Analog Multiplexer: It is a device that performs the function of time sharing and ADC
among many analog channels. It is a multiple switch (usually an electronic switch) that
switches sequentially among many analog input channels in some prescribed fashion. The
no of channels may be 4,8,16.
4. Sample and hold circuit: A simpler in a digital system converts an analog signal into an
train of amplitude modulated pulses. The hold circuit holds the value of the sampled pulse
signal over a specified period of time. It is necessary in the AD converter to produce a
number that accurately represents the i/p signal at the sampling instant.
Assignment: 1. Draw a circuit of sample and hold and explain its basic operation.
5. ADC: The output of sample and hold is then fed to the AD converter. The o/p of the
converter is the signal in digital form which is fed to the digital controller.
In this way data acquisition system is held.
Data Distribution:
1. Register: The o/p of digital controller is then stored for a certain period of time in a
memory device called register.
2. Multiplexer: The demultiplexer , which is synchronized with the i/p sampling signal,
separates the composite o/p signal which is in the from of digital data from the digital
controller into the original channels. Each channel is connected to DAC to produce the
o/p analog signal for that channel.
3. DAC: At the o/p of the digital controller, the digital must be converted to an analog
signal by the process called D/A conversion. For the full range of digital i/p, there are 2n
different analog values , including zero.
4. Hold: The sampling operation produces an amplitude modulated pulse signal. The
function of hold operation is to reconstruct the analog signal that has been transmitted as
a train of pulse samples. The purpose of hold operation is to fill the spaces between the
sampling periods and thus roughly reconstruct the original analog input signal which is
then fed to the actuator which smoothens the slope of signal.
Signal sampling is the first step of transmission of analog signal over digital signal.
1. Sampling: Sampling is the process of conversion of continuous time analog signal into
discrete time analog signal. The discrete signal obtained after sampling is called sampled
signal.
Sampling Theorem: It states “Analog signal can be reproduce from an appropriate set of its
samples taken at some fixed intervals of time.” This theorem has made possible to transmit
only samples of analog signal by changing or encoding this samples into block of code words
suitable for digital control systems.
If fs = sampling frequency
fx = maximum frequency component of the i/p signal, then the
distortion less recovery of the signal fs ≥ 2fx
If the signal x(t) to be sampled is band limited , then the sampled signal can be represented
as:
xs(t) = x(t) × g(t)
Where, g(t) is the sampling function (rectangular pulse train) which be represented as shown
below.
g(s)
Ts
τ - τ/2 τ/2
Fig.1 Rectangular pulse train
Where ,
Ts = Sapling period.
τ = duration of sampling pulse= pulse width
Sampler can be implemented as:
x(t) xs(t)= x(t)×g(t)
g(t)
Fig.2 Implementation of sampler
Proof of sampling theorem: The gate function g(t) can be expressed interms of fourier
series as
g (t ) = c o + ∑n =1 2c n cos(nω s t )
∞
Where, co = τ/ Ts = τfs
Cn = fs τ sinc[nfs τ ]
= co sinc[nfsτ]
ωs =2 πfs
The signal xs(t) can be expressed as
xs = x(t)×g(t)
= x(t)×[ c o + ∑n =1 2c n cos(nω s t ) ]
∞
x(f)
-fx fx
Fig.3. Message spectrum
It is clear from fig.4 that the spectrum of the sampled signal contains the spectrum of the
sampled signal contains the spectrum of the original message signal.
Date:2065/4/26
It is evident that for distortion less recovery of original message signal, from the spectrum of
the sampled signal, the following condition should be met.
fs ≥ fx
In this case the original message signal spectra can be recovered by passing the sampled
signal through low pass filter with bandwidth equaling to ± fx
Distortion will occur while recovering the message spectrum if. fs ≤ fx
The distortion in the above case is caused by the overlapping of side bands and message
spectra.
Xs(f)
o
Xs(f)
aliasign ditortion
(fs<2fx)
The minimum sampling rate: fs min = 2fs is called Nyquists’s sampling rate for distortion
less recovery of one message spectrum.
The minimum interval of the sampling for a real signal is
Ts min = 1/2fx(min)
Where
fx(min) = maximum frequency in the message spectrum.
x(t)
2
1
(a)
t
xs(n) 1 2 3 4 5 6 7
1.8 1.8
0.9 1.7
0.9 1.7
(b) 0.5
n
4
xq (n) 1 2 3 5 6 7
1
(c)
n
1 2 3 4 5 6 7
Quantization is the process of representing the analog sample values by a finite set of levels.
The sampling process coverts a continuous time signal to a discrete time signal with
amplitude and that can take any values from zero to maximum level and the quantization
process converts continuous amplitude samples to a finite set of discrete amplitude values.
The output sates of each quantized sample is then described by a numerical code. The
process of representing a sampled value by a numerical code is called encoding . Thus
encoding is a process of assigning a digital word to each discrete states.
In uniform quantization it is assumed that the range of input sample is –xmax to xmax and
the number of quantization level, known as Q-level, N=2n. Where,
n = is the number of bits per source sample , then the step size △ on length of the Q
level is assumed to be,
△ = 2xmax / N = 2xmax/2n = 2xmax/ 2n-1
△ = xmax/2n-1
Quantization error:
Since the number of bits in the digital word is finite , ie the digital output can assume only a
finite number of levels and therefore analog number must be round off to the nearest digital
level. Hence any ADC involves quantization error. It is evident that the maximum Q error
could be only △/2. In uniform quantization the steps size △ is constant for the entire dynamic
range of the input discrete signal level. Q error depends on the fineness of the quantization
level and can be made as small as desire by making the quantization level smaller or by
increasing the number of bits ‘n’. In practice there is a maximum for n and so there is always
some error due to quantization.
The uncertainty present in the quantization process results quantization noise.
Signal to quantization noise ratio (SQNR): It is evident that the Q-error ( i.e qe) lies
between – △/2 to △/2 in random manner , the average power of Q-noise is therefore given
by,
∆
2
1
∫q
2
Pq = dq e
∆
e
∆
−
2
∆2
= Pq = …………………..(i)
12
It is seen form equation (1) that Q-noise is dependent on step-size ‘△’ only. Reducing the
step-size or increasing the no of representation level, we can reduce pq and hence Q-error.
From equ (1)
Pq = △2/12
But,
△= xmax /2n-1
Pq = (xmax/2n-1)/12 = xmax2/3×4n ……….(ii)
Assume that the average signal power is x2 , SQNR for uniform quantization will be,
Assignmet:1
1. Simple and hold ckt.
Analog multiplexer and Demultiplexer.
Date:2065/5/1
Review of Z-transform: mathematical tool commonly used for the analysis and synthesis of
discrete time control system is the z-transform. In considering the z-transform of a time
function x(t) , we consider only the sampled values of x(t) , i.e x(0), x(T) , x(2T),………,
where ‘T’ is sampling period.
The z-transform of a time function x(t) , where ‘t’ is non –negative or of a sequence of
values x(kT) , where k = 0,1,2,3 …
∞
X(z) = z[x(t)] = ∑ x(kT ) z
k =0
−k
…………….(i)
∞
Or , X(z) = z[x(t)] = ∑
k =0
x ( k ) z −1 …………….(ii), for T=1
∞
X(z) = z[x(t)] = z[x(k)] = ∑ x(kT ) z
k = −∞
−1
z
Or, z[1(t)] = , z >1
z −1
⎧⎪t for t ≥ 0
x(t ) = ⎨
⎪⎩0 otherwise
Or, x(KT) = KT for k = 0,1,2,3………….
Thus,
∞
X(z) = z[x(t)] = z[t] = ∑ t.z
k =0
−k
∞
Or, X(z) = ∑ ( KT ) z
k =0
−k
= k(z-1+2z-2+3z-3 ……..)
z −1
= T.
(1 − z −1 ) 2
T .z −1
X(z) =
(1 − z −1 ) 2
∞
Then, X(z) = z[x(k)] = z[aK] = ∑ x( k ) z
k =0
−k
∞
X(k) = ∑a
k =0
k
z −k
4. Exponential function:
⎧⎪e at for t ≥ 0
x(t ) = ⎨
⎪⎩0 otherwise
Where, x(kT) = e-akT, K = 0,1,2………..
We have,
∞
X(z) = z[e-at] = ∑e
k =0
− akT
z −k
5. Sinusoidal Function:
we have ,
Sinwt = 1/2j[ejwt-e-jwt]
& coswt = 1/2[ejwt+e-jwt]
We know that,
1
Z[e-at] =
1 − e − at z −1
1
Z[ejwt] =
1 − e jwT z −1
1
Z[e-jwt] = − jwT −1
1− e z
Therefore, z[sinwt] = z[ 1/2j(ejwt-e-jwt)]
= 1/2j[z(ejwt)-z(e-jwt)]
⎡ 1 1 ⎤
= 1/2j ⎢ jwt −1
− − jwt −1 ⎥
⎣1 − e z 1− e z ⎦
−1
z sin wt
Z[sinwt] =
1 − 2 z −1 cos wt + z − 2
Similarly,
z −1 cos wt
Z[coswt] =
1 − 2 z −1 cos wt + z − 2
1. Multiplication by a constant:
2. Linearity of Z-transform:
If z[f(t)] = z[f(kT)] = z[f(k)] = F(z)
Z[g(t)] = z[g(kT)] = z[g(k)] = G(z)
And a and b be scalers then then x(k) formed by liner combination,
x(k) = a f(k) + b g(k)
Has the z-transfom
X(z) = a F(z) +G(z)
3. Multiplication by ak :
If z[x(k)] = X(z) , then
Z[akx(k)] = X(a-1z)
Proof:
∞ ∞
Z[ akx(k)] = ∑a
k =0
k
x(k ) z − k = ∑ x(k )(a −1 z ) − k
k =0
= X(a-1z)
4. Shifting theorem:
If x(t) = 0 for t< 0 and
x(t) Z X(z)
⎡ n −1
⎤
And , z[x(t+nT)] = z ⎢ X ( z ) − ∑ x( KT ) z − k ⎥ …………..(ii)
n
⎣ k =0 ⎦
Proof:
For equation (i)
We know that , z[x(t-nT)] = z[x(KT-nT)]
= z[x(k-n)T]
∞
Or, z[x(t-nT)] = ∑ x(k − n).Tz
k =0
−k
∞
= ∑ x(k − n).T .z
k =0
−(k −n)
.z − n
∞
= z − n .∑ x(k − n).T .z − ( k − n )
k =0
Let us define k-n = m , therefore,
∞
Z[x(mT)] = z − n . ∑ x(mT ).z − m
m=−n
Since ‘m’ must be zero and non-negative integer
Therefore, z[x(mT)] = z-nX(z)
Z[x(t+nT) = z[ x(KT+nT)]
= z[x(K+n)T]
∞
Or, z[x(t+nT)] = ∑ x(k + n).Tz
k =0
−k
∞
= ∑ x(k + n).T .z
k =0
−(k + n)
.z n
∞
= z .∑ x(k + n).T .z − ( k + n )
n
k =0
Let us define, K+n = m
∞
Z[x(mT)] = z − n .∑ x(mT ).z − m
m=n
⎡ n −1 n −1 ∞
⎤
= z n ⎢ ∑ x(mT ).z − m − ∑ x(mT ).z − m + ∑ x(mT ).z − m ⎥.
⎣m =0 m=0 m=n ⎦
⎡ ∞ n −1
⎤
= z n ⎢ ∑ x(mT ).z − m − ∑ x(mT ).z − m ⎥.
⎣m =0 m =0 ⎦
∞
Z[e-atx(t)] = ∑e
k =0
− akT
x(kT ).z − k
∞
= ∑ x(kT ).(e
k =0
aT
z) −k
= X(eaTz)
= X (zeaT)
x(0) = z ⎯⎯→
lim
∞ X ( z)
Assignment # 02:
1. Prove all the important properties of z-transform.
1
Example: 01: Obtain the z-transform of x(s) =
s ( s + 1)
Solution:
1
Given, x(s) =
s ( s + 1)
A B
= +
s s +1
1
Where, A = .s
s ( s + 1) s = 0
A=1
1
And, B = .( s + 1)
s ( s + 1) s = −1
B = -1
1 1
Therefore, x(s) = −
s s +1
Taking inverse Laplace Transform, we have, x(t) = 1 – e-t
Again taking z-transform on both sides,
Z[x(t)] = z [ 1 – e-t]
= z[1] – z[e-t]
1 1
= −1
−
1− z 1 − e −T z −1
1/ − e −T z −1 − 1/ + z −1
=
(1 − z −1 )(1 − e −T z −1 )
(1 − e −T ) z −1
=
(1 − z −1 )(1 − e −T z −1 )
Example: 02 Obtain the z-transform of
⎧⎪a k −1 k = 0,1,2,3.......
f (a) = ⎨
⎪⎩0 K ≤0
∞
Z[f(a)] = ∑ f (a).z
k =0
−k
1
Here, z[x(k)] = z[ak] = = X (k )
1 − az −1
Then, z[x(k-1)] = z[ak-1] = z-1.X(z)
⎡ 1 ⎤
Therefore, z[ak-1] = z-1 ⎢⎣1 − az −1 ⎥⎦
k-1 z −1
Z[a ] =
1 − az −1
Date:2065/5/3
-at
[i] e sinωt
We know that
Z −1 sin ωT
Z[sinwt] = = X ( z)
1 − 2 z −1 cos wT + z −1
We know that,
Z[e-atx(kT)] = X[zeakT]
e − aT z −1 sin wt
Therefore , z[e-atsinwT] =
1 − 2e − aT z −1 cos wt + e − 2 aT z − 2
Example 04: Consider the function y(k) , which is sum of functions x(h) where, h = 0, 1, 2
…….k , Such that
k
y(k) = ∑ x(h),
h=0
k = 0,1,2.....
Solution: Given,
k
y(k) = ∑ x (h)
h=0
or, y(k) = x(0) + x(1) + x(2) + x(3)+………….+ x(k)---------(i)
similarly,
y(k-1) = x(0)+ x(2)+ x(3)+ ……….+x(k-1) -------------(ii)
Given,
x(t) = t e-at
x(kT) = kT e-at
We know z –transform of t is given by, z[t] = Tz-1/(1-z-1)2
Using complex translational theorem,
Z[e-at.t] = Te-at.z-1/(1-e-atz-1)2
(1 − z −1 )(1 − e −T z −1 )
= 0 Ans.
1 1
Example 07: Determine the final value x(∞) of X(z) = −1
− − aT −1
a>0
1− z 1− e z
Solution:
From final value theorem,
x(∞) = z ⎯⎯→
lim
1[(1 − z −1 ) X ( z )]
⎡ ⎤⎤
= z ⎯⎯→
lim
( ⎡ 1
1⎢ 1 − z −1 ⎢ )−1
−
1
aT −1 ⎥ ⎥
⎣ ⎣1 − z 1 − e z ⎦⎦
⎡ 1− z −1
⎤
= z ⎯⎯→
lim
1⎢1 − − aT −1 ⎥
⎣ 1− e z ⎦
⎡ z −1 ⎤
= z ⎯⎯→lim
1⎢1 − − aT ⎥
⎣ z−e ⎦
= 1-0
= 1 Ans.
The inverse z-transform:
(1) Direct division method:
Solution:
X(z) = (10z+5)/(z-1)(z-0.2)
= (10z+5)/(z2- 1.2z+0.2)
= (10z-1+ 5z-2)/(1-1.2z-1+0.2z-2)
10 z −1 + 5 z −2
10 z −1 − 12 z − 2 + 2 z −3
17 z − 2 − 2 z −3
17 z − 2 − 20.4 z −3 + 3.4 z − 4
+18.4 z −3 + 3.4 z − 4
18.4 z −3 − 22.08 z − 4 + 3.68 z −5
18.68 z − 4 − 3.68 z −5
18.68 z − 4 − 22.416 z −5 + 3.7362 z − 6
18.736 z −5 − 3.7362 z − 6
X(z) = z-1/(1-az-1)
⎡ 1 ⎤
= z-1 ⎢ −1 ⎥
⎣1 − az ⎦
= z-1[X(z)]
Where, Y(z) = 1/(1-az-1)
The inverse z-transform of Y(z) is z-1[Y(z)] = ak
So, the inverse z-transform of (z) = z-1[Y(z)]
z-1[X(z)] = ak-1 = y(k-1)
Therefore, x(k) = y(k-1) = ak-1
2. partial fraction method: We use the following formula for the function written in the
form
X ( z) a1 a2 an
= = + ............
Z z − p1 z − p 2 z − pn
X ( z)
(i) ai = (z-pi)
Z z = pi
Again if,
X ( z) C1 C2
= + Then,
Z ( z − p1 ) ( z − p 2 )
X ( z)
C1 = (z-p1)2
Z z = p1
⎧d X ( z) ⎤⎫
And , C2 = ⎨ ⎡( z − p1 ) 2 ⎬
⎢ z ⎥⎦ ⎭ Z = P1
⎩ dz ⎣
In general , if there are n- multiplication roots then,
1 ⎧ d n −1 ⎡ n X ( z) ⎤⎫
Cn = ⎨ ( z − p ) ⎬
(n − 1)! ⎩ dz n −1 ⎢⎣ 1
z ⎥⎦ ⎭ Z = P
n
− aT
1 − e .z
Example 01: Given X(z) = Where ‘a’ is a constant and T is the sampling
( z − 1)( z − e − aT )
period. Determine the inverse z-transform x(KT) by the use of partial fraction expansion
method.
Solution:
(1 − e − aT ) Z
X(z) =
( z − 1)( z − e − aT )
X ( z) 1 − e − aT
=
Z ( z − 1)( z − e − aT )
X ( z) A B
= +
Z z − 1 z − e − aT
X ( z) 1 − e − aT
A = (z-1) = ( z − 1)
Z z =1 ( z − 1)( z − e − aT ) z = 1
1 − e − aT
= =1
1 − e − aT
Threfore, A = 1.
X ( z) − aT 1 − e − aT
Similarly B = = ( z − e )
Z z = e − aT ( z − 1)( z − e − aT ) z = e − aT
1 − e − aT
=
(e − aT − 1)
B = -1
X ( z) 1 1
= −
Z z − 1 z − e − aT
z z
X ( z) = −
z − 1 z − e − aT
1 1
X ( z) = −1
− − aT −1
1− z 1− e z
Therefore, z [X(z)] = 1-e-aT= 1k-e-akT
-1
z2 + z + 2
Example 02: Obtained the z-transform of X ( z) = by partial fractional
( z − 1)( z 2 − z + 1)
expression method.
Solution:
z2 + z + 2 A Bz + c
X ( z) = = + 2
( z − 1)( z − z + 1) ( z − 1) z − z + 1
2
z2 + z + 2 A( z 2 − z + 1) + ( Bz + C )( Z − 1)
=
( z − 1)( z 2 − z + 1) ( z − 1)( z 2 − z + 1)
Z2 + z +2 = (A+B)z2- (A+B-C)z +(A-C)
Comparing the coefficient of z2 , z and z0 we get,
B+A = 1
-(A+B-C) = 1
A-C = 2
Solving the above equation we get,
A = 4 , B = -3, C = 2
A Bz + c
Thus , X ( z ) = + 2
( z − 1) z − z + 1
4 − 3z + 1
X ( z) = + 2
( z − 1) z − z + 1
4 z −1 − 3z −1 + 2 z −2
X ( z) = +
(1 − z −1 ) 1 − z −1 + z − 2
−1 ⎡ 1 − 0.5 z ⎤
−1
⎡ 1 ⎤
X ( z ) = 4 z −1 ⎢ −1 ⎥
− 3 z ⎢ −1 −2 ⎥
⎣1 − z ⎦ ⎣1 − z + z ⎦
−1 ⎡ 1 − 0.5 z ⎤ −1 ⎡ 1 / 6.z −1 ⎤
−1
⎡ 1 ⎤
−1
X ( z) = 4z ⎢ −1 ⎥
− 3z ⎢ −1 −2 ⎥
+ 3z ⎢ −1 −2 ⎥
⎣1 − z ⎦ ⎣1 − z + z ⎦ ⎣1 − z + z ⎦
⎡ 3 −1 ⎤
⎢ z ⎥
−1 ⎡ 1 − 0.5 z ⎤ 1 −1
−1
−1 ⎡ 1 ⎤ 2
X ( z) = 4z ⎢ −1 ⎥
− 3 z ⎢ −1 −2 ⎥
+ z ⎢ −1 −2
⎥
⎣1 − z ⎦ ⎣1 − z + z ⎦ 3 ⎢1 − z + z ⎥
⎢⎣ ⎥⎦
We know that
⎡ 1 ⎤ k
z-1 ⎢ −1 ⎥
=1
⎣1 − z ⎦
⎡ 1 − 0.5 z −1 ⎤ π
z-1 ⎢ −1 −2 ⎥
= cos k
⎣1 − z + z ⎦ 3
⎡ −1 3 ⎤
⎢ z . ⎥ π
z-1 ⎢ 2 ⎥ = sin k
−1 −2
⎢1 − z + z ⎥ 3
⎢⎣ ⎥⎦
Therefore, z-1 = [X(z)] = x(k)
= 4.1k-1 – 3 cos(k-1) π/3 + 1/√3 . sin(k-1) π/3
Date: 2065/5/10
3. Inverse Integral method:
The inversion integral for the z-transform X(z) is given by z-1[x(z)] = x[kT] =
1
x(k) =
2πj ∫ x( z ) z k −1 dz ………(i)
Where ‘c’ is a circle with its centre at the origin of the z-plane such that all poles of x(z)z-1
are inside it.
The equation for giving the inverse z-transform in terms of residues can
be derived by using the theory of complex variables. It can be obtained as follows.
X(kT) = x1 + x2 + ……….+xn denotes the residues of x(z)zk-1 at poles z1, z2 ……..zm
respectively.
In evaluating residues, if the denominator of x(z)zk-1 contains a simple
pole at z = zi , then the corresponding residue x is given by,
k i = z 0 ⎯⎯→ lim
[ ]
z1 ( z − z i )X ( z ) z k −1 …………….(ii)
k-1
If X(z) z contains a multiple pole zi or order q, then the residue k is given by ,
ki =
1
(q − 1)!
.z ⎯⎯→ 2 j
lim
dzq
[
dq −1
−1
]
(z − z i )q X ( z ) z k −1 ………..(iii)
Example: 01 Obtained x(kT) by using the inversion integral method when,
− aT
z (1 − e )
X ( z) =
( z − 1)( z − e − aT )
Solution:
z (1 − e − aT )
X ( z) =
( z − 1)( z − e − aT )
k −1 z kT z (1 − e − aT )
X ( z) z =
( z − 1)( z − e − aT )
z k (1 − e − aT )
k −1
X ( z) z =
( z − 1)( z − e − aT )
For k = 0,1,2……….x(z)zk-1 has simple poles at z1 = 1and z2= e-aT
2
Hence, x(kT) = x(k) = ∑ residue of x(z)zk-1 at pole z = zi
i =1
= k1 + k2
[
Where k1 = z ⎯⎯→ z1 ( z − z i )X ( z ) z k −1
lim
]
⎡ z k (1 − e − aT ) ⎤
= z ⎯⎯→lim
z1 ⎢( z − 1) ⎥
⎣ ( z − 1)( z − e − aT ) ⎦
1k (1 − e − aT )
=
( z − e − aT )
K1 = 1
For K2 ,
K2 = z ⎯⎯→
lim
[
z 2 ( z − z 2 )X ( z ) z k −1 ]
⎡ ( z − e − aT ) z k (1 − e − aT ) ⎤
= z ⎯⎯→ lim
e − aT ⎢ − aT ⎥
⎣ ( z − 1)( z − e ) ⎦
⎡ e − akT (1 − e − aT ) ⎤
= ⎢ − aT ⎥
⎣ e −1 ⎦
Therefore , k2 = - e-akT
⎡ e − a ( k +1)T ⎤
= ⎢ − aT ⎥
⎣ (e − 1) 2 ⎦
1 d ⎡ z k +1 ⎤
And for K2 , k2 = .z ⎯⎯→
lim
1 .⎢( z − 1) 2 − aT ⎥
(2 − 1)! dz ⎣ ( z − 1) ( z − e ) ⎦
2
d ⎡ z k +1 ⎤
= z ⎯⎯→
lim
1 .⎢ ⎥
dz ⎣ ( z − e − aT ) ⎦
⎡ ( z − e − aT )(k + 1) z k − z k +1 ⎤
= z ⎯⎯→lim
1⎢ ⎥
⎣ ( z − e − aT ) 2 ⎦
− aT k +1
(k + 1)k (1 − e ) − 1
k
(k + 1)(1 − e − aT ) − 1
= =
( z − e − aT ) 2 (1 − e − aT ) 2
(k − ke − aT − e − aT
=
(1 − e − aT ) 2
e − a ( k +1)T k − ke − aT − e − aT
Therefore, x(kT) k1 + k2 = +
(e − aT − 1) 2 (1 − e − aT ) 2
e − a ( k +1)T + k − ke − aT − e − aT
X(kT) =
(1 − e − aT ) 2
z −2
Example 03: Obtain the inverse z-transform of x(z) =
(1 − z −1 ) 3
1 d2 ⎡ 3 z. z
k −1
⎤
Where k1 = lim
(
.z ⎯⎯→ 1. 2 ⎢ z − 1 ) ⎥
2! dz ⎣ ( z − 1) 3 ⎦
=
1 d2 k
.
2! dz 2
z
z =1
[ ]
=
1 d
.
2 dz
[
kz k −1
z =1
]
1
2
[
. k (k − 1) z k − 2
=
z =1
]
k (k − 1)
=
2
Therefore, z-1(x(z)) = x(kT) = k(k-1)/2
Example 01: Solve the following difference equation by use of z-transform method of
x(K+2)+ 3x(k+1)+2x(k) = 0
Taking z-transform on both the sides , we have,
Z[x(k+2)]+3z[x(k+1)]+3z[x(k+1)] +2z[x(k)] = 0
Z2x(z)-z2x(0)-zx(1) + 3[zx(z)-zx(0)] +2x(z) = 0
X(z) [z2+3z+2] – (z2 +2)x(0) – zx(1) – zx(1) = 0
But, x(0) = 0 and x(1) = 1
Therefore, x(z) [z2+3z+2] – z = 0
z z A B
X(z) = 2 = = +
( z + 3z + 2) ( z + 1)( z + 2) z + 1 z + 2
x( z ) 1 A B
= = +
z ( z + 1)( z + 2) z + 1 z + 2
x( z )
A = ( z + 1)
z z = −1
A = 1.
Similarly, B = -1,
x( z ) 1 1
= −
z z +1 z + 2
z z
x( z ) = −
z +1 z + 2
1 1
x( z ) = −1
−
1+ z 1 + 2 z −1
1 1
x( z ) = −1
−
1 − (−1) z 1 − (−2) z −1
The inverse z-transform of x(z) is
X(z) = -(1)k – (-2)k, k = 0,1,2………..
Example 02: Obtained the solution of the following difference equation in terms of x(0) and
x(1).
X(K+2) + (a+b)x(k+1) + ab x(k) = 0
Z2x(z) – z2x(0) – zx(1) + (a+b) [z x(z) – z x(0)] + ab x(z) = 0
X(z) [z2 + (a+b)z+ab] = [z2 + (a+b)z] x(0) + z x(1)
[ z 2 + (a + b) z ]x(0) + zx(1)
X(z) =
z 2 + (a + b) z + ab
[ z + a + b]x(0) + x(1) A B
X(z) = = +
( z + a)( z + b) z+a z+b
bx(0) + x(1) ax(0) + x(1)
Where, A = and B =
(b − a) ( a − b)
bx(0) + x(1) ax(0) + x(1)
x( z ) (b − a ) ( a − b)
= +
z ( z + a) ( z + b)
bx(0) + x(1) ax(0) + x(1)
(b − a ) ( a − b)
x( z ) = −1
+
1 − (−a) z 1 − (−b) z −1
⎡ bx(0) + x(1) ⎤ ⎡ ax(0) + x(1) ⎤
X ( z) = ⎢ ⎥ (−a) k + ⎢ ⎥ (−b) k [ for the case a ≠ b]
⎣ (b − a) ⎦ ⎣ ( a − b) ⎦
Now for a = b,
( z 2 + 2az ) x(0) + zx(1)
X(z) =
z 2 + 2az + a 2
x( z ) ( z + 2a) x(0) + x(1)
=
z ( z + a) 2
x( z ) A B
= +
z ( z + a) ( z + a) 2
zx(0) ax(0) + x(1)
We get , x(z) = x( z ) = +
(1 + az ) (1 + az −1 ) 2
−1
Assignment:
1. Obtained the z-transform of (a) k2 (b) k ak-1
⎡ k ⎤ 1
z ⎢ ∑ x ( h) ⎥ = −1
x( z )
⎣ n =0 ⎦ 1− z
2. Show that
⎡ k −1 ⎤ z −1
z ⎢ ∑ x ( h) ⎥ = −1
x( z )
⎣ n =0 ⎦ 1− z
∞
And , ∑ x(k ) = z ⎯⎯→1X ( z )
k =0
lim
Date: 2065/5/15
Example 05: (c ) x(k-2) –x(k-1) + 0.25x(k) = 4 (k-2)
X(0 ) = 1
X(k) = 0 for, K < 0 and u(k) = 1 for k ≥ 0
Solution:
Example: 06
Given, x(k+2) = x(k+1) + x(k) , x(0) = 0 and x(1) = 1
To get x(k)
And to prove,
Lim k ∞ x(k+1) /x(k) = (1+ √5)/2 = 1.6180
We have ,
X(k+2) = x(k+1) + x(k)
Z[x(k+2)= z[z(k+1) +x(k) ]
Z2x(z) – z2 x(0) – 2x(1) = z x(z) – 2x(0) + x(z)
Or, z2x(z) – 2x(z) – x(z) = z2x(0) + 2x(1) – 2x(0)
z
Or, x(z) = 2
z − z −1
x( z ) z
= 2
z z − z −1
Now, the roots of z2-z -1 are
− b ± b 2 − 4ac
=
2a
− 1 ± 1 − 4.1(−1)
=
2 .1
1± 5
=
2
1+ 5
=
2
1− 5
=
2
x( z ) z 1
= 2 =
z z − z − 1 ⎡ ⎛ 1 + 5 ⎞⎤ ⎡ ⎛ 1 − 5 ⎞⎤
⎢ z − ⎜⎜ ⎟⎥ ⎢ z − ⎜
⎟ ⎜
⎟⎥
⎟
⎢⎣ ⎝ 2 ⎠⎥⎦ ⎢⎣ ⎝ 2 ⎠⎥⎦
A B
= +
⎡ ⎛ 1 + 5 ⎞⎤ ⎡ ⎛ 1 − 5 ⎞⎤
⎢ z − ⎜⎜ ⎟⎥ ⎢ z − ⎜
⎟ ⎜ 2 ⎟⎥
⎟
⎣⎢ ⎝ 2 ⎠⎦⎥ ⎣⎢ ⎝ ⎠⎦⎥
We get,
A = 1/√5 , B = -1/√5
⎡ ⎤
⎢ ⎥
x( z ) 1 ⎢ 1 1 ⎥
= ⎢ − ⎥
z 5 ⎢ ⎡ ⎛ 1 + 5 ⎞⎤ ⎡ ⎛ 1 − 5 ⎞⎤ ⎥
⎜ ⎟ ⎜ ⎟
⎢ ⎢ z − ⎜ 2 ⎟⎥ ⎢ z − ⎜ 2 ⎟⎥ ⎥
⎢
⎣⎣ ⎝ ⎥
⎠⎦ ⎣ ⎝ ⎢ ⎠⎥⎦ ⎦
⎡ ⎤
⎢ ⎥
1 ⎢ 1 1 ⎥
x( z ) = ⎢ − ⎥
5 ⎢ ⎡ ⎛ 1 + 5 ⎞ −1 ⎤ ⎡ ⎛ 1 − 5 ⎞ −1 ⎤ ⎥
⎜ ⎟ ⎜ ⎟
⎢ ⎢1 − ⎜ 2 ⎟ z ⎥ ⎢1 − ⎜ 2 ⎟ z ⎥ ⎥
⎢
⎣⎣ ⎝ ⎥
⎠ ⎦ ⎣ ⎝ ⎢ ⎠ ⎥⎦ ⎦
Taking inverse z-transform we get,
1 ⎡⎛ 1 + 5 ⎞ ⎛1 − 5 ⎞ ⎤
k k
x(k ) = ⎢⎜ ⎟ −⎜ ⎟ ⎥
5 ⎢⎣⎜⎝ 2 ⎟⎠ ⎜ 2 ⎟ ⎥ …………….(i)
⎝ ⎠ ⎦
Similarly we can write,
1 ⎡⎛ 1 + 5 ⎞ ⎛1 − 5 ⎞ ⎤
k +1 k +1
x(k + 1) = ⎢⎜ ⎟ −⎜ ⎟ ⎥
5 ⎢⎣⎜⎝ 2 ⎟⎠ ⎜ 2 ⎟ ⎥ ……….(ii)
⎝ ⎠ ⎦
From (i) and (ii)
⎡⎛ 1 + 5 ⎞ k +1 ⎛ 1 − 5 ⎞ k +1 ⎤
⎢⎜ ⎟ ⎜ ⎟ ⎥
⎢ ⎜ 2 ⎟ −⎜ 2 ⎟ ⎥
x(k + 1) ⎣ ⎝ ⎠ ⎝ ⎠ ⎦
=
x(k ) ⎛1 + 5 ⎞
k
⎛1 − 5 ⎞
k
⎜ ⎟ ⎜ ⎟
⎜ 2 ⎟ −⎜ 2 ⎟
⎝ ⎠ ⎝ ⎠
Here,
1− 5
< 1 when k ∞
2
k
⎛1 − 5 ⎞
Lim k ∞ ⎜⎜ ⎟ →0
⎟
⎝ 2 ⎠
k k +1
⎛1 − 5 ⎞ ⎛1 − 5 ⎞
The terms ⎜⎜ ⎟ and ⎜
⎟
⎟
⎜ 2 ⎟ can be neglected when
⎝ 2 ⎠ ⎝ ⎠
k ∞ , Thus the equation (iii) become,
k +1
⎛1 + 5 ⎞
⎜ ⎟
x(k + 1) ⎜⎝ 2 ⎟⎠ 1+ 5
lim k → ∞ = = = 1.6180 proved
x(k ) ⎛1 + 5 ⎞
k
2
⎜ ⎟
⎜ 2 ⎟
⎝ ⎠
Impulse Sampling:
Let us consider an ideal sampler commonly called an impulse sampler. We assume x(t )
= 0 for t< 0. The sampler o/p is equal to the product of the continuous time i/p x(t) and
train of unit impulse δT(t) which means the sampler may be considered as a modular with
x(t) as the modulating signal and δT(t) as the carrier as shown in fig1 below.
Modulator
x(t) x*(t)=x(t)×δΤ(t)
δΤ(t)
Figure:1
Let us consider x*(t) to represent the impulse sampled o/p. The sampled signal x*(t), a train
of impulses, can thus be represented by the infinite summation, i.e x*(t) =
∞
∑ x(kT )δ (t − kT ) ……..(i)
k =0
x*(t) = x(0)δ (t ) + x(T )δ (t − T ) + x(2T )δ (t − 2T ) + ........ ------- (ii)
Here, we are defining ,
∞
δ T (t ) = ∑ δ (t − kT ) ………….(iii)
k =0
Now taking the laplace transform of equation (iii) we get
ℒ[x*(t)] = x*(s) = x(0) ℒ[δ(t)]+x(T)ℒ[δ(t-T)]+ x(2T)ℒ[δ(t-2T)]+…..
X*(s) = x(0).1+x(T).e-Ts + x(2T).e-2Ts +…….
∞
X*(s) = ∑ x(kT )e
k =0
− kTS
…………….(iv)
i.e X * ( s ) 1 = X ( z) ……………(vi)
s= . ln z
T
Data hold:
Data hold is a process of generating a continuous time signal h(t) from a discrete time
sequence x(k). A hold ckt covert the sampled signal into a continuous time signal. A hold ckt
hold the amplitude of the sampled from one sampling instant to the next. Such a data hold is
called zero order hold or clamper or stair case generator. The o/p of the zero order hold is a
staircase function.
Assuming x(t) = 0 for t<0,
The ZOH circuit smoothens the sampled signal to produce the signal h(t) , which is constant
for the last sampled value until the next sample is available, i.e ,
h1(t+kT) = x(kT) for 0 ≤ t ≤ T …………..(i)
The o/p h1(t) may be assumed as
h1(t) = x(0) [ 1(t) -1(t-1)]+x(T) [ 1(t-1)-1(t-2T)] + x(2t)[1(T-2t)
-1(t-3T)]+ ………….
∞
h1(t) = ∑ x(kT )[1(t − kT ) − 1(t − (k + 1)T )]
k =0
…………..(ii)
We know that
ℒ[1(t-kT)] = e-kTs/s
Therefore , the laplcae transform of equation (ii) be written as:
∞
ℒ[h1(t)] = H1(s) = ∑ x(kT ) ℒ [1(t-kT) -1(t-(k+1)T)]
k =0
− kTS
∞
e e − ( k +1)TS
= ∑ x(kT )
k =0 s
−
S
− kTS − ( k +1)TS
∞
e −e
= ∑ x(kT )
k =0 s
1 − e −TS ∞
H1(s) =
s
∑
k =0
x(kT ).e − KTS ………..(iii)
Date: 2065/5/17
Where, the integration is along the line from c-j∞ to c+j∞ and this line is parallel to
1
imaginary axis in the p-plane and separate the poles of X(P) from those of
[1 − e −T ( s − p ) ]
Equation (i) also be written as
1 X ( p)
X * ( s) = ∫
2πj 1 − e −T ( s − p )
dp
The above integral is equal to the sum of residues of X(p) in the closed container i.e
⎡ X ( p) ⎤
X * ( s ) = ∑ ⎢residue of −T ( s − p )
at poles of X ( p)⎥
⎣ 1− e ⎦
But we know that
eTs = z
X*(s) = X(z)
⎡ X ( p) z ⎤
X ( z ) = ∑ ⎢residue of at poles of X ( p)⎥
⎣ z−e Tp
⎦
By changing the complex variable rotation from p to s obtained
⎡ X ( s) z ⎤
X ( z ) = ∑ ⎢residue of at poles of X ( s )⎥
⎣ z − es ⎦
Assume that X(s) has poles S1 , s0 ……sm. If a pole at s = sj is a simple pole , then residue.
⎡ X ( s) z ⎤
k j = s ⎯⎯→lim
s j ⎢( s − s j ).
⎣ z − e TS ⎥⎦
If a pole at s = si is a multiple pole of order ni , then the residue ki =
1 d ⎡ X ( s) z ⎤
s ⎯⎯→ lim
s i ni −1 ⎢( s − s j ) n .
(ni − 1)! ds ni −1 ⎣ z − e Ts ⎥⎦
1
Example:01: Obtained the z-transform of X(s) = by the use of convolution integral
s ( s + 1)
2
method.
Solution:
1
X(s) =
s ( s + 1)
2
X ( s) z z
= 2
z−e TS
s ( s + 1)( z − e TS )
Thus by convolution integral method,
⎡ z ⎤
X ( z ) = ∑ ⎢residue of 2 at poles of X ( s )⎥
⎣ s ( s + 1)( z − e )
TS
⎦
= k1 + k2
⎡ z ⎤
Where, k1 = s ⎯⎯→ lim
−1⎢.( s + 1). 2 TS ⎥
⎣ s ( s + 1)( z − e ) ⎦
z
=
1 − ( z − e −T )
z
K1 =
( z − e −T )
1 d ⎡ 2 z ⎤
K2 = s ⎯⎯→lim
0 ⎢s . 2 −Ts ⎥
(2 − 1)! ds ⎣ s ( s + 1)( z − e ) ⎦
d ⎡ z ⎤
= s ⎯⎯→ lim
0 ⎢. 2 Ts ⎥
ds ⎣ s ( s + 1)( z − e ) ⎦
− z 2 + z + zT
=
( z − 1) 2
Thus X(z) = k1 +k2
z − z 2 + z + zT
= +
( z − e −T ) ( z − 1) 2
1 − 1 + z −1 + z −1T
= +
1 − z −1 e −T (1 − z −1 ) 2
1 − e −TS ⎡ G ( s) ⎤
Example:02: .G ( s) . Prove that X ( z ) = (1 − z −1 ) z ⎢
Given X ( s ) = ⎥ OR
s ⎣ s ⎦
consider the zero order Hold circuit succeeded by the plant with transfer function G(s).
Explain how would you determine the z-transform of such combined system.
Soluotion:
Suppose the transfer function G(s) follows the zoH. Then, the product of the transfer function
of ZOH and G(s) becomes:
1 − e −TS
X ( s) = .G ( s)
s
⎡ G ( s) ⎤
X(s) = (1 − e −TS ) ⎢ ⎥
⎣ s ⎦
X(s) = (1 − e TS ).G1 ( s)
X(s) = G1 ( s ) − e − TS .G1 ( s)
X(s) = G1 ( s ) − X 1 ( s )
Where X1(s) = e-TS.G1(s)
ℒ -1[X1(s)] = ℒ -1[e-TSG1(s)]
= ℒ -1[e-TS]*ℒ -1[G1(s)]
ℒ -1[X1(s)] = g0(t) * g1(t)
t
x1(t) = ∫g
0
0 (t − τ ) * g 1 (τ )dτ
But,
ℒ -1[e-TS] = δ (t-T)
t
Thus , x1(t) = ∫ δ (t − T − τ ).g 1 (τ )dτ
0
= g1(t-T)
Hence by writing z[g1(t)] = G1(z)
Thus,
Z[x1(t) ] = z[g1(t-T)]
X1(z) = z-T.G1(z)
Thus , X(s) = G1 (s) –X1(s)
Or, X(z) = z[g1(t)]-z[X1(t)]
= G1(z) –z—T.G1(z)
= G1(z)[1-z-T]
= [1-z-T].z[G(s)/s] [G1(s) = z[(G(s))/s]
∴ X(z) = (1-z-T) z.(G(s)/s)
For T = 1,
X(z) = (1-z-1).z [G(s)/s] proved
Fig.
1 − e −s 1
G(s) = k. .
s s ( s + 1)
1 − e −s
G(s) = . [since k = 1]
s 2 ( s + 1)
G(z) = Z[G(s)]
⎡ 1 − e −s ⎤
= z⎢ 2 ⎥
⎣ s ( s + 1) ⎦
0.3679 z + 0.2642
=
( z − 0.3679)( z − 1)
Now the closed loop transfer function of G(z) is
C(z)/R(z) = G(z)/[1+G(z)]
Therefore , the characteristics equation is given by ,
1+G(z) = 0
0.3679 z + 0.264 z
1+
( z − 0.3679)( z − 1)
Or (z-0.3679)(z-1) + 0.3679z+0.2642
Z2-z+0.6321 = 0
From which we get,
Z2 –z+0.6321 = 0
Form which we get,
Z1 = 0.5+j0.6181
Z2 = 0.5 – j0.6181
∴ |z| = |z1| = |z2| = √ (0.52 + (0.6181)2) = 0.7950
Since the |z| < 1 , the system is stable.
Where,
⎡a a n −1− k ⎤
bk = ⎢ n k = 0,1,2…….n-1
⎣a 0 a k +1 ⎥⎦
⎡b a n −2− k ⎤
ck = ⎢ n −1 k = 0,1,2…….n-2
⎣ b0 bk +1 ⎥⎦
.
.
⎡ p P2 − k ⎤
qk = ⎢ 3 ⎥ k = 0,1,2
⎣ P0 Pk +1 ⎦
Date: 2065/5/22
The jury stability Test:
P(z) = a0zn+ a1zn-1+ a2zn-2 + ……. An-1z+an ……..(i)
Where,
a0 > 0 then, for a stable system the following conditions should be fulfilled.
1. |an| > a0
2. p|(z)|z =1 > 0
3. P(z)|z= -1 > 0 n = even
< 0 n = odd
4. |bn-1| > |b0|
|Cn-2| > |c0|
|q2| > |qo|
Example:01: construct the Jury stability table for the following equation. P(z) = a0z4+ a1z3+
a2z3 +a3z+a4 ,Where a0 > 0. Write the stability conditions since n = 4 the stability conditions
are:
(i) |a4| > a0
(ii) p|(z)|z =1 = a0+ a1+ a2 +a3+a4
(iii) P(z)|z= -1 = a0- a1+ a2 -a3+a4 > 0 [since n = 4 = even ]
(iv) |b3| > |b0|
|C3| > |c0|
The Jury stability table can be constructed for n = 4 as follows:
Row z0 Z1 Z2 Z3 Z4
a4 a0 = b3
a3 a4
a4 a1 = b2
a0 a3
a4 a2 = b1
a0 a2
a4 a3 = b0
a0 a1
b3 b0 = c2
b0 b1
b3 b1 = c1
b0 b2
b3 b2 = c0
b0 b1
Row z0 Z1 Z2 Z3 Z4
-0.08 1 = -0.993
1 -0.08
-0.08 -1.2 = 1.176
1 0.3
-0.08 0.07 = -0.0756
1 0.07
-0.08 0.3 = -0.204
1 -1.2
-0.9936 -0.204 = 0.9456
-0.204 -0.0756
-0.9936 -0.0756 = -1.1838
-0.204 -1.176
-0.9936 1.176 = 0.315
-0.204 -0.0756
Example: 03: A control system has the following characteristics equation P(z) = z3 –
2
1.3z – 0.08z + 0.24 = 0
Determine the stability of the system by jury stability test.
Example:04: Examine the stability of the characteristics equation given by : P(z) = z3 – 1.1z2
– 0.1z + 0.2 = 0 . Use jury method.
Example: 05: Consider the discrete time unity feed back control system whose open loop
transfer function is given
K (0.3679 z + 0.2642)
G(z) = Determine the range of k for stability by the use of Jury
( z − 0.3679)( z − 1)
method.
Solution:
K (0.3679 z + 0.2642)
G(z) =
( z − 0.3679)( z − 1)
The close loop transfer function is
T(z) = G(z)/ 1+G(z) of whose characteristics equation is given by
1+G(z) = 0
K (0.3679 z + 0.2642)
Or, 1+ =0
( z − 0.3679)( z − 1)
P(z) = z2 + ( 0.3679k – 1.3679)z + 0.3679+0.2642k = 0
Here ,
a0 = 1
a1 = (0.3679k – 1.379)
a2 = 0.3679 + 0.2642k
For the system to be stable the conditions are :
(i) |a2| < a0
i.e | 0.3679+0.2642K|< 1
0.2642K < 0.632
K < 2.3925
(ii) p|(z)|z =1 = 1+ 0.3679k- 1.3679 + 0.3679+ 0.262K
K>0
(iii) p|(z)|z =-1 = (1- 0.3679k+ 1.3679 + 0.3679+ 0.262K ) > 0
= 2.7358 – 0.1037k > 0
2.7358 > 0.1037k
K < (2.7358)/(0.1037)
K < 26.3818
Combining (i) (ii) and (iii) conditions
K < 2.3925
K>0
0 < K < 2.3925
Solution:
Here,
P(z) = z3 – 1.3z2 – 0.08z +0.24 = 0
Using Bilinear Transformation , i.e
w +1
z= , we get P(z) as,
w −1
P(z)|z=(w+1)/(w-1) = P(w) = [(w+1)/(w-1)]3 – 1.3 [(w+1)/(w-1)]2 – 0.08[(w+1)/(w-1)] + 0.24 =
0
W3 1 -36.43
W2 -7.75 -14.14
W1 -38.30 0
W0 -14.14
The above equation and array show that there is a sign change in the following system is not
stable. It indicates that there is a pole in the right half of w plane which in turn indicates that
there is a pole outside the unit circle in z-plane.
Solution:
Y(z) -0.6z-1y(z) – 0.81z-2 y(z) + 0.6z-3y(z)- 0.12z-4 y(z) = X(z)
Y ( z) 1
=
X ( z ) 1 − 0.6 z − 0.81z + 0.6 z −3 − 0.12 z − 4
−1 −2
z4
z 4 − 0.6 z 3 − 0.81z 2 + 0.6 z − 0.12
For which the characteristics equation is
Z4 – 0.6z3 – 0.81z2 + 0.6z – 0.12 = 0
Date: 2065/6/5
S-plane to z-plane mapping:
Or in general,
Z = eTσ . e(Tw + 2 π k) ……….(iii)
We see that the poles and zeroes in s-plane , where frequencies differ in integral multiple of
the sampling frequency 2 π /T are mapped into the some locations in the z-plane . This means
that there are infinite may values of s for each value of z.
Since σ is –ve in the left half of the s-plane , the left arm of the s-plane corresponds to |z|
= e ) = e-T σ < 1
T(‐σ
The jw- axis in the s-plane corresponding to |z| = 1 (∴ σ =0) i.e the imaginary axis in the s-
plane (the line σ =0) corresponding to the unit circle in the z-plane and interior of the unit
circle corresponds to the left half of the s-plane.
jw im
Complementary
strip
3
Primary
strip Re Re
Complementary
strip
z-plane
s-plane
jw im
eT σ2
1
σ Re
-σ1 0 σ2
e-T σ1
s-plane z-plane
jw im
1
Re
-σ1
s-plane
z-plane
jw im
w1
w2 w2T
w1T
σ Re
w1T
-w1
s -plane z -plane
(iii) Mapping of constant damping ratio. (ξ ) A constant damping ratio line (a radial line)
in the s-plane is mapped into a spiral in the z-plane as shown in figure below.
ξ = ξ1
Re
s -plane
z -plane
⎡ 2π wd w ⎤
Z = exp. ⎢ + j 2π d ⎥
⎣1 − ξ ws
2
ws ⎦
Hence ,
⎡ − 2πξ w ⎤
|z| = exp ⎢ d
⎥
⎢⎣ 1 − ξ 2 w
s ⎥
⎦
wd
∠ z = 2π
ws
Example:01: For a given region in s-plane draw the corresponding region in z – plane.
jw
jw1
e−σ1Τ
e−σ2Τ
-jw2
σ=−σ2 σ=−σ1
2065/6/5
As HLPF(f) = 0 for the frequency components higher then fx , the spectrum at the output of
LPF for
K = 1/fs will be x(f) , the spectrum of the message signal .
Which is shown in equation (i)
In time domain
X(t) = f-1[x(f)] = f-1[xδ(f) HLPF(f)]
∴ x(t) = xδ (t) * hLPF(t)
Where hLPF(t) is the impulse response of ideal LPF which is expressed as.
hLPF (t) = 2BTs sinc [ 2Bt]
Where,
Ts = 1/fs
B = fx , the higher frequency component.
Thus signal at the output of low pass filter for
∞
Xδ(t) = x(kTs) ∑
n = −∞
x(kTs) δ(t- kTs) at t = kTs
Will be,
∞
x(t) = x(kTs) ∑
n = −∞
x(kTs) δ(t- kTs)*2BTs sinc [2Bt]
∞
x(t) = 2BTs ∑
n = −∞
x(kTs) sinc [2B(t-kTs)] ……….(ii)
The above equation (ii) shows that the original message signal
Can be reconstructed from its sampled values x(kTs) if the sampling is done at Ts ≤ 1/2fx
Chapter: 3
X(z) Y(z)
G(z)
The transfer function for the continuous time system relates the Laplace Transform of the
continuous time output to that of continuous time input while the pulse transfer function
relates the z-transform of the output at the sampling instants to that of the sampled input.
The pulse transfer function is defined by
G(z) = Y(z)/X(z) …………..(i)
Of the discrete time system As seen from the above equation we write,
Y(z) = G(z) x(z) ……..(ii)
Equation (ii) may also be written as,
Y*(s) = G*(s) x*(s) ……………..(iii)
The pulse transfer function for the figure (ii) (a) will ve ,
G(z) = Y(z)/X(z)
Also , the transfer function for the system shown in fig (ii) (b) will be , G(s) = Y(s)/X(s)
The important fact to be noted is that the pulse transfer function for the system
in fig (ii) (b) is not z-transfer of z[G(s)], because of the absence of the instant sampler.
The presence or absence of the input sampler is crucial in determining the pulse transfer
function of the system. This difference is explained below.
Consider the case as shown in fig (ii) (a)
ℒ [y(t)] = Y(s) = G(s) X*(s)
Taking starred Laplace transform on both sides, we get,
Y*(s) = G*(s) X*(s)
Or, Y(z) = G(z) X(z) ……………(i)
Now let us consider the case for fig (ii) (b) ,
ℒ [y(t)] = Y(s) = G(s) X(s)
Taking Starred LT on both sides,
Y*(s) = [G(s)X(s)]*
Y*(s) = [GX(s)]*
Where, GX(s) = G(s)X(s)
Or Y(z) = z[GX(s)] …………………(ii)
Thus equation (i) and (ii) clearly describe the presence and absence of instant sampler.
Date:2065/6/12
Consider the system shown in fig (iii) (a) we can write that
G(s) = G(s).X*(s) ……………..(i)
Y(s) = H(s).U(*(s) ……….(ii)
Now taking starred laplace transform of equation (i) and (ii)
U*(s) = G*(s).X*(s) …………(iii)
Y*(s) = H*(s) U*(s) …………….(iv)
From equation (ii)
Y*(s) = H*(s)U*(s)
= H*(s).G*(s).X*(s)
Or, Y*(s)/X*(s) = G*(s). H*(s)
Taking z-transform of the above equation.
Y*(z)/X*(z) = G(z).H(z) …………….(v)
Which is the pulse transfer function between i/p x*(t) and o/p y*(t)
Example:01: Consider the system shown in figs (iii) a & b obtained the pulse transfer
function (PTF) Y(z)/X(z) for each of these tow systems.
G(s) = 1/(s+a)
H(s) = 1/(s+b)
Y(z)/X(z) = G(z)H(z)
= z[G(s)] z[H(s) ]
= Z[1/(s+a)] z[1/(s+b)]
Y(z)/x(z) = 1/(1-e-aTz-1). 1/(1-e-bTz-1) for fig (iii) (a)
For fig (iii) (b)
Y(z)/X(z) = GH(z)
= z[GH(s)]
=z[G(s)H(s)]
=z[1/(s+a).1/(s+b)]
⎡ A B ⎤
= z⎢ + ⎥
⎣s + a s + b⎦
⎡1 −1 ⎤
=z ⎢ b − a + b − a ⎥
⎢ s+a s+b ⎥
⎣ ⎦
⎡ 1 ⎡ 1 1 ⎤⎤
=z ⎢ .⎢ − ⎥⎥
⎣ b − a ⎣ s + a s + b ⎦⎦
⎡ 1 ⎡ 1 1 ⎤⎤
Y(z)/X(z) = ⎢ .⎢ − − BT −1 ⎥ ⎥
for fig (iii) (b)
⎣ b − a ⎣1 − e z
− AT −1
1 − e z ⎦⎦
Thus we conclude that G(z).H(z) is not equal to function GH(z).
H(s)
Assignment # 3:
(1) Prove the given PTF for the closed loop system shown in Table 3.2 (page 112) form
k. Ogata book .
Fig. (v)
From fig (v) , let ,
1-e-Ts/s. Gp(s) = G(s) ……..(i)
Also,
C(s) = G(s) GD*(s) E*(s)
Or C(s) = G*(s) GD*(s) E*(s) ………(ii)
In term of z-transform, equation (iii) can be written as:
C(z) = R(z) – C(z) ………(iv)
Thus , equation (iii) becomes
C(z) = G(z) GD(z)[R(z)-C(z)]
C(z) = [ 1+G(z)GD(s)] = G(z) GD(z) R(z)
Or C(z)/R(z) = G(z)GD(z) / 1+G(Z)GD(z)
C(z)/R(z) = GD(z)G(z)/1+GD(z)G(z) ………(v)
Which the required closed loop PTF of a Digital control system.
⎡ 1
t
de(t ) ⎤
m(t) = kp ⎢e(t ) + ∫ e(t )dt + Td ⎥ ………….(i)
⎣ T i 0
dt ⎦
where e(t) is the i/p to the controller , m(t) is the o/p of the controller, k is the proportionality
gain , Ti is the integral time and Td is the derivative time.
To obtain the PTF for the digital PID controller , we first discritise equation (i) .
Then , by approximating the integral term by the Trapezoidal summation rule and the
derivative term by two-point difference formula. Thus equation (i) becomes at t = kT ,
⎡ 1 ⎡ e(0) + e(T ) e(T ) + e(2T ) e(k − 1) + e(kT ) ⎤ ⎤
⎢e( KT ) + T T ⎢ 2
+
2
+ ...... + ........
2 ⎥⎥
m (kT) = kp ⎢ i ⎣ ⎦⎥
⎢ e(kT ) − e(k − 1)T ⎥
⎢ + Td . ⎥
⎣ 2 ⎦
Also ,
⎡ e((h − 1)T ) + e(hT ) ⎤
F(z) =z[f(hT)]= z ⎢ ⎥
⎣ 2 ⎦
F(z) = (1-z-1)/2.E(z)
Thus from equation (iv) becomes,
⎡ k e((h − 1)T ) + e(hT ) ⎤ 1 + z −1
z ⎢.∑ ⎥ = 2(1 − z −1 ) E ( z ) ……….(V)
⎣ h =1 2 ⎦
Hence equation (ii) becomes by taking z-transform on both sides,
⎡ T 1 − z −1 Td −1
⎤
M(z) = z[m(kT)] = Kp ⎢ E ( z ) + . E ( z ) + (1 − z ) E ( z ) ⎥
⎣⎢ Ti 2(1 − z −1 ) T ⎦⎥
-1 -1 -1
M(z) = kp [1+T/2Ti +(1+z )/(1-z )+Td/T .(1-z )].E(z)
⎡ T T 1 T ⎤
M(z) = kp ⎢1 − + . −1
+ d .(1 − z −1 )⎥ E ( z )
⎣ 2Ti Ti 1 − z T ⎦
⎡ Ki ⎤
M(z) = ⎢kp'+ −1
+ k D .(1 − z −1 )⎥ E ( z ) ……….(vi)
⎣ 1− z ⎦
⎛ T ⎞
Where, kp’ = k p ⎜⎜1 − ⎟ = proportional gain
⎝ 2Ti ⎟⎠
⎛T ⎞
Ki = k p ⎜⎜ ⎟⎟ = Integral gain
⎝ Ti ⎠
⎛T ⎞
Kd = k p ⎜ d ⎟ = Derivative gain
⎝T ⎠
Form equation (vi) we can write that
⎡ Ki ⎤
GD(z) = M(z)/E(z) = ⎢kp'+ −1
+ k D .(1 − z −1 )⎥ ………(vii)
⎣ 1− z ⎦
Where, GD(z) is the closed loop PIF for digital PID controller equation (vii) is also know as
the proportional form of PID control scheme.
(i)Direct programming:-
Equation (i) can be represented as
Y(z) = boX(z) +b1X(z)z-1+b2X(z)z-2+……….
bmXz-m- a1Y(z)z-1-a2Y(z)z-2-………..-
anX(z)z-n
H ( z) 1
= −1 −2
_______________(iii)
X ( z ) Ha1 z + a 2 z + .........a n z − n
From equation (ii)
Y(z) = boH(z) +b1H(z)z-1 +b2H(z)z-2 +…….bmH(z)z-m _____________(iv)
From equations (iii),
H(z) = X(z) – a1H(z)z-1 –a2H(z)z-2-…………………..anH(z)z-n ____________(v)
(iii) Ladder programming:- In this case the PTF G(z) is represented in continued
fraction as follows:-
1
G(z) = Ao =
1
B1z +
1
A1 +
1
1B2Z +
.
.
.
.
1
An−1 +
1
DnZ +
An
The programming method based on this scheme is known as ladder programming.
Let, us defines:-
(b ) 1
Gi ( Z ) = , i = 1,2.............n − 1
Biz + Gi ( A)( A)( z )
( A) 1
Gi (Z ) = (B)
, i = 1,2.............n − 1
Aiz + Gi +1 z
1
Gn ( B ) ( Z ) = , i = 1,2.............n − 1
1
BnZ +
An
For simplicity, let us assume,
n=2
then,
1
G( z) = Ao =
1
B1 z +
1
A1 +
1
1B2 Z +
.
.
.
.
1
An−1 +
1
Dn Z +
An
By the use of the function, Gi(B)(Z) G(A)(Z), and G2(B)(Z); the G(z) may be rewritten as:
1
G(z) = Ao +
1
B1z + (B)
A1 +G2 (Z)
1
= Ao +
B1 z + G1 ( A) ( z )
G(z) = Ao +G1(B)(z)
Also , it is to be noted that ,
( B) Yi ( z ) 1
Gi ( z) = =
X i ( z ) Bi z + Gi ( A) ( z )
Or, Xi(z) = Bizyi(z) +Gi(A)zYi(z)
Or, Xi(z) = Gi(A)(z) Xi(z) = BizYi(z)
Or, Yi(z) =1/Bi[Xi(z)-Gi(A)(z)Y(x)]Z-1
`
Fig: for n= 2, representation of G(z) using ladder programming..
Example:-01
` Obtain the block diagram for the following PTF by,
(i) direct programming
(ii) standard programming
(iii)ladder programming.
(iii)Ladder Programming:-
G(z) = 2 – 0.6z-1 = 2z -0.6
1+ 0.5z-1 z + 0.5
Now, using continued fraction method,
Z+0.5) 2x – 0.6( 2
-2z ± 1
-1.6)z + 0.5( 1z/-1/6
-z
0.5)-1.6(-3.2
-1.6
X
G(z) = 2 + 1
1z + 1
-1.6 -3.2
Ao = 2 , B1 = -1/1.6, A1 = -1/3.2
Delay time (td):- the delay time is the time required for the response to reach half the final
value vary first time.
(2) Rice time :- the rise time is the time required for the response to rise from 10% to
90% to 95% or 0 to 100% of it’s final value of ending on the response.
(3) Peak time:- peak time is the time required for the response to reach the first peak of
the over shoot.
(4) Maximum over shoot (Mp):- It is the maximum peak value of the response
measure from the unity. If the final steady state value of the response differs from
the unity. Then it is common to use maximum percent overshoot which is defined
by
Maximum % overshoot = C(tp) – C(∞) x 100%
C(∞)
Where,
C(tp) = Amplitude at time tp
C(∞) = Final steady state value.
(5) Setting time (ts):- It is the time required for they response curve to reach an stay
within a range about the final value of a size specified as an absolute % of the final
value.
Steady state error analysis
∴ess = 1
1+Kp
ess = lim T
z→1 (1-z-1)(1+GH(z))
now,
static velocity error constant Kv is defined by,
Kv = Lim (1-z-1)(1 + GH(z)
z→1 T
∴ess = 1/Kv
Examples:-
Draw a root locus diagram for the system of the sampling period T = 0.5 sec. Also,
determine the critical value of k. finally locate the closed loop poles corresponding to
k = 2.
The General DCS of Fig (i) is of integral type for which.
GD(z) = Ki
Ki = integral gain.
Now, for closed loop poles, we provide as follows,
⎡1 − e − TS 1 ⎤
Z [Gn( S )Gp( s)] = Z ⎢ .
⎣ S ( s + 1) ⎥⎦
⎡1 1 ⎤
= (1 − z −1 ) Z ⎢ −
⎣ s s + 1⎥⎦
⎡ 1 1 ⎤
= (1 − z −1 ) ⎢ −1
− e −T −1 ⎥
⎣1 − z 1− Z ⎦
Or, Z[Gn(s).Gp(S)] = 1 - 1-Z-1
1-e-1z-1
=1- e-1z-1-1+ z-1
1-e-Tz-1
= z-1(1-e-T)
(1-e-Tz-1)
=1-e-T
z-e-T
∴The open loop poles will be,
Ki. 1-e-T
1-z-1 z-e-T
-T
Or, Kiz(1-e ) = G(z)
(z-1)(z-e-T)
G(z) = Kiz(1-e-0.5)
(z-1)(z-e-0.5)
G(z) = Kiz(0.393)
(z-1)(z-e-0.606)
∴ G(z) = 0.393kz =0
(z-1)(z-0.606)
In order to draw the root locus diagram, we need to first determine, we need to first
determine the break in points or break array point which is evaluated as below,
We know,
1 + G(z) = 0
Or, 1 + K B(z) = 0
A(z)
Where,
G(z) = K B(z)
A(z)
And , K = -A(z)
B(z)
Then, the breakaway and break in point is determined as,
Dk = -A’(z)B’(z) +A(z)B’(z) = 0
Dz B2(z)
If the value of k corresponding to a root z =zo of , is +ve , point z = zo is an actual
breakaway or break in points.
The given characteristic equations is
1+ ki 0.393z = 0
(z -1)(z -0.606)
Here, We assume,
Ki = K
The, 1 + Kz 0.393
(z-1)(z-0.606)
Here, A(z) = (z – 1) (z – 0.606)
B(z) = KZ 0.393
∴ K = -A(z) =- (z -1) ( z – 0.606)
B(z) z 0.393
= 1 - 0 - 0.606
0.393 z2 0.393
= z2 - 0.606 =0
2
Z – 0.393
Z = 0.7788 ( and also z = -0.7788)
For which,
Ki = -A(z)
B(z)
= -(z-1)(z-0.606)
Z 0.393
2
= - Z – 1.606z + 0.606)
Z 0.393
= - ((0.7788)2 – 1.606 x 0.7788 + 0.606)
0.7788 x 0.393
For which,
K1 = 8.048 for, z = - 0.7788
K2 = 0.124 for, z = 0.7788
Recall that,
S = r Wn + jWn 1 − r 2
For,
Z = eTS
= eT(-rWn +jWn 1 − r 2 )
From which, we get,
/z/ = e-TrWn
And <Z = TWn 1 − r 2
But, Wd = Wn 1 − r 2
∴<Z = θ = TWd
# For Z = 0.4098 + j 0.6623 and T = 0.5 sα, Find out the damping ratio. We know for
damping ratio r.
/Z/ = e-TrWn __________(i)
And < Z = TWx 1 − r 2 __________(ii)
But, from the given condition,
/Z/ = (0.40987 )2 + (0.6623) 2 = 0.7788 _________(iii)
⎛ 0.6623 ⎞
and <Z = tan-1 ⎜ ⎟ = 58.25 = 1.0166rad _________(iv)
0
⎝ 0.4098 ⎠
Form equation (i) & (iii)
e-TrWn = 0.7788
or, =TrWn = -0.25
rWn = 0.5_________(v)
Similarly, from equation (ii) and (iv),
1.0166 = TWn 1 − r 2
Or,Wn 1 − r 2 = 2.0332_________(vi)
Dividing equation (vi) and (v) ,
1 − r 2 = 2.0332
r 0.5
⇒ r = 0.254
Also, 1.0166 = TWn 1 − r 2
Wn = 1.0166 = 1.0166 = 1.968 rad/sec
T 1− r 2 0.5 1 − 0.254
Wd = Wn 1 − r 2
= 1968 1 − (0.254) 2
= 1.903 rad/sec.
Question:- Find out the static velocity error constant for G(z) for K = 2.
Kv = lim G(z) (1-z-1)
Z→1 T
For T = 0.5 sec, we had,
G(z) = 0.393 Kz
(z-3)(z-0.606)
= 0.393 x 2 x 2
(z-3)(z-0.606)
= 0.786z
z-3)(z-0.606)
Kv = Lim 0.786z (1-z-1)
Z→1 (z-3)(z-0.606)
= 3.99
Try for T = 1 and T = 2 sec
.
Question:- Design a digital controller for the system shown below. Given r = 0.5 and
setting time of 2sec. The sampling period is assumed to be 0.2 sec. obtained the response
of designed digital control system to a unit step o/p. Also obtained static velocity error
constant of the system.
Hint:- ts = 4/rWn
= Z[1-e-TS. 1
S S(S+)
=(1-z-1)Z 1
2
S (S+2)
For which ,
G(z) = 0.01758 (Z+0.8760)
(z-1)(z-0.6703)
Here,
=Z 1
S2(S+2)
=Z A + B+ C
S S2 S+2
A= d S. 1
Ds S@(S+@ S = 0
2
B=S . 1
2
S (S+2) S = 0
C = (S+2). 1
2
S .(S+2). S = -2
-1
G(z) = 1 – Z ) Z -0.25 + 0.5 + 0.25
S S2 S+2
= (1-Z-1) -0.25 0.25 TZ-1 0 .25
-1 -1 2
(1-z ) (1-z ) 1-e2TZ-1
But,
T = 0.2sec
G(z) = 0.01758 (Z + 0.8760)
(z-1)(z-0.6703)
Also, given
R = 0.5
Ts = 4 =2
rWn
or, rWn = 2
or, Wn = 2/0.5 = 4
∴Wd = Wn 1 − r 2
= 4 1 − 0 .5 2
Wd = 3.464
Also, sampling frequency.
Ws = 2π = 2 = 31.4 rad/sec
T 0.2
Continu………………..
Now, using damping ration r = 0.5 and T 0.2 sec, the dominate closed loop pole is
obtained as:-
/Z/ = e-TrWn = e-0.02 x 0.5 x 4 = 0.6703
& <Z = Twd = 0.2 x 3.464 = 39.690
∴Z = /Z/ <Z = 0.6703 < 39.69-
= 0.5158 + j 0.4281
Now, we locate the poles and zeroes on Z- plane if point ‘P’ is the desired location
on the upper half of the Z- plane, then, the total sum of angles at point ‘P’ must be ‘1800’
Now, therefore, The net angle contribution at point ‘P’ will be,
< Zeroes - < poles
= 17.10 – 138.52 – 109.84
= 231.260
∴ The angle deficiency will be:
-
231.26 +1800 = - 51.260
Since, There is an deficiency of - 51.260, We used to have a controller which must
provide +51.260 in order to contribute 1800 at point P.
Now, let us assume the form of digital controller as,
GB(z) = K. Z+α
Z+β
Where, K is gain (or constant ) of the controller.
If we decide to cancel the pole at Z = 0.6 ≠3 by the zero of the controller at z = -α
Then, the pole of the controller can be determined (from the condition that the controller
must provide +51.260 as a point at z = -β
Example:-2
Design a digital controller shown in the above figure which has dead time of 2sec.
The samping peiod is 1sec. The digital controller must be PI controller. Given r = 0.5 and
Wd/Ws =1/[Link] the step response and Kv.
(no of samples per cycle of damped sinusoidal oscillation is 10.).
= (1-z-1) Z-2 Z 1 _ 1
S (S+1)
-1 -2
= (1-z ) Z 1 _ 1
1-Z-1 1-e-TZ-1
= 0.6321
Z2 (Z -0.3679)
= e-0.3628
/Z/ = 0.6958
2π Wd 1
And <Z = Twd Wd = 2π . = 2π . = 36 0
Ws Ws 10
∴Z = /Z/ <Z
= 0.6958< 360
Z = 0.5629 + j 0.4090
If point ‘P’ is the location of dominant closed loop, the plot for the upper half of the z-
plane will be:-
Again,
If r(t) = u(t)
The R(z) = 1
1-Z-1
For this case,
C(Z) = ?
We know,
C(Z = GD(Z) G(Z)
R(Z) HGD(Z) G(Z)
C(Z) = GD(Z) G(Z). R(Z)
1 + GD(Z) G(Z)
∴∴C(Z) = 0.5070 ( Z – 0.5872) . 0.6321
(Z-1) Z2(Z-0.3679)
1 + 0.5070(Z – 0.5872) . 0.6321
(Z-1) Z2(Z – 0.3679)
= ……………
Finally, we know,
Kv = Lim (1 – Z-1) . GD(Z) G(Z)
Z →1 T
= ………………..
Fig. (i) Block diagram of linear time invariant discrete control system.
There are various ways to relies the state space equations. The major 4 forms are:-
(i) controllable canonical form.
(ii) Observable “ “
(iii) Diagonal “ “
(iv) Jordon “ “
(i) Controllable Conical form:-
The controllable canonical form is given by:-
X!(K +1) 0 1 0 ………….0 X1(k) 0
X2(K +1) 0 0 1 ………….0 X2(k) 0
X3(K +1) = 0 1 0 ………….0 X3(k) 0
Xn-1(K +1) 0 1 0 ………….0 Xn-1(k) 0
Xn(K +1) 0 1 0 ………….0 Xn(k) 1
Y!(K) X1(k)
Y2(K) X2(k)
Y3(K) = [bn – anbn : bn-1 –an-1b0 ………..b1 – a1b0] X3(k)
Yn-1(K) Xn-1(k)
Yn(K) Xn(K)
Y!(K) X1(k)
Y2(K) X2(k)
. .
. = [0, 0 ,0 …………………………..0 1]
Yn-1(K) Xn-1(k)
Yn(K) Xn(K)
(iii) Diagonal Canonical form:-If poles of the PTF are distinct, the state space
equation in matrix form can be expressed as:-
Where, P1, P2, …………..Pn are all distinct poles and C1, C2, ………..Cn are all constant
coefficients of the respective poles.
(iv) Jordan canonical form:- If the PTF given by equations (i), (ii) and (iii) involves
and multiple pole of order m at z = P1 and all other poles are distinct, then the
state space equation in matrix form may be represented as:-
Let, Z+1
Z2 + 1.32 +0.4
= Z+1 = C1 + C2
(Z+ 0.5) (Z+0.8) Z+ 0.5 Z+ 0.8
= 5/3 + -2/3
Z+0.5 Z+0.8
∴C1 = 5/3, P1 = -0.5
C2 = -2/5, P2 = -0.8
(i) Controllable:-
X1(K+1) = 0 1 X1(K) + 0 U(K)
X2(K+1 -0.4 -1.3 X2(K) 1
For o/p,
Y1(K) =0 1 X1(K) ∴b0 = 0
Y2(K) X2(K)
bn – anb0
=b2 – a2b0
= 1 – 0.4 x 0
(ii) Observable:-
X1(K+1) = 0 -0.4 X1(K) + 1 U(K)
X2(K+1 1 -1.3 X2(K) 1
And o/p,
(iii) Diagonal:-
X1(K+1) = -0.5 0 X1(K) + 1 U(K)
X2(K+1 0 -0.8 X2(K) 1
For o/p,
Y1(K) = -5/3 -2/3 X1(K) ∴b0 = 0
Y2(K) X2(K)
Example: 01
Y(z) = Z-1 + 2Z-2
U(z) 1+ 4Z-1+3Z-2
Example:- 02
Y(z) = Z-2 + 4Z-3
U(z) 1+ 6Z-1+11Z-2 +6Z-3
∑
k −1
Y(K) = CGK X(0) +C j =0
Gx+j-1 Hu(J) + Du(K) ___________(iii)
∑
k −1
X(K) = ψ(K) X(0) + j =0
(K-j-1) HU(j)
∑
k −1
= ψ(K) X(o) + j =0
ψ(J)HU(K-J-1)
∑
k −1
j =0
Gk-J-1 HU(J) = Z-1 [(ZI-G)-1 HU(Z)] ________(viii)
Examples:- 02
Obtained the state transition matrix of the following discrete time system:-
X(K+1) = GX(K) + HU(K)
And Y(K) = CX(K)
Where, G = 0 1 H=1 , C = [1, 0]
-0.16 -1 1
Then, obtained the state space X(K) and the o/p Y(K) when the i/p U(K) = 1 for K=
0, 1, 2………. Assume that the initial state is given by.
X(0) = X1(0) = 1
X2(0) -1
Soln:-
The state transition matrix is given by,
ψ(x) = GK
But, GK = Z-1 [(ZI – G) -1]
We go in the following manner
ZI = Z 0
0 Z
G= 0 1
-0.16 -1
ZI – G = Z -1
Z+1
=
-0.16 Z
2
Z +Z+0.16 Z2+Z+0.16
= Z+1 1
(Z+0.8) (Z+0.2) (Z+0.8)(Z+0.2)
0.16 Z
(Z+0.8)(Z+0.2) (Z+0.8)(Z+0.2)
= 4/3 -1/3 5/3 + -5/3
Z+0.2 Z+0.2 Z+0.2 Z+0.8
-0.8/3 + 0.8/3 -1/3 + 4/3
Z+0.2 Z+0.8 Z+0.2 Z+0.8
ψ(k) = GK = Z-1 [(GI –G) -1Z]
24(-0.2)k - 17.6(-0.8)k + 7. 1k
6 9 18
= (1 0) 17(0.2)k + 22(-0.8)k + 25.1k
6 9 18
24(-0.2)k - 17.6(-0.8)k + 7. 1k
6 9 18
= -17(0.2)k + 22(-0.8)k + 25.1k
6 9 18
Examples:- 03
Find the inverse matrix ( 2KI – G) for
G = 0.1 0.1 0
0.3 -0.1 -0.2
0 0 -0.3
Example:- 01
Consider the continuous time system given by :-
G(S) = Y(S) = 1
U(S) S+!
Obtained the continuous time state space representatikn of the system. Then discretise
the state equation and o/p equation and obtain the discrete time state-space representation of
the system. Also obtain the pulse transfer function for the system.
Soln:-
Given, G(s) = 1
S+a
It is of 1st order type where, the state space representation for equation (i) in
controllable canonical form will be,
0
X = -aX + 1V
0
X = -aX +U __________(ii)
& Y = X __________(iii)
Now,
In order to discretise, the above equations (ii) and (iii) we need to find out G(T) &
H(T). We know,
G(T) = eAT,
But, A = -a
∴G(T) = e-aT
And, H(T) ⎡ ∫ e Aλ dλ ⎤ B,
T
but, A = -a & B = 1
⎢⎣ 0 ⎥⎦
− aλ
T
⎡ e dλ ⎤ 1 − e − aT
∴H(T) = ⎡ ∫ e Aλ dλ ⎤ =
T
⎢⎣ 0 ⎥⎦ ⎢ ⎥ =
⎣ − a ⎦ 0
a
Example:- 2
Obtained the discrete time state and output equations and pulse transfer function
(when sampling period T= 1) of the following continuous time system:
G(S) = Y(S) = 1
U(S) S(S+2)
Which may be represented in state space by the equation s:-
0
X1 0 1 X1 + 0
0
X2 0 -2 X2 1 u
Y= [1 0] X1
X2
= P11 P12
P21 P22 >0
& P11 P12 P13
P21 P22 P23 >0
P31 P32 P33
We generally choose,
Q=I
Where, I is Identity matrix.
Example:- 01
Determine the stability of the equilibrium state of the following system.
o
X 1 = -X1 –X2
o
X 2 = X1 – 4X2
Also find out the liapunov function.
Soln:- The given system can be represented as:-
X = AX
Where, A = -1 -2
1 -4
Now for the system to be stable, we have
A*P + PA = - Q_________(i)
We choose,
Q=I= 1 0
0 1
Also,
P= P11 P12
P21 P22 But, P12 = P21
∴P= P11 P12
P21 P22
Thus, equation (i) becomes,
-1 1 P11 P12 + P11 P12 -1 -2 = -1 0
-2 -4 P21 P22 P21 P22 1 -4 0 -1
The inverse z-transform poses challenges such as dealing with complex poles and residues that can complicate calculations. These challenges are addressed using various methods tailored to the problem's nature, such as partial fraction expansion for rational expressions and the contour integration method for complex poles analysis. These techniques simplify the process, allowing for accurate inverse calculations needed for system analysis .
A Digital-to-Analog Converter (DAC) plays a critical role in a digital control system by converting digital signals from the controller back into analog signals. This conversion is necessary because actuators and other real-world interfaces operate with analog signals. The DAC ensures the output analog waveform accurately reflects the discrete digital control signals, allowing physical actuators to perform their tasks .
A transducer plays a pivotal role in a data acquisition system by converting physical variables (such as temperature, pressure) into an electrical signal (voltage or current). This conversion is essential because the physical variables are generally in non-electrical form and need to be converted for further processing in the system .
The Sampling Theorem is crucial in digital control systems as it provides the foundational principle for converting continuous analog signals into discrete signals without losing information. It states that the sampling frequency must be at least twice the maximum frequency present in the input signal for accurate reconstruction. This theorem enables the transition from analog to digital systems, allowing accurate data representation in digital control systems, which in turn facilitates effective control and processing .
The analog multiplexer in a data acquisition system is used to sequentially switch among multiple analog input channels, allowing a single analog-to-digital converter (ADC) to digitize multiple inputs. This time-sharing of a single ADC among several channels reduces cost and complexity, ensuring efficient data processing from multiple sources .
Continuous and discrete state-space representations are related through discretization, where continuous models are transformed into discrete ones by sampling. The discrete state-space model describes the system's evolution at discrete time instants using matrices derived from Euler's transform or other suitable numerical methods. These transformations are crucial for accurately simulating and controlling digital systems based on their continuous-time analogs .
Data conversion in a control system involves several steps. First, continuous time analog signals are sampled to convert them into discrete time signals, following the Sampling Theorem to ensure accuracy. Next, these discrete signals are quantified and encoded in digital form suitable for digital controllers. When these need to be converted back into analog forms, they undergo hold operations to fill gaps between samples, reconstructing the original analog signal before being fed to actuators .
Z-transforms are used to solve difference equations by converting the time-domain difference equations into algebraic equations in the z-domain. This transformation simplifies solving linear, constant-coefficient difference equations, a common representation in discrete time systems. The z-transform allows for using inverse transforms to find time-domain solutions, thus facilitating analysis and design of discrete control systems efficiently .
A sample-and-hold circuit functions by sampling the analog input signal at a particular instant and holding this value over a specified period of time to stabilize the signal for digital conversion. This is crucial for the accuracy of the analog-to-digital conversion process, ensuring that the converted digital signal accurately represents the analog input signal at the sampling instant. The hold function eliminates variations that may occur over time during conversion .
The pulse transfer function is significant in discrete control systems as it represents the input-output relationship in the z-domain. It effectively describes how the output of a system responds to digital inputs, based on the system's transfer characteristics, which are essential for analyzing and designing digital control systems. The poles of the pulse transfer function indicate the system's stability and dynamic behavior .