Discretised PID Controllers. Part of a set of study notes on Digital Control by M. Tham

Similar documents
Linear Control Systems Lectures #5 - PID Controller. Guillaume Drion Academic year

Temperature Control in HVAC Application using PID and Self-Tuning Adaptive Controller

The Discussion of this exercise covers the following points: Angular position control block diagram and fundamentals. Power amplifier 0.

CONTROLLER DESIGN FOR POWER CONVERSION SYSTEMS

Laboratory Assignment 5 Digital Velocity and Position control of a D.C. motor

Control Design for Servomechanisms July 2005, Glasgow Detailed Training Course Agenda

GE420 Laboratory Assignment 8 Positioning Control of a Motor Using PD, PID, and Hybrid Control

International Journal of Research in Advent Technology Available Online at:

Optimal Control System Design

Classical Control Design Guidelines & Tools (L10.2) Transfer Functions

Experiment 9. PID Controller

Procidia Control Solutions Dead Time Compensation

6545(Print), ISSN (Online) Volume 4, Issue 1, January- February (2013), IAEME & TECHNOLOGY (IJEET)

PYKC 7 March 2019 EA2.3 Electronics 2 Lecture 18-1

4.5 Fractional Delay Operations with Allpass Filters

Automatic Controller Dynamic Specification (Summary of Version 1.0, 11/93)

ISSN Vol.04,Issue.06, June-2016, Pages:

Find, read or write documentation which describes work of the control loop: Process Control Philosophy. Where the next information can be found:

Position Control of DC Motor by Compensating Strategies

CHAPTER 4 PID CONTROLLER BASED SPEED CONTROL OF THREE PHASE INDUCTION MOTOR

Module 08 Controller Designs: Compensators and PIDs

CDS 101/110: Lecture 8.2 PID Control

DIGITAL SIGNAL PROCESSING WITH VHDL

1.2 Software tools for analysis and design of control systems Terminology. Formulation of the control problem... 11

AVR221: Discrete PID Controller on tinyavr and megaavr devices. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE

SECTION 6: ROOT LOCUS DESIGN

PID Controller tuning and implementation aspects for building thermal control

Switch Mode Power Conversion Prof. L. Umanand Department of Electronics System Engineering Indian Institute of Science, Bangalore

Electrical Engineering. Control Systems. Comprehensive Theory with Solved Examples and Practice Questions. Publications

CHAPTER 4 AN EFFICIENT ANFIS BASED SELF TUNING OF PI CONTROLLER FOR CURRENT HARMONIC MITIGATION

LECTURE 2: PD, PID, and Feedback Compensation. ( ) = + We consider various settings for Zc when compensating the system with the following RL:

DC MOTOR SPEED CONTROL USING PID CONTROLLER. Fatiha Loucif

EE 4314 Lab 3 Handout Speed Control of the DC Motor System Using a PID Controller Fall Lab Information

A Comparison And Evaluation of common Pid Tuning Methods

CHAPTER 2 PID CONTROLLER BASED CLOSED LOOP CONTROL OF DC DRIVE

of harmonic cancellation algorithms The internal model principle enable precision motion control Dynamic control

ANNA UNIVERSITY :: CHENNAI MODEL QUESTION PAPER(V-SEMESTER) B.E. ELECTRONICS AND COMMUNICATION ENGINEERING EC334 - CONTROL SYSTEMS

Integrator windup and PID controller design

Simulation of Optimal Speed Control for a DC Motor Using Conventional PID Controller and Fuzzy Logic Controller

THE general rules of the sampling period selection in

MM7 Practical Issues Using PID Controllers

PID TUNING WITH INPUT CONSTRAINT: APPLICATION ON FOOD PROCESSING

CHBE320 LECTURE XI CONTROLLER DESIGN AND PID CONTOLLER TUNING. Professor Dae Ryook Yang

Application of SDGM to Digital PID and Performance Comparison with Analog PID Controller

When you configure a PID loop in iocontrol, choose one of the following algorithms: Velocity ISA Parallel Interacting

Dr Ian R. Manchester Dr Ian R. Manchester Amme 3500 : Root Locus Design

Fundamentals of Servo Motion Control

Cantonment, Dhaka-1216, BANGLADESH

-binary sensors and actuators (such as an on/off controller) are generally more reliable and less expensive

Module 5. DC to AC Converters. Version 2 EE IIT, Kharagpur 1

Abstract. I. Introduction

(W) 2003 Analog Integrated Electronics Assignment #2

VECTOR CONTROL SCHEME FOR INDUCTION MOTOR WITH DIFFERENT CONTROLLERS FOR NEGLECTING THE END EFFECTS IN HEV APPLICATIONS

5 Lab 5: Position Control Systems - Week 2

Getting the Best Performance from Challenging Control Loops

