3rd POCPA Workshop, May 2012, DESY

Slides:



Advertisements
Similar presentations
Chapter 4: Basic Properties of Feedback
Advertisements

Nyquist Stability Criterion
3. Systems and Transfer function
Lect.7 Steady State Error Basil Hamed
Signal and System IIR Filter Filbert H. Juwono
Modern Control Theory Lecture 5 By Kirsten Mølgaard Nielsen
Multivariable Control
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
CHE 185 – PROCESS CONTROL AND DYNAMICS
Unit 9 IIR Filter Design 1. Introduction The ideal filter Constant gain of at least unity in the pass band Constant gain of zero in the stop band The.
ELEN 5346/4304 DSP and Filter Design Fall Lecture 7: Z-transform Instructor: Dr. Gleb V. Tcheslavski Contact:
AMI 4622 Digital Signal Processing
Control System Design Based on Frequency Response Analysis
Modern Control Theory (Digital Control)
Lecture 19: Discrete-Time Transfer Functions
Frequency Response Methods and Stability
Transient and steady state response (cont.)
Modern Control Theory (Digital Control)
Lecture 14: Laplace Transform Properties
I. Concepts and Tools Mathematics for Dynamic Systems Time Response
Frequency Response of Discrete-time LTI Systems Prof. Siripong Potisuk.
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
The sampling of continuous-time signals is an important topic It is required by many important technologies such as: Digital Communication Systems ( Wireless.
Chapter 2 Discrete System Analysis – Discrete Signals
Module 2: Representing Process and Disturbance Dynamics Using Discrete Time Transfer Functions.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Stability and the s-Plane Stability of an RC Circuit 1 st and 2 nd.
Properties of the z-Transform
Chapter 8 Discrete (Sampling) System
University of Khartoum -Signals and Systems- Lecture 11
Dynamic analysis of switching converters
1 Power Electronics by Dr. Carsten Nesgaard Small-signal converter modeling and frequency dependant behavior in controller synthesis.
CHAPTER 4 Laplace Transform.
CHAPTER 4 Laplace Transform.
1.1 Introduction Comparison between ACS and CCS. ACS CCS Process Actuator Measure Controller (correcting network) Structure: Process Actuator Measure.
Chapter 5 Z Transform. 2/45  Z transform –Representation, analysis, and design of discrete signal –Similar to Laplace transform –Conversion of digital.
1 Z-Transform. CHAPTER 5 School of Electrical System Engineering, UniMAP School of Electrical System Engineering, UniMAP NORSHAFINASH BT SAUDIN
Chapter 5 Transient and Steady State Response “I will study and get ready and someday my chance will come” Abraham Lincoln.
Chapter 6: Sampled Data Systems and the z-Transform 1.
Fundamentals of PWM Dc-to-Dc Power Conversion Dynamic Performance of PWM Dc-to-Dc Converters.
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
Z TRANSFORM AND DFT Z Transform
Chapter 6: Frequency Domain Anaysis
Digital Control Systems Digital Control Design via Continuous Design Emulación F,P&W Chapters 6 & 7.2.
Control Systems With Embedded Implementation (CSEI)
ES97H Biomedical Signal Processing
Digital Signal Processing
Subsea Control and Communications Systems
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.
Z Transform The z-transform of a digital signal x[n] is defined as:
Discrete Controller Design
System Time Response Characteristics
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.
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.
Lecture 9: PID Controller.
Digital Signal Processing Lecture 6 Frequency Selective Filters
Chapter 2 The z Transform.
z-Plane Analysis of Discrete-Time Control Systems
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
Control Systems Lect.3 Steady State Error Basil Hamed.
SKEE 3143 Control Systems Design Chapter 2 – PID Controllers Design
Signals and Systems, 2/E by Simon Haykin and Barry Van Veen Copyright © 2003 John Wiley & Sons. Inc. All rights reserved. Figure 9.1 (p. 664) Two different.
Chapter 2 The z-transform and Fourier Transforms The Z Transform The Inverse of Z Transform The Prosperity of Z Transform System Function System Function.
Laplace Transforms Chapter 3 Standard notation in dynamics and control
Chapter 9 Design via Root Locus <<<4.1>>>
Chapter 5 DT System Analysis : Z Transform Basil Hamed
數位控制理論簡介.
CHAPTER-6 Z-TRANSFORM.
Time Response, Stability, and
Presentation transcript:

3rd POCPA Workshop, 21-23 May 2012, DESY 26/04/2017 Theory of Z-transforms F. BOUVET 3rd POCPA Workshop, 21-23 May 2012, DESY

Tutorial objective Answer to the following questions: What are Z-transforms ? Why are they so important ? How are they used for digital regulation ?

Content Introduction Z-transforms Definition & properties Examples of Z-transforms Relation between Laplace and Z transforms Computation of the Z-transform of a signal from its Laplace transform Mapping from s-plane to z-plane Digitally controlled continuous-time systems Modelling of the plant to be controlled Open-loop and closed-loop transfer function Controller algorithm Analysis of closed-loop systems Stability of closed-loop systems and robustness Influence of the poles & zeros on the transient behavior Precision of closed-loop systems Discrete-time controller synthesis Emulation design Direct discrete-time design

Introduction Reminder about Laplace transform: Essential mathematical tool for continuous-time system & signal analysis ; stable or unstable The Laplace transform X(s) of a continuous-time causal signal x(t) is given by Case of discrete-time causal signals: x(k)}, kℤ: Sequence of sampled values (= 0  k<0) Ts: Sampling period (assumed constant) : Dirac delta function => The Laplace transform X*(s) of a discrete-time signal x*(t) is given by (1) Not a polynomial form… Ts 2Ts 3Ts nTs t x*(t) x(t) 1

