“True” Digital Control.. or using the fact that we are sampling the signals to our advantge.

Slides:



Advertisements
Similar presentations
Dynamic Behavior of Closed-Loop Control Systems
Advertisements

ECEN/MAE 3723 – Systems I MATLAB Lecture 3.
3. Systems and Transfer function
AMI 4622 Digital Signal Processing
President UniversityErwin SitompulSMI 7/1 Dr.-Ing. Erwin Sitompul President University Lecture 7 System Modeling and Identification
EECS 20 Chapter 12 Part 11 Stability and Z Transforms Last time we Explored sampling and reconstruction of signals Saw examples of the phenomenon known.
Chapter 10 – The Design of Feedback Control Systems
Frequency Response Methods and Stability
Transient and steady state response (cont.)
Modern Control Theory (Digital Control)
Position Control using Lead Compensators
Digital Control Systems
Discrete Controller Design (Deadbeat & Dahlin Controllers)
Review last lectures.
Algebra Problems… Solutions
PID Control and Root Locus Method
Feedback Control Systems (FCS) Dr. Imtiaz Hussain URL :
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
2. Z-transform and theorem
Properties of the z-Transform
Chapter 8 Discrete (Sampling) System
Properties and the Inverse of
Automatic Control Theory-
DYNAMIC BEHAVIOR AND STABILITY OF CLOSED-LOOP CONTROL SYSTEMS
Control Engineering Lecture# 10 & th April’2008.
1 H Preisig 2006: Prosessregulering / S. Skogestad 2012 First-order Transfer Function Transfer function g(s): -Effect of forcing system with u(t) -IMPORTANT!!:
Chapter 5 On-Line Computer Control – The z Transform.
1.1 Introduction Comparison between ACS and CCS. ACS CCS Process Actuator Measure Controller (correcting network) Structure: Process Actuator Measure.
1 Z-Transform. CHAPTER 5 School of Electrical System Engineering, UniMAP School of Electrical System Engineering, UniMAP NORSHAFINASH BT SAUDIN
DYNAMIC BEHAVIOR OF PROCESSES :
Chapter 6: Sampled Data Systems and the z-Transform 1.
Digital Control Systems Digital Control Design via Continuous Design Emulación F,P&W Chapters 6 & 7.2.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 20:Spectral Filtering Ken Greenebaum.
THE LAPLACE TRANSFORM LEARNING GOALS Definition
Control Systems Engineering, Fourth Edition by Norman S. Nise Copyright © 2004 by John Wiley & Sons. All rights reserved. Figure 13.1 Conversion of antenna.
Chapter 3 Dynamic Response The Block Diagram Block diagram is a graphical tool to visualize the model of a system and evaluate the mathematical relationships.
Signal and Systems Prof. H. Sameti Chapter 10: Introduction to the z-Transform Properties of the ROC of the z-Transform Inverse z-Transform Examples Properties.
Frequency Response Analysis and Stability
1 More General Transfer Function Models Chapter 6 Poles and Zeros: The dynamic behavior of a transfer function model can be characterized by the numerical.
Advanced Engineering Mathematics, 7 th Edition Peter V. O’Neil © 2012 Cengage Learning Engineering. All Rights Reserved. CHAPTER 4 Series Solutions.
Digital Control CSE 421.
Z Transform The z-transform of a digital signal x[n] is defined as:
Discrete Controller Design
System Time Response Characteristics
Lecture 9 Feedback Control Systems President UniversityErwin SitompulFCS 9/1 Dr.-Ing. Erwin Sitompul President University
1 Time Response. CHAPTER Poles and Zeros and System Response. Figure 3.1: (a) System showing input and output; (b) Pole-zero plot of the system;
Lecture 2: Linear Discrete Systems 1. Introduction The primary new component of discrete or digital systems is the notion of time discretization. No longer.
Lecture 3: The Sampling Process and Aliasing 1. Introduction A digital or sampled-data control system operates on discrete- time rather than continuous-time.
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Lecture 4: The z-Transform 1. The z-transform The z-transform is used in sampled data systems just as the Laplace transform is used in continuous-time.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Difference Equations Transfer Functions Block Diagrams Resources:
Dr. Tamer Samy Gaafar Lec. 2 Transfer Functions & Block Diagrams.
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
Lecture 9: PID Controller.
Discrete-time Controller Design (Deadbeat & Dahlin Controllers)
z-Plane Analysis of Discrete-Time Control Systems
Properties of the z-Transform
Chapter 4 Dynamical Behavior of Processes Homework 6 Construct an s-Function model of the interacting tank-in-series system and compare its simulation.
Discrete-Time Transfer Functions
Chapter 4 Dynamical Behavior of Processes Homework 6 Construct an s-Function model of the interacting tank-in-series system and compare its simulation.
Laplace Transforms Chapter 3 Standard notation in dynamics and control
Automatic Control Theory CSE 322
LECTURE 33: DIFFERENCE EQUATIONS
Learning Outcomes After completing this ppt the student will be able to: Make and interpret a basic Routh table to determine the stability of a system.
Effects of Zeros and Additional Poles
Digital Control Systems Waseem Gulsher
UNIVERSITI MALAYSIA PERLIS SCHOOL OF ELECTRICAL SYSTEM ENGINEERING
Chapter 4. Time Response I may not have gone where I intended to go, but I think I have ended up where I needed to be. Pusan National University Intelligent.
ERT 210 DYNAMICS AND PROCESS CONTROL CHAPTER 11 – MATLAB TUTORIAL
IntroductionLecture 1: Basic Ideas & Terminology
Presentation transcript:

“True” Digital Control.. or using the fact that we are sampling the signals to our advantge

More on the z-transform We need to examine the z-transform in more detail. First, we look at two of the elements we have considered before -- SAMPLERS and the ZERO-ORDER HOLD (often referred to just as a HOLD).

The sampler When the switch (sampler) closes, the signal at A proceeds to B. No signal reaches B except when the sampler closes. This idea represents the action of a digital controller in that it only calculates its output at the sampling instants. AB

The Hold But the ‘plant’ will need to be given an input all the time -- just a ‘punch on the nose’ at the sampling instants is unlikely to work well. This is where the Zero-Order Hold comes into action...

The Zero-Order Hold This is the idea: The value of the signal at C is ‘caught’ by the hold and held constant until the sampler closes again. HoldAB C

Why a ‘Zero-Order Hold’ ? Because it just catches the value of the signal at C. A ‘First-Order Hold” would also catch the rate of change of the signal and keep it changing at that rate. But that is complicated, so the Zero-Order Hold is invariably used !

What will it consist of ? Normally a latching-type output port on the control computer attached to a D-A converter.

Now for the z-transform It only tells us what happens at sampling intervals Consider this diagram: y Time ( t) TsTs 3T s 5T s etc y(T s ) y(4T s )

The z-transform -- Continued Suppose the switch closes for a time T c at each sampling instant We have a series of impulses Each has a Laplace Transform equal to its area (‘strength’) times e -nTs to allow for the time at which it occurs So the Laplace Transform of the complete sampled signal will be:

..and continues further... T c (y(0) + y(T s )e -sTs + y(2T s )e -2sTs +...) or We now put z = e sTs and it simplifies...

So working them out looks heavy going... But fortunately, like Laplace Transforms, they can be looked up in tables or converted by MATLAB using the ‘c2dm’ function. This time, we leave the ‘tustin’ out... [npd,dpd]=c2dm(num,den,ts,’zoh’) The ‘zoh’ can be omitted.

Rules for converting Block Diagrams to z If blocks are separated by a sampler, convert the TFs to z and then combine the blocks. If they are not, combine them in s and then convert to z. This sounds complicated but it is actually easier than it looks...

An Example The samplers close at each sampling instant We must first combine the zero-order hold and the plant in s and then convert to z. Zero-order hold Plant G(s) + --

Send for MATLAB ! ‘c2dm’ will convert the hold-plant combination to z for us. In order to determine the required D(z), we then specify the required closed-loop performance as a C.L.T.F. in z and work out what D(z) will have to be in order to provide it. We will find that a problem arises but it is not insurmountable.