Application of Proposed Improved Relay Tuning. for Design of Optimum PID Control of SOPTD Model

PID Controller Design for Two Tanks Liquid Level Control System using Matlab

CHAPTER 11: DIGITAL CONTROL

Hands-on Lab. PID Closed-Loop Control

EE 461 Experiment #1 Digital Control of DC Servomotor

Design of a Simulink-Based Control Workstation for Mobile Wheeled Vehicles with Variable-Velocity Differential Motor Drives

ENGG4420 END OF CHAPTER 1 QUESTIONS AND PROBLEMS

SYLLABUS. For B.TECH. PROGRAMME ELECTRONICS & COMMUNICATION ENGINEERING

1. Consider the closed loop system shown in the figure below. Select the appropriate option to implement the system shown in dotted lines using

Choice of Sample Time in Digital PID Controllers CHOICE OF SAMPLE TIME IN DIGITAL PID CONTROLLERS

Chapter 10: Compensation of Power Transmission Systems

INF4420 Switched capacitor circuits Outline

Lecture - 06 Large Scale Propagation Models Path Loss

Comparative Study of PID and Fuzzy Controllers for Speed Control of DC Motor

ECE 5670/ Lab 5. Closed-Loop Control of a Stepper Motor. Objectives

Glossary of terms. Short explanation

Design of PID Controller for Higher Order Discrete Systems Based on Order Reduction Employing ABC Algorithm

On the Most Efficient M-Path Recursive Filter Structures and User Friendly Algorithms To Compute Their Coefficients

Multiple attenuation via predictive deconvolution in the radial domain

Closed-loop System, PID Controller

Section 1. Fundamentals of DDS Technology

Copyrighted Material 1.1 INTRODUCTION

Copyright S. K. Mitra

Consider the control loop shown in figure 1 with the PI(D) controller C(s) and the plant described by a stable transfer function P(s).

PID control of dead-time processes: robustness, dead-time compensation and constraints handling

Digital Control of MS-150 Modular Position Servo System

INF4420. Switched capacitor circuits. Spring Jørgen Andreas Michaelsen

An Overview of Linear Systems

Figure 1.1: Quanser Driving Simulator

Introduction to System Block Algebra

A PID Controlled Real Time Analysis of DC Motor

Logic Developer Process Edition Function Blocks

Introduction to Servo Control & PID Tuning

Various Controller Design and Tuning Methods for a First Order Plus Dead Time Process

COMPARISON OF TUNING METHODS OF PID CONTROLLER USING VARIOUS TUNING TECHNIQUES WITH GENETIC ALGORITHM

An Investigation into the Effects of Sampling on the Loop Response and Phase Noise in Phase Locked Loops

VARIABLE STRUCTURE CONTROL DESIGN OF PROCESS PLANT BASED ON SLIDING MODE APPROACH

Bulletin 1402 Line Synchronization Module (LSM)

Oscilloscope Measurement Fundamentals: Vertical-Axis Measurements (Part 1 of 3)

16.30 Learning Objectives and Practice Problems - - Lectures 16 through 20

HIL Simulation Lab Work

IMPLEMENTATION OF KALMAN FILTER ON VISUAL TRACKING USING PID CONTROLLER

EC CONTROL SYSTEMS ENGINEERING

Compensation of Dead Time in PID Controllers

CHAPTER 4 DESIGN OF DC LINK VOLTAGE CONTROLLER FOR SHUNT ACTIVE POWER FILTER

Transcription:

Discretised PID Controllers Part of a set of study notes on Digital Control by M. Tham CONTENTS Time Domain Design Laplace Domain Design Positional and Velocity Forms Implementation and Performance Choice of Sampling Interval Before discussing the design of digital control algorithms, let us consider discrete equivalents of analog controllers. Analog Control refers to the design and implementation of controllers in the continuous domain. This includes electronic controllers, which although discrete in nature, implements control by emulating the continuous nature of analog control strategies. A typical example is the electronic PI/PID algorithm. There are a number of ways by which this common and versatile controller can be implemented in discretised form. PI/PID Controller Design from the Time domain Consider the ideal PID controller written in the continuous time domain form: To discretise the controller, we need to approximate the integral and the derivative terms to forms suitable for computation by a computer. From a purely numerical point of view, we can use: and The discretised PID algorithm is therefore: which is now in the form of a difference equation, suitable for coding in an appropriate programming language. This particular form of the PID algorithm is known as the 'positional' PID controller, because the control signal is calculated with reference to a base level, u o. PI/PID Controller Design from the Laplace Domain We can also formulate discrete PID controllers directly from the Laplace domain. Here, the ideal PID algorithm is written as: http://lorien.ncl.ac.uk/ming/digicont/digimath/dpid1.htm 1/6