Z-transform Definition With the change of variable in eq. (1), we derive the following expression = definition of the Z-transform:  z  ℂ for which X(z) converges => Takes the form of a polynomial of the complex variable z The Z-transform is the discrete-time counter-part of the Laplace transform  Essential tool for the analysis and design of discrete-time systems Interpretation of the variable z-1 From Laplace time-shift property, we know that is time advance by Ts second Therefore corresponds to unit sample period delay

Z-transform Properties of Z-transforms - Linearity - Shifting property - Convolution - Multiply by k property - Final value

Z-transform Examples of Z-transforms - Discrete impulse 1 * k - Discrete step - Discrete ramp * 1 k * 1 k * k

Z-transform Z-transform Table

Relation between Laplace and Z-transforms X(s)  X(z) ? Case of signals having only simple poles By sampling x(t), we obtain the following discrete sequence From line 4 of the Z-transform table: (2) => A pole in X(s) yields a pole in X(z)

Relation between Laplace and Z-transforms General case (3) Calculation of the residue at the pole of multiplicity m: For a simple pole (m = 1): An example of calculation will be given in the next chapter

Relation between Laplace and Z-transforms Mapping from s-plane to z-plane Since we can map the s-plane to the z-plane as below: NB: 2 poles in the s-plane which imaginary part differ by map to the same pole in the z-plane Bijective mapping between both planes =>  s z

Relation between Laplace and Z-transforms Mapping from s-plane to z-plane Legend: s z

Digitally controlled continuous-time systems Modelling of the plant to be controlled Model of the DAC = Zero-order hold (ZOH)  Converts u(k) to u(t) by holding each sample value for one sample interval The Laplace transform transfer function of the ZOH is (4) If H(s) has poles , then H(z) has poles . But the zeros are unrelated. Perturbations Ts DAC ADC Digital Controller « Discretised » Plant Plant + _ NB: Delay introduced by the ZOH = Ts/2

Digitally controlled continuous-time systems  ways to calculate : - Partial fraction decomposition + use z-transform table - If has only simple poles, use Eq. (2): - Use Eq. (3): -  Ask Matlab: Function ‘c2d’ Syntax sysd = c2d(sys,Ts) Description sysd = c2d(sys,Ts) discretizes the continuous-time LTI model sys using zero-order hold on the inputs and a sample time of Ts seconds.

Digitally controlled continuous-time systems If Open-loop transfer function: Closed-loop transfer function: Controller algorithm: Transfer function of the digital controller Hence = Difference equation, where current output is dependent on current input and previous inputs and outputs

Digitally controlled continuous-time systems Ts ADC Digital Controller PWM PWM signals + _ Example: Half bridge PWM converter H(z) ? Controller output = modulation index (-1 < m < 1) Update of PWM signal duty cycle resulting from m(k) Sampling PWM clock Output m(k) ADC + Computation time delay Control delay = tc kTs (k+1)Ts t

Digitally controlled continuous-time systems Modelling of the PWM converter The PWM can be modelled by a DAC with Using Eq. (3), with a double pole: Ts ADC DAC + _ In this example and

Analysis of closed-loop systems Closed control loop performance criteria: - Stability & robustness - Static & dynamic behavior The system behavior & stability is determined by the roots of the closed-loop TF Stability of closed-loop systems Mapping s-plane to z-plane z-plane stable pole location Digital Controller « Discretised » Plant + _ Unit Circle STABLE Closed-loop transfer function: Poles of the closed-loop TF = Roots of the characteristic equation

