06/11/2014

Discrete PID Controllers

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

CONTENTS Time Domain Design Laplace Domain Design

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 Implementation number of ways by which this common and versatile controller can be and implemented in discretised form. Performance Positional and Velocity Forms

Choice of Sampling Interval

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, uo .

Back to top 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

06/11/2014

Discrete PID Controllers

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 !

Back to top 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.

Back to top Implementation and Performance of Discrete PID Controllers Commissioning discrete PID Controllers http://lorien.ncl.ac.uk/ming/digicont/digimath/dpid1.htm

2/6

06/11/2014

Discrete PID Controllers

To calculate control, the positional PID requires knowledge of uo , 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

06/11/2014

Discrete PID Controllers

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

06/11/2014

Discrete PID Controllers

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.5Ts is usually added to the process dead-time to account for the delay caused by the sampler.

Back to top 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

06/11/2014

Discrete PID Controllers

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

1s

Level loops

5s

Temperature loops 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 top Back to the Swot Shop © Copyright M.T. Tham (1996-1998) Please email errors, comments or suggestions to [email protected].

http://lorien.ncl.ac.uk/ming/digicont/digimath/dpid1.htm

6/6

contents

6 Nov 2014 - 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 ... is initially positive. The integral component will sum these positive errors to generate the necessary integral action. An.

193KB Sizes 1 Downloads 95 Views

Recommend Documents

Contents - multiresolutions.com
Notes on the History of Data Analysis . . . . . . . . . . . . . 3. 1.2.1. Biometry . . . . . . . . . . . . . . . . . . . . . . . . . 4. 1.2.2. Era Piscatoria . . . . . . . . . . . . . . . . . . . . . . . 4. 1.2.3. Psychometrics . . . . . . . . . . .

Contents - GitHub
May 9, 2006 - 3. 2 Requirements from SAGA Use Cases. 3. 2.1 Use Cases in Detail . ... A useful though informal way of understanding SAGA's aim and scope is to think of the MPI .... the design and implementation of specific API calls and maybe even th

Contents - GitHub
Dec 12, 2015 - 5.2.2 TIR-FCS with a square-shaped lateral detection volume . . . . . . . 30. 6 Troubleshooting. 32 ... 3http://www.gnu.org/licenses/gpl.html. 3 ..... This entry displays this documentation using the systems default PDF viewer. Wiki.

Contents - GitHub
Jan 7, 2015 - Foundation, either version 2 of the License, or (at your option) any later version. An exemplary usage of ... cython.org/src/tutorial/appendix.html.

Contents
Contents. Java. Chapter 4: Object-Oriented Analysis and Design ..... while I've been holed up in my office working on this book. I know they'd like to have ... than slapping down a few lines of code in Java (or C++, Eiffel, or any other object-orient

contents
Jun 2, 2008 - meeting. Fred Sewall made a motion to approve the minutes as ... changes down the road, the waiver should not necessarily go with it. Parker.

Contents -
A study on the use of online public access catalogue at the library of M.G.M College. DEVENDRA .... Device, Talking Typing Teacher Software, Braille Scanning Software, SARA, etc. The libraries should .... development of digital library initiatives in

Contents
90. 4.4.4 Estimating by simulation: A logit-smoothed AR simulator 92. 4.5 Review and exercises . . . . . . . . . . . . . . . . . . . . . . . . . 97. 4.A Deriving the Multinomial Logit log-likelihood . . . . . . . . . . . 98. 5 Discrete Games. 100. 5.

Contents - Disability Rights California
Adult Day Health Services (ADHC). Annual Report 2010. 15. Administration. 100 Howe Ave.,. Suite 185-N. Sacramento, CA 95825. (916) 488-9955. Legal Offices. Sacramento. 100 Howe Ave.,. Suite 235-N. Sacramento, CA 95825. (916) 488-9950. Bay Area. 1330

Table of Contents - GitHub
random to receive a new welfare program called PROGRESA. The program gave money to poor families if their children went to school regularly and the family used preventive health care. More money was given if the children were in secondary school than

Table of Contents - Groups
It is intended for information purposes only, and may ... It is not a commitment to ... Levels of Security, Performance, and Availability. MySQL Enterprise. Audit ...

Contents - Beck-Shop
www.cambridge.org. © in this web service Cambridge University Press ... 3.2.2 Convex Distance Concentration and Rademacher Processes. 139. 3.2.3 A Lower ...

Contents
May 15, 2011 - describe recent E. cecorum-related lameness cases in Georgia, ... Page 2. Enterococcus cecorum is a normally innocuous inhabitant of the gastro-intestinal tract of various mam- ..... Broiler growers in the 19-State weekly program place

contents
(f) a ∧ b = 0 implies a ⊕ b = a ∨ b,. (g) a ∨ b = 1 implies a ⊙ b = a ∧ b. Proof. ... By Proposition 2.2.4 (a), it follows that 0 is the first element and 1 is the last element of A. In order to prove that l.u.b.{a, .... (d), (e) and (f)

contents
∗The Open University, ∗∗Lexical Computing Ltd. Abstract. In this paper ... be a “pernicious source of structural ambiguity in English” (Resnik 1999), they have ... the British National Corpus (bnc) (http://www.natcorp.ox.ac.uk). .... We use

Table of Contents
The Archaeological Evidence for the Jafnids and the Nas ̣rids. 172. Denis Genequand. 5. Arabs in the Conflict between Rome and Persia, AD 491–630. 214.

Contents - Ng Woon Lam
In the language of visual art, Color and Design are the most funda- mental qualities ... and today, its development and pace of practical use in the field of science ...

Table of Contents
Feb 24, 2012 - Commission for Africa (ECA) [South African. Mission]. E-mail: [email protected]. Mail: PO Box 1091, Addis Ababa, ETHIOPIA.

Contents - Ng Woon Lam
My practical experience and theoretical understanding with color issues helped me .... determine the speed of transition between the three pure colors. Fig.

Contents
... to create an SD Card. On a Mac the “Apple Pi Baker App” makes this easy, download available here: ... Download Cannybots Software login as the 'pi' user ...

Contents
1,2The Edward S. Rogers Sr. Department of Electrical and Computer Engineering .... First in Section 1.2, basic multilinear algebra is reviewed and the commonly used ..... the training set and repeating 20 times is to reduce the dependency of.

Contents
4 Mechanisms of Masking by Schroeder-Phase Complexes .................... 37. Magdalena Wojtczak and Andrew J. ... of the Tectorial Membrane in Cochlear Sensory Processing................ 69. Guy P. Richardson, Victoria ... 79. Ricardo Gómez-Nieto,