• No results found

zero and first order hold

N/A
N/A
Protected

Academic year: 2021

Share "zero and first order hold"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

Module 1: Introduction to Digital Control

Module 1: Introduction to Digital Control

Lecture Note 4

Lecture Note 4

1

1 Da

Data

ta Re

Reco

cons

nstr

truc

ucti

tion

on

Most of the control systems have analog controlled processes which are inherently driven by Most of the control systems have analog controlled processes which are inherently driven by ana

analog log inpinputsuts. . ThThus us the outputhe outputs ts of of a a digdigitaital l concontrotrolleller r shoshould uld firsfirst t be be conconveverterted d ininto to anaanaloglog sig

signalnals s befobefore being appliere being applied d to the to the syssystemtems. s. AnoAnothether r waway y to look to look at the at the proprobleblem m is is thathat t thethe high frequency components of 

high frequency components of  f  f ((tt) should be removed before applying to analog devices. A low) should be removed before applying to analog devices. A low pass filter or a data reconstruction device is necessary to perform this operation.

pass filter or a data reconstruction device is necessary to perform this operation. In

In concontrotrol l syssystemtem, , holhold d operoperatiation on becobecomes mes the most the most populpopular ar waway y of of recreconsonstrutructiction on due due toto its simplici

its simplicity and low cost. ty and low cost. ProblProblem of em of data reconsdata reconstructtruction can ion can be be formformulateulated as:d as:   “ Given a  “ Given a sequence of numbers,

sequence of numbers, f  f (0)(0),, f f ((T T )),, f f (2(2T T )),, ·· ·· ·· , , f f ((ktkt)),, ·· ·· ··, a continuous time signal, a continuous time signal f  f ((tt)), , tt ≥≥ 00, is to be reconstructed from the information contained in the sequence.”, is to be reconstructed from the information contained in the sequence.”

Data reconstruction process may be regarded as an extrapolation process since the continuous Data reconstruction process may be regarded as an extrapolation process since the continuous data signal has to be formed based on the information available at past sampling instants. data signal has to be formed based on the information available at past sampling instants. Suppose the original signal

Suppose the original signal f  f ((tt) between two consecutive sampling instants) between two consecutive sampling instants  k kT T  and ( and (kk + 1) + 1)T T  isis to be estimated based on the values of 

to be estimated based on the values of  f  f ((tt) at previous instants of ) at previous instants of  k kT T , i.e., (, i.e., (kk −− 1)1)T T , , ((kk −− 2)2)T T ,, ·· ·· ·· 0.0.

Power series expansion is a well known method of generating the desired approximation which Power series expansion is a well known method of generating the desired approximation which yields yields f  f kk((tt) ) == f f ((kT kT ) +) + f  f (1)(1)((kT kT )()(tt −− kT kT ) +) +  f   f (2)(2)((kT kT )) 2! 2! ((tt −− kT kT )) 2 2++ ... ... where,

where, f f kk((tt) ) == f f ((tt) for) for kT kT  ≤≤ tt ≤≤ ((kk + 1) + 1)T T  andand

f  f ((nn))((kT kT ) ) == dd n nf ((tt)) dt dtnn



tt==kT kT  for nfor n =  = 11,, 22,...,...

Since the only available information about

Since the only available information about f f ((tt) is its magnitude at the sampling instants, the) is its magnitude at the sampling instants, the derivatives of 

derivatives of  f  f ((tt) must be estimated from the values of ) must be estimated from the values of  f  f ((kT kT ), as), as f  f (1)(1)((kT kT )) ∼∼== 11 T  T  [ [f f ((kT kT )) −− f f ((((kk −− 1)1)T T )])] Similarly, Similarly, f f (2)(2)((kT kT )) ∼∼== 11 T  T  [ [f f  (1) (1)((kT kT )) −− f (1)(1)((((kk −− 1)1)T T )])] where, where, f f (1)(1)((((kk −− 1)1)T T )) ∼∼== 11 T  T  [ [f f ((((kk −− 1)1)T T )) −− f f ((((kk −− 2)2)T T )])]

(2)

1.1 Zero Order Hold

Higher the order of the derivatives to be estimated is, larger will be the number of delayed pulses required. Since time delay degrades the stability of a closed loop control system, using higher order derivatives of  f (t) for more accurate reconstruction often causes serious stability problem. Moreover a high order extrapolation requires complex circuitry and results in high cost.

For the above reasons, use of only the first term in the power series to approximate  f (t) during the time interval kT  ≤ t < (k + 1)T  is very popular and the device for this type of extrapolation is known as zero-order extrapolator or zero order hold. It holds the value of  f (kT ) for kT  ≤ t < (k + 1)T  until the next sample f ((k + 1)T ) arrives. Figure 1 illustrates the operation of a ZOH where the green line represents the original continuous signal and brown line represents the reconstructed signal from ZOH.

0 1 2 3 4 5 6 7 8 9 10 −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1 Time (t)    f    (    t    ) ,    f   k    (    t    ) Reconstructed signal Original signal

Figure 1: Zero order hold operation

The accuracy of zero order hold (ZOH) depends on the sampling frequency. When  T  → 0, the output of ZOH approaches the continuous time signal. Zero order hold is again a linear device which satisfies the principle of superposition.

gh0(t)

t T 

1

(3)

The impulse response of a ZOH, as shown in Figure 2, can be written as gho(t) = us(t) − us(t − T ) ⇒ Gho(s) = 1 − e−T S  s Gho( jw) = 1 − e− jwT   jw = T    sin(wT /2) wT /2 e − jwT /2 Since T  = 2π ws , we can write Gho( jw) = 2π ws sin(πw/ws) πw/ws e − jπ w/ws Magnitude of  Gho( jw): |Gho( jw)| = 2π ws