Analysis of closed-loop systems Robustness Open-loop transfer function: Phase margin ΦM : Where is such that Gain margin GM : Typically: -1 1/GM ΦM w↗ Matlab plots and margins  Use functions ‘nyquist’ , ‘bode’ , ‘margin’

Analysis of closed-loop systems Influence of the poles on the transient behavior Will be illustrated with the step response analysis of a system CL(z) having only simple poles: Step response @ sampling instants: - Steady-state: - Contribution of real poles : Sum of exponential terms - Contribution of complex conjugate poles : Oscillating regime Dependent on pole locations => Damped oscillations => Undamped oscillations

Analysis of closed-loop systems Influence of the poles on the transient behavior NB: Poles closer to origin  Faster transient regime Contribution of real poles  Contribution of complex poles

Analysis of closed-loop systems Particular case: 2nd order systems A popular technique for controller design is pole placement. A common strategy consists to derive the controller parameters from a pole placement such that the closed-loop behaves like a 2nd order system. Continuous-time theory: The design specifications imply constrainsts on the cut-off frequency and the damping ratio Discrete closed-loops: Pole mapping from s-plane to z-plane: Rise time (10%  90%): Peak overshoot: Settling time (to 1%): s  z  => condition for Ts

Analysis of closed-loop systems Particular case: 2nd order systems Influence of a zero where z0  ℝ and ( unitary static gain) - Increasing overshoot when the zero is moving towards +1  Take care… - The reference tracking performance can be improved by designing appropriate zeros in the closed-loop transfer function.  Discrete step response

Analysis of closed-loop systems Precision of closed-loop systems Same conclusions as for continuous-time closed-loops - Precision versus the input To achieve zero steady-state error, we require  at least 1 integrator (pole @ z =1) in the open-loop TF for a step input  at least 2 integrators in the open-loop TF for a ramp input  … - Perturbation rejection To reject disturbances of class N  at least N+1 integrators in Perturbations Ts DAC ADC Digital Controller Plant + _

Discrete-time controller synthesis 2 main ways to synthesize discrete-time controllers: 1. Emulation design 2. Direct discrete-time design Continuous-time design Digital implemen-tation Controller discretization Plant discretization Digital implemen-tation Controller design

Discrete-time controller synthesis Emulation design 1rst step: Continuous-time controller design. At this stage the sampling is ignored. But the control + ZOH delays should be taken into account ( preserve phase margin) 2nd step: Discretization of the continuous-time controller (Followed by simulations to check  Methods: performances) - Approximate , i.e - Pole-zero matching 3rd step: Derivation of the controller algorithm (difference equation) Approximation methods: - Euler - Tustin’s or bilinear approximation Example: Discretization of a PI controller using Tustin’s approximation Matlab  sysd = c2d(sys,Ts,’tustin’)

Discrete-time controller synthesis Comparison between Euler and Tustin’s approx. - Stability - Mapping of the poles Euler: => Tustin: => To be compared to  poles Euler Tustin 1 -1 1 -1 Half- plane An unstable continuous-time system can be mapped to a stable discrete system Perfect correspondence

Discrete-time controller synthesis Comparison between Euler and Tustin’s approx. - Pole and zero locations not preserved  Frequency response is changed - Increasing the sampling frequency  Smaller approximation errors Example 1: Ts = 0.6 Ts = 0.06 => Better result with Tustin

Discrete-time controller synthesis Comparison between Euler and Tustin’s approx. Example 2: Ideal derivative Other discretization method = Matched transform Euler: Filtering effect @ high frequencies Tustin: Magnitude  ∞ when w  /Ts Noise amplification @ high frequencies => Euler more appropriate for discretization of high-pass filters => Tustin more appropriate for discretization of low-pass filters Matlab  sysd = c2d(sys,Ts,’matched’) is set so to obtain the same static gain No frequency distorsion => Well-adapted for the discretization of transfer functions including resonances (ex: notch filter, …)

Discrete-time controller synthesis Direct discrete-time design - A system controlled using an emulation controller always suffer the degradation of performance compared with its continuous-time counter-part - To reduce the degree of degradation, very fast sampling can be needed, as {ADC – Digital controller – DAC} should behave the same as the analogue controller (e.g. PID type) Bad use of the potentialities of the digital controller In this case, direct discrete-time design offers an alternative solution, since in this design the sampling is considered from the beginning of the design process 1rst step: Discretization of the continuous-time plant (Cf. chapter 3) 2nd step: Choice of controller type (PID, RST, …) and computation of the controller parameters using for example a pole placement method (Cf. chapter 4) : Choice based on the bandwidth of the closed-loop system 3rd step: Derivation of the controller algorithm (difference equation) More in the next tutorials…

Thank you for your attention. Questions Thank you for your attention. Questions ?