An example situation We will re-examine our plant of transfer function 40/(s s + 20) and we will try to work out a controller D(z) which will produce a unit step-response following a nice gentle first-order exponential. We will use a time constant of 0.4 second.

Our intended step-response Time (secs) Amplitude

Converting the plant T.F. to z We enlist the aid of MATLAB and ‘c2dm’, entering num=40; den=[ ]; [npd,dpd]=c2dm(num,den,.1) and we obtain

The digitised plant T.F. npd = dpd = So the TF of plant + hold is (0.1449z )/(z z )

The digitised plant TF - Continued or since it is (apart from MATLAB) usually more convenient to use negative powers of z (0.1449z z -2 )/( z z -2 )

The required closed-loop T.F. Input = unit step converting to z/(z - 1) (from tables) Output = 1 - e -t/0.4 Another ‘bout’ with the tables produces Output(z) =

The required C.L.T.F. -- Continued Which becomes with T s = 0.1 second And we divide by the input z/(z - 1) to give the CLTF /(z )

Now for the required D(z) We do a DG/(1 + DG) act again: DG/(1 + DG) = /(z ) and by rearranging DGz DG = DG and D = /[(z - 1)G]

And now for D(z)... G(z) was (0.1449z )/(z z ) so by rearranging, D(z) becomes z z z z -2 We will try this in SIMULINK....

The resulting step-response Time (second)

Not quite as intended ! Oh dear ! There is a slight wobble on the plant output and a much worse one from the controller. Let us examine D(z) again.

The Ringing Pole The denominator of the controller transfer function was calculated by: (z - 1)(0.1449z z -2 ) The second bracket is zero when z = So the controller has a pole at z = This is a Ringing Pole.. a Bad Thing

The s- and z-planes We remember that in s......poles with positive real parts meant unstable systems, and.....poles with non-zero imaginary parts meant systems with overshoot. What is the situation in z ?

This one may be ignored by non- mathematicians... We think of s as a + jw Normally a > 0 means instability For z, e (a + jw)Ts = e aTs x e jwTs De Moivre: e jwTs = cos(wTs) + j sin(wTs) so its magnitude is 1. And |z| > 1 if a > 0 So for stability |z| < 1.

Rules of the z-plane Systems with all their poles inside a circle of radius 1 unit centred on the origin -- the Unit Circle -- are stable. Again, poles off the real axis indicate step overshoot. Additionally, poles with negative REAL parts indicate oscillatory behaviour at half the sampling frequency. We avoid them at all costs !!!

“Oh, my controller is ringing !” What we need to do to stop it is to replace the offending bracket by an equivalent static gain. Not as difficult as it sounds Calculate the gain by putting z = and keep the most positive (or least negative) power of z.

“The bell is removed... ” We start from z z -2 Putting z = 1 gives Reinstating the z -1 gives z -1 The complete controller T.F. becomes z z z -1 This one works much better

Response - no ringing pole Time (second)

The Kalman Controller “Back to basics !” nth-order systems can be made to settle in n sampling intervals For a second-order, we could regard the first interval controller action as the “accelerator” and the second one as the “brakes”.

Producing a Kalman Controller We start with the plant transfer function in z... in our example: (0.1449z )/(z z ) and we make the coefficients in the numerator add up to 1 (known as ‘normalising’ the T.F.) We do this by adding the and the together, giving

The Kalman -- Continued... and dividing top and bottom of our T.F. by that number. The plant T.F. becomes z z z z -2 and we regard it as P(z)/Q(z).

Nearly to the Kalman ! It turns out that the controller TF should be Q(z)/[1 - P(z)] ! So it will be z z z z -2 and we duly test with SIMULINK...

The response with the Kalman Time (second)

Why don’t we always use the Kalman ? It depends on a good plant model being available (and the plant dynamics not changing) in order to work well A heavy controller action is usual unless we sample slowly enough to encounter aliasing problems -- we will revisit this problem in the lecture on ‘Practicalities’