sin(πw/ws) πw/ws





Phase of  Gho( jw): Gh0( jw) = sin(πw/ws) − πw ws rad The sign of  sin(πw/ws) changes at every integral value of  πw

ws

. The change of sign from + to − can be regarded as a phase change of  −1800. Thus the phase characteristics of ZOH is

linear with jump discontinuities of  −1800 at integral multiple of  ws. The magnitude and phase

characteristics of ZOH are shown in Figure 3. At the cut off frequency wc =

ws

2 , magnitude is 0.636. When compared with an ideal low pass filter, we see that instead of cutting of sharply at w = ws

2  , the amplitude characteristics of 

Gho( jw) is zero at ws

2 and integral multiples of  ws. 1.2 First Order Hold

When the 1st two terms of the power series are used to extrapolate  f (t), over the time interval

kT < t < (k + 1)T , the device is called a first order hold (FOH). Thus f k(t) = f (kT ) + f 1(kT )(t − kT ) where, f 1(kT ) = f (kT ) − f ((k − 1)T ) T  ⇒ f k(t) = f (kT ) +  f (kT ) − f ((k − 1)T ) T  (t − kT )

Impulse response of FOH is obtained by applying a unit impulse at t = 0, the corresponding output is obtained by setting k = 0, 1, 2,...

for k = 0,  when 0 ≤ t < T, f  0(t) = f (0) +

 f (0) − f (−T )

(4)

0 1 2 3 4 5 6 7 8 0 0.2 0.4 0.6 0.8 1 w/w s   | G   h   0   (   j w   )   |   / T

Frequency Response of Zero Order Hold

0 1 2 3 4 5 6 7 8 −3000 −2000 −1000 0 w/w s  P   h a  s  e  o   f  G  h   0   (   j w   )

Figure 3: Frequency response of ZOH f (0) = 1 [impulse unit] f (−T ) = 0 f h1(t) = 1 +

t

T  in this region. When  T  ≤ t < 2T  f 1(t) = f (T ) +

 f (T ) − f (0)

T  (t − T ) Since, f (T ) = 0 and f (0) = 1, f h1(t) = 1 −

t

T   in this region. f h1(t) is 0 for t ≥ 2T , since f (t) = 0 for t ≥ 2T . Figure 4 shows the impulse response of first order hold.

T  t 2T  gh1(t) −1 2 1

Figure 4: Impulse response of First Order Hold

If we combine all three regions, we can write the impulse response of a first order hold as, gh1(t) = (1 + t T  )us(t) + (1 − t T  )us(t − T ) − (1 + t T  )us(t − T ) − (1 − t T  )us(t − 2T ) = (1 + t T  )us(t) − 2  t T  us(t − T ) − (1 − t T  )us(t − 2T )

(5)

One can verify that according to the above expression, when 0 ≤ t < T , only the first term produces a nonzero value which is nothing but (1 + t/T ). Similarly, when T  ≤ t < 2T , first two terms produce nonzero values and the resultant is (1 − t/T ). In case of  t ≥ 2T , all three terms produce nonzero values and the resultant is 0.

The transfer function of a first order hold is: Gh1(s) = 1 + T s T 

1 − e−T s s

2 Frequency Response Gh1( jw) = 1 + jwT  T 

1 − e− jwT  s

2 Magnitude: |Gh1( jw)| =





1 + jwT  T 





|Gh0( jw)| 2 = 2π ws

 

1 + 4π 2w2 w2 s





sin(πw/ws) πw/ws





2

Phase: Gh1( jw) = tan−1(2πw/ws) − 2πw/ws rad

The frequency response is shown in Figure 5.

0 1 2 3 4 5 6 7 8 0 0.5 1 1.5 2 w/w s   | G   h   1   (   j w   )   |   / T

Frequency Response of First Order Hold

0 1 2 3 4 5 6 7 8 −3000 −2500 −2000 −1500 −1000 −500 0 w/w s  P   h a  s  e  o   f  G  h   1   (   j w   )

Figure 5: Frequency response of FOH

(6)

0 1 2 3 4 5 6 7 8 9 10 −1.5 −1 −0.5 0 0.5 1 1.5 Time (t)    f    (    t    ) ,    f   k    (    t    ) o/p of ZOH original signal o/p of FOH

References

Related documents

When comparing the data in the subgroups of subjects with varying degrees of gingivitis severity, it was found that the majority of oral fluid samples of subjects with mild

Many researchers have already given efforts to fight with the spammers. Some of the works are related to our proposed multi-level architecture for spam detection. However, our

The relationship between the selection coefficients (beta values) for ruggedness. In a) dispersers are shown for the before, during and after periods of dispersal. Avoidance

If we now consider the case where an impeller is to be selected Rushton turbines generate higher gas hold-up than pitched blade at all studied gas velocity, and dual

The current study will thus attempt to answer questions on the influence of Performance Expectancy (PE); Effort Expectancy (EE); Social Influence (SI) and Facilitating

The highest plant height, dry matter accumulation, leaf area index, crop growth rate, seed yield and stick yield were documented with the application of straw mulching @ 7

vidend navíc ještě další možnosti participace na zisku akciové společnosti (dodatečné dividendy), což ovšem bývá možné až po vyplacení dividend připadajících

Simultaneous Treatment of Municipal Wastewater and Biodiesel Production by Cultivation of Chlorella vulgaris with Indigenous Wastewater Bacteria. Municipal wastewater