Digital Control System
Digital Control System
np
Date: 2065/4/20 1. Sample and Hold ( S/H) : It is the circuit that receives an
analog input signal and holds this signals at a constant value
Digital control system: The rapid increase in the use of digital for a specified period of time. Usually the signal is electrical
controller in the controlled system is due to its achievement in the but it may be optical or mechanical.
optimum performance. Digital control system provides optimal 2. ADC: ADC also called an encoder is a device that converts an
performance in the form of maximum productivity, maximum analog signal into a digital signal, usually a numerically coded
profit, minimum cost or minimum energy use etc. The application signal in binary form. Such a converter is need as an interface
of computer control has made possible the intelligent motion in between an analog component and the digital component.
industrial robots, the optimization of the fuel economy in Basically ADC involves sampling , quantizing and encoding.
automobiles and refinement in the operations of house hold 3. Digital Computer: The digital computer processes the
appliances and machines such as microwave ovens, washing sequences of numbers by mean of an algorithm an produces an
machine, Air-conditioning. Decision making capability and new sequences of numbers.
flexibility in the control programs are major advantages of digital 4. DAC: DAC also called an decoder is a device that converts a
control system. digital signal ( Numerically coded data) into an analog signal.
The current trend towards rather then analog control system is It acts as an the interfacing device between the digital
mainly due do the availability of low cost digital computers and component and an analog component. The real time clock in
the advantages found in working with digital signals rather then the computer synchronizes the events. The output of the hold
continuous time signals. circuit which is continuous time signal is fed the plant either
directly or through the actuator which controls the dynamics of
Basic Blocks of Digital control system: the system ( i.e it smoothens the slope of the signal)
5. Plant or process: A plant is a physical object to be controlled.
S/H Digital
Hold Plant or
The examples are a furnace, chemical reactors and a set of
+ DAC Actuator
- and
ADC
Control
System Circuit Process
machine parts functioning together to perform a particular
operations such as servo system etc.
Clock
Digital 6. Transducer/sensor: A transducer is a device that converts an
Control
input signal into an output signal of a another form such as
Transducer device that converts a temperature into a voltage output (
thermistor or thermocouple ), an optical signal into voltage (
Figure 1 shows the basic block diagram or principle of DCS . The phototransistor )
controller operation is performed or controlled by the clock. In
such a DCS points of the systems pass signals of varying Discrete times control system: Discrete time control system is
amplitude either in continuous time or discrete time or in control system in which one or more variable can change only at
numerical code. discrete instants of time. These instants which are denoted by KT
1
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
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
2
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
Fig.1 shows the diagram of data acquisition system. The basic Data Distribution:
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.
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)
2
1
(a)
o
t
Xs(f) xs(n) 1 2 3 4 5 6 7
aliasign ditortion
(fs<2fx)
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
o
1
(c)
n
1 2 3 4 5 6 7
6
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
analog number must be round off to the nearest digital level.
Fig. 1(a) continuous Hence any ADC involves quantization error. It is evident that the
- continuous value signal maximum Q error could be only △/2. In uniform quantization the
1(b) Discrete time
- continuous value signal steps size △ is constant for the entire dynamic range of the input
1(c) Discrete time discrete signal level. Q error depends on the fineness of the
- discrete value signal. 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
Quantization is the process of representing the analog sample some error due to quantization.
values by a finite set of levels. The sampling process coverts a The uncertainty present in the quantization process results
continuous time signal to a discrete time signal with amplitude quantization noise.
and that can take any values from zero to maximum level and the
quantization process converts continuous amplitude samples to a Signal to quantization noise ratio (SQNR): It is evident that the
finite set of discrete amplitude values. Q-error ( i.e qe) lies between – △/2 to △/2 in random manner , the
The output sates of each quantized sample is then described by a average power of Q-noise is therefore given by,
numerical code. The process of representing a sampled value by a ∆
2
numerical code is called encoding . Thus encoding is a process of 1
∫q
2
Pq = dq e
∆
e
assigning a digital word to each discrete states. −
∆
2
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, ∆2
= Pq = …………………..(i)
n = is the number of bits per source sample , then the step 12
It is seen form equation (1) that Q-noise is dependent on step-size
size △ on length of the Q level is assumed to be,
‘△’ only. Reducing the step-size or increasing the no of
△ = 2xmax / N = 2xmax/2n = 2xmax/ 2n-1 representation level, we can reduce pq and hence Q-error.
△ = xmax/2n-1 From equ (1)
Pq = △2/12
The step size ‘△’ is also called ‘quantum’. But,
△= xmax /2n-1
Quantization error: Pq = (xmax/2n-1)/12 = xmax2/3×4n ……….(ii)
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 7
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
2
Assume that the average signal power is x , SQNR for uniform , we consider only the sampled values of x(t) , i.e x(0), x(T) ,
quantization will be, x(2T),………, where ‘T’ is sampling period.
The z-transform of a time function x(t) , where ‘t’ is non –
SQNR = average power of signal/ average power of noise. negative or of a sequence of values x(kT) , where k = 0,1,2,3 …
QSNR = xˆ 2 × 3 × 4 n ……………………(iii) ∞
Where,
X(z) = z[x(t)] = ∑ x(kT ) z
k =0
−k
…………….(i)
x2 ∞
xˆ 2 =
x2
= Normalized signal power.
Or , X(z) = z[x(t)] = ∑
k =0
x ( k ) z − 1 …………….(ii), for T=1
Again , equation (iii) can be reproduce in dB, as
3
(QSNR ) dB = Px (dB) + 10 log 10 + 10 log 10 (4) n
The z-transform defined by equation (i) and (ii) is one-sided z-
= Px (dB) + 4.8 + 10n log 10
transform .
Where, The both sided ( or double sided) z-transform is defined by:
Px (dB) = 10(log10 ( xˆ 2 )dB
Thus, ∞
(QSNR)dB = Px+4.8+6n………………….(iv)
X(z) = z[x(t)] = z[x(k)] = ∑ x(kT ) z
k = −∞
−1
Also,
SQNR(dB) = Px +4.8+20 log10N …………….(v ) [since, N= 2n]
And for N>> 1 z-transform of Elementary function:
SQNR = 20 log10N …………….(vi)
Which is approximated SQNR for uniform quantization interms of (i) Step unit function: The unit step function defined by
level of quantization “N”. ⎧⎪1 for t≥0
x(t ) = ⎨
Assignmet:1 ⎪⎩0 otherwise
∞
1. Simple and hold ckt. Thus , X(z) = z[x(t)] = z[1(t)]= ∑ 1.z − k
Analog multiplexer and Demultiplexer. k =0
= 1 + z +z-2+z-3 +……….
-1
1
=
Date:2065/5/1 1 + z −1
1
Therefore, z[1(t)] =
Review of Z-transform: mathematical tool commonly used for 1 + z −1
the analysis and synthesis of discrete time control system is the z-
transform. In considering the z-transform of a time function x(t)
8
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
z 1
Or, z[1(t)] = , z >1 Or, z[ak] =
z −1 1 − az −1
2. Unit Ramp Function: The unit ramp function is defined by 4. Exponential function:
⎧⎪t for t≥0 ⎧⎪e at for t≥0
x(t ) = ⎨ x(t ) = ⎨
⎪⎩0 otherwise ⎪⎩0 otherwise
Or, x(KT) = KT for k = 0,1,2,3…………. Where, x(kT) = e-akT, K = 0,1,2………..
Thus, We have,
∞ ∞
X(z) = z[x(t)] = z[t] = ∑ t.z
k =0
−k
X(z) = z[e-at] = ∑e − akT
z −k
k =0
∞ We know that,
X(k) = ∑a k
z −k
k =0
1
= 1 + az-1 +a 2z-2+ a3z-3+…………… Z[e-at] =
1 − e − at z −1
1
Z[ak] =
1 − az −1 9
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
Z[ejwt] =
1 3. Multiplication by ak :
1 − e jwT z −1 If z[x(k)] = X(z) , then
Z[e-jwt] =
1 Z[akx(k)] = X(a-1z)
− jwT −1
1− e z
Therefore, z[sinwt] = z[ 1/2j(ejwt-e-jwt)] Proof:
= 1/2j[z(ejwt)-z(e-jwt)] ∞ ∞
Z[ akx(k)] = ∑ a k x(k ) z − k = ∑ x(k )(a −1 z ) − k
= 1/2j ⎡⎢ ⎤
1 1
− − jwt −1 ⎥
k =0 k =0
jwt −1
⎣1 − e z 1− e z ⎦ = X(a-1z)
z −1 sin wt
Z[sinwt] =
1 − 2 z −1 cos wt + z − 2 4. Shifting theorem:
If x(t) = 0 for t< 0 and
x(t) Z X(z)
Similarly,
z −1 cos wt
Z[coswt] = Then, z[x(t-nT)] = z-n X(z) ……………(i)
1 − 2 z −1 cos wt + z − 2
Z
If x(t) X(z), then, Where, n is zero or +ve integer.
And a and b be scalers then then x(k) formed by liner = ∑ x(k − n).T .z
k =0
−(k −n)
.z − n
combination, ∞
m=−n = X (zeaT)
Since ‘m’ must be zero and non-negative integer
Therefore, z[x(mT)] = z-nX(z) 5. Initial value Theorem:
If x(t) has the z-transform X(z) and if z ⎯⎯→ lim
∞ X ( z ) exist
For equation (ii) then, the initial value x(0) of x(t) is given by ,
∑ x(k + n).T .z −( k + n) .z n
k ⎯⎯→
lim
∞ x(k ) = z ⎯⎯→
lim
[
1 (1 − z −1 ) X ( z ) ]
k =0
∞
= z n .∑ x(k + n).T .z − ( k + n )
k =0 Assignment # 02:
Let us define, K+n = m 1. Prove all the important properties of z-transform.
∞
Z[x(mT)] = z − n .∑ x(mT ).z − m 1
m=n Example: 01: Obtain the z-transform of x(s) =
⎡ n −1 n −1 ∞
⎤ s ( s + 1)
= z n ⎢ ∑ x(mT ).z − m − ∑ x(mT ).z − m + ∑ x(mT ).z − m ⎥. Solution:
⎣m =0 m =0 m=n ⎦
1
⎡ ∞ n −1
⎤ Given, x(s) =
= z n ⎢ ∑ x(mT ).z − m − ∑ x(mT ).z − m ⎥. s ( s + 1)
⎣m =0 m =0 ⎦
A B
= +
s s +1
4. Complex translation Theorem:
Z 1
If x(t) X(z), then, Where, A = .s
-at s ( s + 1) s = 0
e x(t) Z X(zeaT)
Proof: A=1
1
And, B = .( s + 1)
∞ s ( s + 1) s = −1
Z[e-atx(t)] = ∑e
k =0
− akT
x(kT ).z − k
B = -1
∞ 1 1
= ∑ x(kT ).(e aT z ) −k Therefore, x(s) = −
s s +1
k =0 11
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
Taking inverse Laplace Transform, we have, x(t) = 1 – e-t Z −1 sin ωT
Z[sinwt] = = X ( z)
Again taking z-transform on both sides, 1 − 2 z −1 cos wT + z −1
Z[x(t)] = z [ 1 – e-t] We know that,
= z[1] – z[e-t] Z[e-atx(kT)] = X[zeakT]
1 1 e − aT z −1 sin wt
= −1
− Therefore , z[e-atsinwT] =
1− z 1 − e −T z −1 1 − 2e − aT z −1 cos wt + e − 2 aT z − 2
1/ − e −T z −1 − 1/ + z −1
=
(1 − z −1 )(1 − e −T z −1 ) Example 04: Consider the function y(k) , which is sum of
(1 − e ) z −T −1
functions x(h) where, h = 0, 1, 2 …….k , Such that
=
(1 − z −1 )(1 − e −T z −1 )
k
y(k) = ∑ x(h), k = 0,1,2.....
Example: 02 Obtain the z-transform of h=0
⎧⎪a k −1 k = 0,1,2,3....... Where y(k) = 0 for k < 0 . Obtained the z-transform of y(k).
f (a) = ⎨
⎪⎩0 K ≤0 Solution: Given,
∞
∑
k
∑ x (h)
−k
Z[f(a)] = f (a).z y(k) =
k =0 h=0
(1 − z −1 )(1 − e −T z −1 )
17 z − 2 − 2 z −3
= 0 Ans.
17 z − 2 − 20.4 z −3 + 3.4 z − 4
Example 07: Determine the final value x(∞) of X(z) = +18.4 z −3 + 3.4 z − 4
1 1
−1
− − aT −1
a>0 18.4 z −3 − 22.08 z − 4 + 3.68 z −5
1− z 1− e z
18.68 z − 4 − 3.68 z −5
Solution: 18.68 z − 4 − 22.416 z −5 + 3.7362 z − 6
From final value theorem,
x(∞) = z ⎯⎯→
lim
1[(1 − z −1 ) X ( z )] 18.736 z −5 − 3.7362 z − 6
⎡ ⎤⎤
1⎢(1 − z −1 )⎢
⎡ 1 1
= z ⎯⎯→
lim
− ⎥
⎣ ⎣1 − z
−1
1 − e aT z −1 ⎥⎦ ⎦ Quotient of the x(z) gives the inverse z-transform is given by
⎡ 1 − z −1 ⎤
X(0) = 0
= z ⎯⎯→1⎢1 −
lim
− aT −1 ⎥ X(1) = 10
⎣ 1− e z ⎦
X(2) = 17
⎡ z −1 ⎤ X(3) = 18. 4
= z ⎯⎯→
lim
1⎢1 − − aT ⎥
⎣ z−e ⎦ X(4) = 18.68
= 1-0
= 1 Ans. Example 02: Find x(k) when X(z) is given by X(z) = 1/(z+1)
13
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
-1 -1
Example 03: Obtained x(k) for X(z) = z / (1- az ) 1 − e − aT .z
Example 01: Given X(z) = Where ‘a’ is a
( z − 1)( z − e − aT )
X(z) = z-1/(1-az-1) constant and T is the sampling period. Determine the inverse z-
-1 ⎡1 ⎤ transform x(KT) by the use of partial fraction expansion method.
= z ⎢ −1 ⎥
⎣1 − az ⎦ Solution:
= z-1[X(z)] (1 − e − aT ) Z
Where, Y(z) = 1/(1-az-1) X(z) =
( z − 1)( z − e − aT )
The inverse z-transform of Y(z) is z-1[Y(z)] = ak X ( z) 1 − e − aT
So, the inverse z-transform of (z) = z-1[Y(z)] =
Z ( z − 1)( z − e − aT )
z-1[X(z)] = ak-1 = y(k-1)
Therefore, x(k) = y(k-1) = ak-1
X ( z) A B
= +
Z z − 1 z − e − aT
2. partial fraction method: We use the following formula for
X ( z) 1 − e − aT
the function written in the form A = (z-1) = ( z − 1)
X ( z) a1 a2 an Z z =1 ( z − 1)( z − e − aT ) z = 1
= = + ............
Z z − p1 z − p 2 z − pn 1 − e − aT
= =1
X ( z) 1 − e − aT
(i) ai = (z-pi) Threfore, A = 1.
Z z = pi
Again if,
X ( z) 1 − e − aT
X ( z) C1 C2 Similarly B = = ( z − e − aT
)
= + Then, Z z = e − aT ( z − 1)( z − e − aT ) z = e − aT
Z ( z − p1 ) ( z − p 2 )
1 − e − aT
X ( z)
2 =
C1 = (z-p1) (e − aT − 1)
Z z = p1
B = -1
And , C2 = ⎧d ⎡ 2 X ( z) ⎤⎫
⎨ ⎢( z − p1 ) ⎬
⎩ dz ⎣ z ⎥⎦ ⎭ Z = P1 X ( z) 1 1
= −
In general , if there are n- multiplication roots then, Z z − 1 z − e − aT
1 ⎧ d n −1 z z
Cn = ⎡ n X ( z) ⎤⎫ X ( z) = −
(n − 1)! ⎨⎩ dz n −1 ⎢( z − p1 ) ⎬
z ⎥⎦ ⎭ Z = P z − 1 z − e − aT
⎣ n
1 1
X ( z) = −1
− − aT −1
1− z 1− e z
Therefore, z-1 [X(z)] = 1-e-aT= 1k-e-akT
14
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
k -akT
Therefore, x(t) = 1 – e ans. ⎡ 3 −1 ⎤
⎢ z ⎥
−1 ⎡ 1 − 0.5 z ⎤ 1 −1
−1
−1 ⎡ 1 ⎤ 2
X ( z) = 4z ⎢ −1 ⎥
− 3 z ⎢ −2 ⎥
+ z ⎢ ⎥
z2 + z + 2 ⎣1 − z ⎦
−1
⎣1 − z + z ⎦ 3
−1 −2
⎢1 − z + z ⎥
Example 02: Obtained the z-transform of X ( z ) = ⎢⎣ ⎥⎦
( z − 1)( z 2 − z + 1)
by partial fractional expression method. We know that
Solution: z-1 ⎡⎢
1 ⎤ k
=1
−1 ⎥
z +z+2
2
A Bz + c ⎣1 − z ⎦
X ( z) = = + 2
( z − 1)( z − z + 1) ( z − 1) z − z + 1
2
-1 ⎡ 1 − 0.5 z
−1
⎤ π
z ⎢ −1 −2 ⎥
= cos k
z2 + z + 2 A( z 2 − z + 1) + ( Bz + C )( Z − 1) ⎣1 − z + z ⎦ 3
=
( z − 1)( z 2 − z + 1) ( z − 1)( z 2 − z + 1) ⎡ 3 ⎤
⎢ z −1 . ⎥
Z2 + z +2 = (A+B)z2- (A+B-C)z +(A-C) 2 π
z-1 ⎢ ⎥ = sin k
Comparing the coefficient of z2 , z and z0 we get, −1
⎢1 − z + z ⎥
−2
3
B+A = 1 ⎢⎣ ⎥⎦
-(A+B-C) = 1 Therefore, z-1 = [X(z)] = x(k)
A-C = 2 = 4.1k-1 – 3 cos(k-1) π/3 + 1/√3 . sin(k-1) π/3
Solving the above equation we get,
A = 4 , B = -3, C = 2
A Bz + c
Thus , X ( z ) = + 2
( z − 1) z − z + 1 Date: 2065/5/10
4 − 3z + 1 3. Inverse Integral method:
X ( z) = + 2
( z − 1) z − z + 1 The inversion integral for the z-transform X(z) is
4 z −1 − 3z −1 + 2 z −2 1
X ( z) = + given by z-1[x(z)] = x[kT] = x(k) = ∫ x( z ) z k −1 dz ………(i)
(1 − z −1 ) 1 − z −1 + z − 2 2πj
−1 ⎡ 1 ⎤ −1 ⎡ 1 − 0.5 z
−1
⎤ Where ‘c’ is a circle with its centre at the origin of the z-plane
=
X ( z) 4z ⎢ −1 ⎥
− 3 z ⎢ −1 −2 ⎥ such that all poles of x(z)z-1 are inside it.
⎣1 − z ⎦ ⎣1 − z + z ⎦
The equation for giving the inverse z-transform
−1 ⎡ 1 − 0.5 z ⎤ −1 ⎡ 1 / 6.z −1 ⎤
−1
⎡ 1 ⎤ in terms of residues can be derived by using the theory of complex
X ( z ) = 4 z −1 ⎢ −1 ⎥
− 3 z ⎢ −1 −2 ⎥
+ 3 z ⎢ −1 −2 ⎥
⎣1 − z ⎦ ⎣1 − z + z ⎦ ⎣1 − z + z ⎦ 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.
15
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
In evaluating residues, if the denominator of ⎡ ( z − e − aT ) z k (1 − e − aT ) ⎤
k-1 = z ⎯⎯→
lim
e − aT ⎢ ⎥
x(z)z contains a simple pole at z = zi , then the corresponding ⎣ ( z − 1)( z − e ) ⎦
− aT
∑ residue of x(z)z
k-1
Hence, x(kT) = x(k) = at pole z = zi
i =1 ⎡ ( z − e − aT ) z k +1 ⎤
= k1 + k 2 = z ⎯⎯→
lim
e − aT ⎢ − aT ⎥
⎣ ( z − 1) ( z − e ) ⎦
2
( z − e − aT )
d ⎡ z k +1 ⎤
K1 = 1 = z ⎯⎯→
lim
1 .⎢ ⎥
dz ⎣ ( z − e − aT ) ⎦
For K2 ,
K2 = z ⎯⎯→
lim
z 2 [( z − z 2 )X ( z ) z k −1 ] 16
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
⎡ ( z − e )(k + 1) z − z ⎤
− aT k k +1
Z2x(z)-z2x(0)-zx(1) + 3[zx(z)-zx(0)] +2x(z) = 0
= z ⎯⎯→ 1⎢ lim
⎥
⎣ ( z − e − aT ) 2 ⎦ X(z) [z2+3z+2] – (z2 +2)x(0) – zx(1) – zx(1) = 0
(k + 1)k k (1 − e − aT ) − 1k +1 (k + 1)(1 − e − aT ) − 1
But, x(0) = 0 and x(1) = 1
= − aT 2
= − aT 2 Therefore, x(z) [z2+3z+2] – z = 0
(z − e ) (1 − e )
z z A B
(k − ke − aT
−e − aT X(z) = 2 = = +
= ( z + 3z + 2) ( z + 1)( z + 2) z + 1 z + 2
(1 − e − aT ) 2 x( z ) 1 A B
− a ( k +1)T
k − ke − aT
−e − aT = = +
Therefore, x(kT) k1 + k2 = − aT
e
+ z ( z + 1)( z + 2) z + 1 z + 2
− aT 2
(e − 1) 2
(1 − e ) x( z )
− a ( k +1)T
+ k − ke − aT
−e − aT A = ( z + 1)
X(kT) =
e z z = −1
− aT 2
(1 − e ) A = 1.
z −2 Similarly, B = -1,
Example 03: Obtain the inverse z-transform of x(z) =
(1 − z −1 ) 3 x( z ) 1 1
= −
1 d ⎡2
3 z. z ⎤
k −1 z z +1 z + 2
Where k1 = .z ⎯⎯→
lim
1. 2 ⎢( z − 1) 3 ⎥ z z
2! dz ⎣ ( z − 1) ⎦ x( z ) = −
z +1 z + 2
1 d2
= . 2 zk
2! dz
[ ]
z =1 x( z ) =
1
−1
−
1
1+ z 1 + 2 z −1
=
1 d
.
2 dz
[
kz k −1 ]
z =1
x( z ) =
1
1 − (−1) z −1
−
1
1 − (−2) z −1
The inverse z-transform of x(z) is
=
1
2
[ ]
. k (k − 1) z k − 2
z =1 X(z) = -(1)k – (-2)k, k = 0,1,2………..
k (k − 1)
= Example 02: Obtained the solution of the following difference
2
-1
Therefore, z (x(z)) = x(kT) = k(k-1)/2 equation in terms of x(0) and x(1).
X(K+2) + (a+b)x(k+1) + ab x(k) = 0
Solution of difference equation by z-transform method: 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)
Example 01: Solve the following difference equation by use of z- [ z 2 + (a + b) z ]x(0) + zx(1)
X(z) =
transform method of x(K+2)+ 3x(k+1)+2x(k) = 0 z 2 + (a + b) z + ab
Taking z-transform on both the sides , we have, [ z + a + b]x(0) + x(1) A B
X(z) = = +
Z[x(k+2)]+3z[x(k+1)]+3z[x(k+1)] +2z[x(k)] = 0 ( z + a)( z + b) z+a z+b
17
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
bx(0) + x(1) ax(0) + x(1) ⎡ k ⎤ 1 ⎡ i −1
⎤
Where, A =
(b − a)
and B=
( a − b) ⎢∑ x ( h ) =
⎥ (1 − z −1 ) ⎢ X ( z ) − ∑ x ( h) z − h ⎥
⎣ h =i ⎦ ⎣ h=0 ⎦
bx(0) + x(1) ax(0) + x(1) Where 1 ≤ i ≤ (k-1)
x( z ) (b − a ) ( a − b)
= + 3.Obtained the z-transform of
z ( z + a) ( z + b)
bx(0) + x(1) ax(0) + x(1) Figure:
(b − a ) ( a − b)
x( z ) = −1
+ 4. Obtained the z-transform of
1 − (−a) z 1 − (−b) z −1
2z 3 + 2 ( z + 2)
⎡ bx(0) + x(1) ⎤ ⎡ ax(0) + x(1) ⎤ (a) x( z ) = (b) x( z ) =
X ( z) = ⎢ ⎥ (−a ) k + ⎢ ⎥ (−b) k [ for the case a ≠ b] ( z − 2) 2 ( z − 1) ( z − 2).z 2
⎣ (b − a ) ⎦ ⎣ ( a − b) ⎦ 10 z ( z + 2)
(c ) x( z ) = (d) x( z ) =
( z − 2)( z − 1) ( z − 1) 2
Now for a = b, 1 + 6 z −2 + z −3
( z + 2az ) x(0) + zx(1)
2 (e) x( z ) =
X(z) = (1 − z −1 )(1 − 0.2 z −1 )
z 2 + 2az + a 2
1 + z −1 + z −2
x( z ) ( z + 2a ) x(0) + x(1) (f) x( z ) =
= 1− z −1
z ( z + a) 2
5. Solve the following difference equations:
x( z ) A B
= + a. 2x(k) – 2x(k-1) +x(k-2) = u(k)
z ( z + a) ( z + a) 2
Where x(k) = 0 for k< 0
zx(0) ax(0) + x(1)
We get , x(z) = x( z ) = + ⎧1, k = 0,1,2.....
(1 + az ) (1 + az −1 ) 2
−1
And u(k) = ⎪⎨
⎪⎩0, k <0
Therefore, x(k) = x(0)(-a)k + [ ax(0)+x(1)][(-a)k-1] for case a = b
b. x(k+2) –x(k+1) + 0.25x(k) = u(k+2)
Assignment: where, x(0) = 1, x(1) = 2
1. Obtained the z-transform of (a) k2 (b) k ak-1 u(k) = 1 for k ≥ 0.
⎡ k ⎤ 1
c. x(k-2) – x(k-1) + 0.25 x(k) = u(k-2)
z ⎢ ∑ x ( h) ⎥ = −1
x( z ) x(0) =1 x(k) = 0, for k<0.
⎣ n =0 ⎦ 1− z
2. Show that u(k) = 1 for k ≥ 0
⎡ k −1 ⎤ z −1
z ⎢ ∑ x ( h) ⎥ = −1
x( z ) (6) Consider the difference equation .
⎣ n =0 ⎦ 1− z X(k+2) = x(k+1) +x(k)
∞
Where x(0) = 0 and x(1) = 1.
And , ∑ x(k ) = z ⎯⎯→1X ( z )
k =0
lim
x(k ) = ⎢⎜ ⎟ −⎜ ⎟ ⎥ …………….(i) modular with x(t) as the modulating signal and δT(t) as the
5 ⎢⎣⎜⎝ 2 ⎟⎠ ⎜ 2 ⎟ ⎥
⎝ ⎠ ⎦ carrier as shown in fig1 below.
Similarly we can write,
1 ⎡⎛ 1 + 5 ⎞ ⎛1 − 5 ⎞ ⎤
k +1 k +1
Modulator
x(k + 1) = ⎢⎜ ⎟ −⎜ ⎟ ⎥ ……….(ii)
5 ⎢⎣⎜⎝ 2 ⎟⎠ ⎜ 2 ⎟ ⎥ x(t)
x*(t)=x(t)×δΤ(t)
⎝ ⎠ ⎦
From (i) and (ii)
⎡⎛ 1 + 5 ⎞ k +1 ⎛ 1 − 5 ⎞ k +1 ⎤ δΤ(t)
⎢⎜ ⎟ −⎜ ⎟ ⎥
x(k + 1) ⎢⎜⎝ 2 ⎟⎠ ⎜ 2 ⎟ ⎥
⎝ ⎠ ⎦
⎣
=
x( k ) ⎛1 + 5 ⎞
k
⎛1 − 5 ⎞
k
⎜ ⎟ −⎜ ⎟ Figure:1
⎜ 2 ⎟ ⎜ 2 ⎟
⎝ ⎠ ⎝ ⎠
Here, Let us consider x*(t) to represent the impulse sampled o/p. The
1− 5
< 1 when k ∞ sampled signal x*(t), a train of impulses, can thus be represented
2 ∞
⎛1 − 5 ⎞
k by the infinite summation, i.e x*(t) = ∑ x(kT )δ (t − kT ) ……..(i)
k =0
Lim k ∞ ⎜⎜ ⎟ →0
⎟ *
⎝ 2 ⎠ x (t) = x(0)δ (t ) + x(T )δ (t − T ) + x(2T )δ (t − 2T ) + ........ ------- (ii)
⎛1 − 5 ⎞
k
⎛1 − 5 ⎞
k +1 Here, we are defining ,
The terms ⎜⎜ ⎟ and ⎜ ⎟ can be neglected when ∞
⎝ 2 ⎠
⎟ ⎜ 2 ⎟
⎝ ⎠ δ T (t ) = ∑ δ (t − kT ) ………….(iii)
20 k =0
Fig 2(b): Mathematical Model that consist of a sampler and a But from fig (ii) b,
Transfer function Gho(s) for ZOH. 21
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
ℒ[h2(t)] = H2(s) = H1(s) The above integral is equal to the sum of residues of X(p) in the
Thus, closed container i.e
⎡ X ( p) ⎤
1 − e −TS X * ( s ) = ∑ ⎢residue of
∞
at poles of X ( p)⎥
H2(s) =
s
∑ x(kT ).e − KTS ……….(iv)
k =0
⎣ 1− e −T ( s − p )
⎦
From fig (ii)b, we can write , But we know that
H2(s) = Gho(s) × X*(s) ………(v) eTs = z
But we know X*(s) = X(z)
∞ ⎡ X ( p) z ⎤
X*(s) = ∑ x(kT ).e − KTS X ( z ) = ∑ ⎢residue of at poles of X ( p)⎥
k =0 ⎣ z−e Tp
⎦
Thus from equation (iv) become, By changing the complex variable rotation from p to s obtained
−TS
1− e ⎡ X ( s) z ⎤
H2(s) = X*(s) X ( z ) = ∑ ⎢residue of at poles of X ( s )⎥
s ⎣ z − es ⎦
1 − e −TS Assume that X(s) has poles S1 , s0 ……sm. If a pole at s = sj is a
Gho(s) = ………..(vi)
s simple pole , then residue.
⎡ X ( s) z ⎤
k j = s ⎯⎯→
lim
s j ⎢( s − s j ).
⎣ z − e TS ⎥⎦
Date: 2065/5/17 If a pole at s = si is a multiple pole of order ni , then the residue ki
1 d ⎡ n X ( s) z ⎤
z-transform by convolution integral method: = s ⎯⎯→
lim
s i ni −1 ⎢( s − s j ) . z − e Ts ⎥
(ni − 1)! ds ni −1 ⎣ ⎦
Example: 02: Consider y(k) = 0.6y(k-1) – 0.81y(k-2)+0.6y(k-3) We see that the poles and zeroes in s-plane , where frequencies
– 0.12y(k-4) = x(k) where, x(k) is the input and y(k) is the output differ in integral multiple of the sampling frequency 2 π /T are
of the system. Check the stability of the system using Jury mapped into the some locations in the z-plane . This means that
stability method. 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
Solution: the s-plane corresponds to |z| = eT(‐σ ) = e-T σ < 1
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
= The jw- axis in the s-plane corresponding to |z| = 1 (∴ σ =0) i.e
X ( z ) 1 − 0.6 z − 0.81z + 0.6 z −3 − 0.12 z − 4
−1 −2
jw im
1
Re
Complementary -σ1
strip
3
Primary s-plane
strip Re Re
z-plane
eT σ2 s -plane z -plane
σ
1 (iii) Mapping of constant damping ratio. (ξ ) A constant
Re
-σ1 0 σ2 damping ratio line (a radial line) in the s-plane is mapped into a
spiral in the z-plane as shown in figure below.
e-T σ1
s-plane z-plane
28
Downloaded from www.jayaram.com.np
Downloaded from www.jayaram.com.np
jw
jw1
ξ = ξ1 e−σ1Τ
e−σ2Τ
Re
(2π −w2T) w1T
1
s -plane
z -plane -jw2
σ=−σ2 σ=−σ1
34
Downloaded from www.jayaram.com.np