Now we can apply either the backward difference or bilinear transformation methods to get an equivalent discrete PID controller. Say we apply the backward difference method. Then, Simplification yields: This PID controller is different in structure to that obtained from time-domain considerations and is known as the 'velocity' PID algorithm. As opposed to the fixed control reference used in the positional algorithm, here, the calculation of current control uses the previous control value as reference. In essence, the control is calculated as a change, hence the term 'velocity form'. Application of the Bilinear Transform will yield a similar velocity form algorithm, due to the presence of the term in the approximation. Try it! Positional and Velocity PID Algorithms Although the structures of the positional and velocity PID algorithms appear very different, they are in fact related. The positional algorithm as derived is: Time shifting back one sampling interval, we obtain Subtracting this from the original, we end up with the velocity form, i.e. Implementation and Performance of Discrete PID Controllers Commissioning discrete PID Controllers http://lorien.ncl.ac.uk/ming/digicont/digimath/dpid1.htm 2/6

To calculate control, the positional PID requires knowledge of u o, which is some steady-state control output level. This may have implications during commissioning. With the velocity form however, the previous control can be set to any reasonable arbitrary level, and hence commissioning is simpler. Integral Windup A more important aspect is the use of a summation to calculate the contribution of the integral term. This can lead to problems leading to a phenomenon known as integral windup, causing long periods of overshoots in the controlled response. This can be caused by a poorly tuned controller or the controller output is overly constrained (for some safety reasons or inappropriately sized final control element say), or a combination of both factors. What happens is this. Say the controlled process has a positive gain and a positive set-point change occurs. The controller will then try to reduce the error between set-point and output, which is initially positive. The integral component will sum these positive errors to generate the necessary integral action. An overshoot occurs, whereupon the errors become negative. However, the direction of the control signal will not change to compensate if the sum of previously positive error dominates, in which case the overshoot becomes prolonged. The direction of control action will change only when the contribution of negative errors cancels the accumulated positive errors sufficiently. This phenomenon is known as integral windup or reset windup This phenomenon is illustrated in the following figures, Output without control constraints http://lorien.ncl.ac.uk/ming/digicont/digimath/dpid1.htm 3/6

Unconstrained control signal The following set of plots show the effects of integral windup, when the output of the controller is subject to a contraint. Output with control constraints Constrained control signal http://lorien.ncl.ac.uk/ming/digicont/digimath/dpid1.htm 4/6

With the velocity PID algorithm, because it does not make use of a sum of errors to generate integral action, the problem of integral windup will not occur, even if the control signal is constrained. Controller tuning All the tuning procedures for continuous time PID controllers apply. These range from the empirical Ziegler-Nichol ultimate gain method, to the recipe based integral of error criteria. With recipe based methods, a factor of 0.5T s is usually added to the process dead-time to account for the delay caused by the sampler. Choice of Sampling Interval Another important aspect in sampled data control systems is the choice of sampling intervals. With electronic controllers that emulate continuous time algorithms, this choice is simple: sample as fast as possible. This is because of the approximations that are used to generate the difference equations describing the controllers. Smaller sampling intervals mean that the properties of the underlying controller design will be less distorted, hence more predictable and better performances. A good example is the discretised PID controllers. They perform best when sampling intervals are small. However, too fast a sampling is wasteful of resources. the cost of implementation will increase because more capable components must be installed a DCS typically has many hundreds of input-output channels to administer. The functioning of the DCS will degrade significantly if every control loop is to sample at the highest frequency possible. fast sampling intervals will mean that high frequency components such as noise will also be captured in the signal, and this is not necessarily beneficial to the performance of the control loop. If the sampling interval is too long, then signal loss will occur. An extreme case is the phenomenon known as 'aliasing'. Signal aliasing refers to the situation whereby the sampled versions of two very different signals are indistinguishable. As illustrated in the figure below, the sampled representation of a step (dotted horizontal line) and a periodic wave are identical. http://lorien.ncl.ac.uk/ming/digicont/digimath/dpid1.htm 5/6

wpee.gif (3794 bytes) Many rules-of-thumb regarding the choice for sampling times for different types of loops have been published, including the following recommendations: Flow loops Level loops Temperature loops 1s 5s 30s to 10 mins. These are however, merely rough guidelines. The choice of an appropriate sampling interval should be based on the dynamics of the process being controlled. The sampling operation must return the key dynamic characteristics of the process. From experience, a sampling interval of approximately 10% of the dominant time constant works well in practise. The position of the poles and zeros of the discrete transfer functions depend on the sampling interval used. Although this characteristic is not of great significance in PID type algorithms, it becomes important when discrete process models are used directly in the design of digital controllers. We shall cover this in more detail when we discuss model based digital controller design. Back to the Swot Shop Copyright M.T. Tham (1996-1998) Please email errors, comments or suggestions to ming.tham@ncl.ac.uk. http://lorien.ncl.ac.uk/ming/digicont/digimath/dpid1.htm 6/6