+ All Categories
Home > Documents > Basic Control Theory-Dr. Hung Nguyen

Basic Control Theory-Dr. Hung Nguyen

Date post: 10-Apr-2015
Category:
Upload: api-3698538
View: 3,238 times
Download: 3 times
Share this document with a friend
171
Lecture Notes BASIC CONTROL THEORY Module 1 Modelling of Dynamic Systems (Linear system modelling, ODEs - continuous-time models, Laplace transform) AUGUST 2005 Prepared by Dr. Hung Nguyen
Transcript
Page 1: Basic Control Theory-Dr. Hung Nguyen

Lecture Notes

BASIC CONTROL THEORY

Module 1 Modelling of Dynamic Systems

(Linear system modelling, ODEs - continuous-time models, Laplace transform)

AUGUST 2005

Prepared by Dr. Hung Nguyen

Page 2: Basic Control Theory-Dr. Hung Nguyen

i

TABLE OF CONTENTS Table of Contents..............................................................................................................................i List of Figures..................................................................................................................................ii List of Tables ................................................................................................................................. iii References ......................................................................................................................................iv Objectives ........................................................................................................................................v 1. Mathematical Modelling of Dynamic Systems ...........................................................................1 2. Continuous Time Models – Ordinary Differential Equations .....................................................1 3. General Modelling Principles......................................................................................................2

3.1 Mechanical Systems .............................................................................................................2 Example 1 A Simple Pendulum..............................................................................................2 Example 2 A Mass-Damper System.......................................................................................2

3.2 Liquid Level Storage Systems ..............................................................................................4 Example 3 A Liquid Level Storage System ...........................................................................4

3.3 Electrical Systems.................................................................................................................7 Example 4 Close-Loop RLC Circuit......................................................................................7

4. Review of Laplace Transform .....................................................................................................8 4.1 Laplace Transform ................................................................................................................8 4.2 Laplace Transform Theorems .............................................................................................10 4.3 Applications of Laplace Transform.....................................................................................13

Example 5.............................................................................................................................13 Example 6.............................................................................................................................15 Example 7.............................................................................................................................16 Example 8.............................................................................................................................17 Example 9.............................................................................................................................19 Example 10...........................................................................................................................19 Example 11...........................................................................................................................20 Example 12...........................................................................................................................21

4.4 Partial Fraction Expansion with MATLAB ........................................................................23 Example 13...........................................................................................................................23 Example 14...........................................................................................................................24

Summary of Module 1...................................................................................................................26 Exercises........................................................................................................................................26 Appendix – Numerical Integration Methods .................................................................................30

Sample Program in MATLAB ..................................................................................................31

Page 3: Basic Control Theory-Dr. Hung Nguyen

ii

LIST OF FIGURES Figure 1 ...........................................................................................................................................3 Figure 2 ...........................................................................................................................................4 Figure 3 ...........................................................................................................................................4 Figure 4 ...........................................................................................................................................7 Figure 5 .........................................................................................................................................17 Figure 6 .........................................................................................................................................20 Figure 7 .........................................................................................................................................22 Figure 8 .........................................................................................................................................26 Figure 9 .........................................................................................................................................26 Figure 10........................................................................................................................................27 Figure 11........................................................................................................................................27 Figure 12........................................................................................................................................28 Figure 13........................................................................................................................................28 Figure 14........................................................................................................................................28 Figure 15........................................................................................................................................29 Figure A.1 ......................................................................................................................................32

Page 4: Basic Control Theory-Dr. Hung Nguyen

iii

LIST OF TABLES Table 1 ...........................................................................................................................................2 Table 2 ...........................................................................................................................................9 Table 3 .........................................................................................................................................11

Page 5: Basic Control Theory-Dr. Hung Nguyen

iv

REFERENCES Kamen, Edward and Heck, Bonnie S. (1997), Fundamentals of Signals and Systems Using

MATLAB®, Englewood Cliffs, New Jersey, USA. Kou, Benjamin C. (1995), Automatic Control Systems, Prentice-Hall International Inc., Upper

Saddle River, New Jersey, USA. Ogata, Katsuhiko (1997), Modern Control Engineering, 3rd Edition, Prentice-Hall International

Inc., Upper Saddle River, New Jersey, USA. Richards, R.J. (1993), Solving in Control Problems, Longman Group UK Ltd, Harlow, Essex,

UK. Seborg, Dale E., Edgar, Thomas F. and Mellichamp, Duncan A. (2004), Process Dynamics and

Control, 2nd Edition, John Wiley & Sons, Inc., Hoboken, New Jersey, USA. Taylor, D.A. (1987), Marine Control Practice, Anchor-Brendon Ltd, Tiptree, Essex, UK.

Page 6: Basic Control Theory-Dr. Hung Nguyen

v

AIMS

1.0 Explain principles of modelling linear systems, methods of representing dynamic systems in term of mathematics and solving ordinary differential equations.

LEARNING OBJECTIVES 1.1 Explain the way to use ordinary differential equations to model dynamic systems and principles of modelling. 1.2 Apply physical laws to generate differential equations for certain systems such as mechanical systems, liquid tank systems and electrical systems. 1.3 Explain Laplace transform, Laplace transform theorems and inverse Laplace transform. 1.4 Apply Laplace transform for solution of ordinary differential equations.

Page 7: Basic Control Theory-Dr. Hung Nguyen

1

1. Mathematical Modelling of Dynamic Systems In order to analyse and design a control system knowledge of its behaviour is required. This behaviour will be considered in a mathematical sense and a system description using mathematical terms is therefore required. The relationships between the variable quantities in s system will then form what is called a mathematical model of the system. These mathematical models are usually derived from applications of the laws of physics, e.g. Newton’s laws, laws of energy and momentum conservation. The way to find a mathematical model of a system is called modelling. In studying control systems a mathematical model of a dynamic system is defined as a set of equations that represent the dynamics of the system accurately or, at leat, fairy well. Note that mathematical model is not unique to a giving system. A system may be represented in many different ways and, therefore, may have many mathematical models, depending on one’s perspectives. The dynamics of many systems, whether they are mechanical, electrical, thermal, pneumatic, hydraulic, and so on, may be described in terms of ordinary differential equations (continuous time systems) or difference equations (discrete time systems). In the subject, only linear system modelling is considered. 2. Continuous Time Models - Ordinary Differential Equations A dynamic system is represented by an ordinary differential equation which is constructed based on the physical phenomenon related to the process in the system. Behaviour of characteristics of the system will be analysed based on solutions of the ordinary differential equation. In general, a first order differential equation is of the following form:

( )t,u,yfy =& (1) where u, y, and t are input, output and time, respectively. A second order differential equation is of the following general form:

( )t,u,y,yfy &&& = (2a) Higher order differential equations can be expressed in the following form:

( ) ( ) ( ) ( ) ( ) ( ) ( )( )t,u,u,,u,u,y,y,,y,yfy 11mm12n1nn KK −−−= (2b) In control engineering, the more convenient form of a general ODE, in which the left-handed side consists of output(s) and the right-handed side consists of input(s), can be expressed by

( ) ( ) ( ) ( ) ( ) ( ) ububububyayayaya 01

11m

1mm

m01

11n

1nn

n ++++=++++ −−

−− KK (2c)

Page 8: Basic Control Theory-Dr. Hung Nguyen

2

Solutions of many ordinary differential equations can be found by the classical mathematical methods. High memory and fast speed computers and high performance programming languages, however, allow solutions of difficult differential equations to be found by numerical methods. 3. General Modelling Principles Modelling is very important for analysis and diagnostics of desired control systems. Modelling is based on physical laws such as Newton’s laws, law of conservation of energy, law of conservation of mass etc. The following table summarizes general modelling principles (D.E Seborg et al., 2004)

Table 1 A systematic approach for developing dynamic models

Following examples illustrate modelling of linear systems. 3.1 Mechanical Systems Mechanical systems include a very wide range of everyday items which may frequently be reduced to a standard first or second order model. In combination with electrical components mechanical system give rise in turn to electromechanical systems, e.g. motors and generators. The following examples illustrate mechanical systems. Example 1 – Simple pendulum By laws of mechanics, the motion of a simple pendulum in Figure 1 can be expressed by the following second order differential equation.

1. State the modelling objectives and the end use of the model. Then determine the required levels of model detail and model accuracy.

2. Draw schematic diagram of the process and label all process variables. 3. List all of the assumptions involved in developing the model. Try to be parsimonious:

the model should be no more complicated than necessary to meet the modelling objectives.

4. Determine whether spatial variations of process variables are important. If so, a partial differential equation model will be required.

5. Write appropriate conservation equations (mass, component, energy, and so forth). 6. Introduce equilibrium relations and other algebraic equations (from thermodynamics,

transport phenomena, chemical kinetics, equipment geometry, etc.). 7. Perform a degrees of freedom analysis to ensure that the model equations can be solved. 8. Simplify the model. It is often possible to arrange the equations so that the output

variables appear on the left side and the input variables appear on the right side. This model form is convenient for computer simulation and subsequent analysis.

9. Classify inputs as disturbance variables or as manipulated variables.

Page 9: Basic Control Theory-Dr. Hung Nguyen

3

)t(Lx)t(sinMgLdt

)t(dI 2

2

=θ+θ (3)

where g is the gravity constant and I is the moment of inertia given by I = M(L2). The equation (3) is nonlinear. The linear differential equation for the simple pendulum can be constructed as follows. If the magnitude )t(θ of the angle )t(θ is small, the )t(sinθ sin is approximately equal to )t(θ , the above nonlinear equation can be approximated by the following linear differential equation.

)t(Lx)t(MgLdt

)t(dI 2

2

=θ+θ (4)

or

)t(xIL)t(

IMgL

dt)t(d

2

2

=θ+θ (5)

The representation (4) or (5) is called a small-signal model since it is a good approximation to the given system if )t(θ is small. It is possible to derive an explicit expression for the output )t(θ of the small-signal model. End of Example 1 Example 2 Mass-damper systems Figure 2 shows a simple mass-damper system. A force is applied directly to the mass which is separated from a fixed rigid surface by a light damper with damping coefficient λ . If the system is initially at rest in each case, derive the relationship between the movement of the mass and the independent variable which is the forcing input.

Figure 1 Simple pendulum

θ

x(t)

Mgsinθ (t) Mg

L

Page 10: Basic Control Theory-Dr. Hung Nguyen

4

Figure 2 Forced mass-damper system For the configuration in Figure 2, equating net applied forces to the acceleration force on the mass, or using the d’Alembert’s principle, gives the dynamic equation. For applied external force = P with damping force = dt/dxλ− the equation of motion is

2

2

dtxdm

dtdxP =λ− (6)

or

mP

dtdx

mdtxd2

2

+ (7)

End of Example 2 3.2 Liquid Level Storage Systems Example 3 Liquid Level Storage Model A typical liquid storage process is shown in Figure 3 where qi and qo are volumetric inlet and outlet flow rates, respectively.

Figure 3 Liquid level storage system

m P

x

h

qo

qi

V

R

Cross-sectional area A

Page 11: Basic Control Theory-Dr. Hung Nguyen

5

A mass balance yields:

( )oi qq

dtVd

ρ−ρ=ρ (8)

Assume that liquid density ρ is constant and the tank is cylindrical with cross-sectional area A. The volume of liquid in the tank can be expressed as V = Ah, where h is the liquid level (or head). The above equation becomes

oi qqdtdhA −= (9)

This equation appears to be a volume balance. However, in general, volume is not conserved for fluids. This result occurs in this example due to the constant density consumption. There are three important variations of the liquid storage process: 1. The inlet or outlet flow rates might be constant; for example, exit flow rate q might be kept constant by a constant-speed, fixed-volume (metering pump). An important consequence of this configuration is that the exit flow rate is then completely independent of liquid level over a wide range of conditions. Consequently, q = q , where q is the steady state value. For this situation, the tank operates essentially as a flow integrator. 2. The tank exit line may function simply as a resistance to flow from the tank (distributed along the entire line), or it may contain a valve that provides significant resistance to flow at a single point. In the simplest case, the flow may be assumed to be linearly related to the driving force, the liquid level, i.e.

h = qR (10) where R is the resistance of the line (m-2s). Rearranging (10) gives the following flow-head equation:

hR1q = (11)

Substituting this into equation (9) give the first-order differential equation:

hR1q

dtdhA i −= (12)

or

iqhR1

dtdhA =+ (13a)

This model shows the relationship between the level (h) and the inlet flow rate (qi).

Page 12: Basic Control Theory-Dr. Hung Nguyen

6

3. A more realistic expression for flow rate q can be obtained when a fixed valve has been placed in the exit line and turbulent flow can be assumed. The driving force for flow through the valve is the pressure drop P∆ .

aPPP −=∆ (13b) where P is the pressure at the bottom of the tank and Pa is the pressure at the end of the exit line. It is assumed that Pa is the ambient pressure. If the valve is considered to be an orifice, a mechanical every balance, or Bernoulli equation can be used to derive the following relation.

ρ−

= aPPkq (13c)

where k is a constant. The value of k depends on the particular valve and the valve setting (how much it is open). The pressure P at the bottom of the tank is related to liquid level h by a force balance,

hggPPc

+= (13d)

where the acceleration of gravity g and conversion factor gc are constants. Substituting (13c) and (13d) into (9) yield the dynamic model as follows.

hKqdtdhA i −= (13e)

where K = cg/gk . This model is nonlinear due to the square root term. The liquid storage process discussed above could be operated by controlling the liquid level in the tank or allowing the level to fluctuate without attempting to control it. For the later case (operation as a surge tank), it may be of interest to predict whether the tank would over flow or run dry for particular variations in the inlet and outlet flow rates. Thus, the dynamics of the process may be important even when automatic control is not utilized. End of Example 3

Page 13: Basic Control Theory-Dr. Hung Nguyen

7

3.3 Electrical Systems An electrical circuit or network is another type of physical system. It is comprised of resistors, capacitors and inductors, and usually one or more energy sources such as a battery or generator. Figure 4 Electrical systems: (a) passive circuit element relationships, (b) closed-loop electrical circuit Example 4 Close-loop electrical circuit The resistors, inductors and capacitors in a circuit are considered passive elements and their current-to-voltage relationships are shown in Figure 4(a). The active electrical elements can be considered to exist as voltage sources or current sources, where the voltage or current is considered to be constant throughout load changes. In analysing or determining the mathematical model of an electrical circuit, use is made of Kirchhoff’s first law which states that the algebraic sum of the voltages around a closed loop is zero. Consider the circuit shown in Figure 4(b):

0vvvv CLr =−++ (14) or

vidtC1

dtdiLiR =++ ∫ (15)

Depending upon the variable of interest, the above expression may be rearranged in a variety of forms. Use can be made of the relationship, current i = dq/dt, where q is the electrical charge accumulating on a capacitor, if it were required to remove the integral from the expression. End of Example 4

Rv

i rr = , Riv rr =

vr

R

vL

vC

L

C

dtdiLv L

L = , dtvL1i LL ∫=

dtiC1v CC ∫= ,

dtdvCi C

C =

vr

R vL

vC

L C

v

i

(b)

(a)

Page 14: Basic Control Theory-Dr. Hung Nguyen

8

4. Review of Laplace Transform 4.1 Laplace Transform Differential equations or mathematical models can be produced to represent all or part of a control system. The system response will vary according to the input received and, in order to determine this response, the differential equations must be solved. The form of the solution, since time is often the independent variable, will usually include two terms. These are the steady state and transient solutions. The steady state solution is obtained when all the initial conditions are zero. The transient solution represents the effects of the initial conditions. Both of these parts of the solution must be examined with respect to control systems. Classical mathematical techniques create complex solutions for linear differential equations beyond first-order. Use can be made of the Laplace transform technique to simplify the mathematics and also provide a solution in the two-term form that is required. Transforming, in this situation, involves changing differential equations into an algebraic equation in some new quality. A useful analogy can be made to the use of logarithms where numbers are converted to a different form so that multiplication, division, raising, to a power, etc., become addition, substraction or simple multiplication. At the end of these computations the number obtained is inverse transformed or antilogged to return to the original system of numbers. It should be noted that the Laplace transform can only be used with constant coefficient linear differential equations. However, only this type of equation will be considered (Taylor, D.A., 1987). The Laplace transform is one of the mathematical tools used for the solution of linear ordinary differential equation. In comparison with the classical method of solving linear differential equations, the Laplace transform method has the following two attractive features below.

Homogeneous equation and the particular integral of the solution are obtained in one operation.

The Laplace transform converts the differential equation into an algebraic equation in s. It is then possible to manipulate the algebraic equation by simple algebraic rules to obtain the solution in the s-domain. The final solution is obtained by taking the inverse Laplace transform.

As a result of Laplace transformation, a function of time, f(t), becomes a function of a new-domain, F(s). Upper case letters are always used for the transformed function. The quantity s is a complex and takes the form, s = ω+σ j where σ (sigma) and ω (omega) are real numbers and j = 1− . The operational symbol indicating a transform is L. The actual transformation involves multiplying the function, f(t), by the e-st and then integrating the product with respect to time in the interval t = 0 to t = ∞ , i.e.

∫∞

− ==0

st )s(Fdte)t(f)t(fL (16)

The function f(t) must be real and continuous over the time interval considered, otherwise the Laplace transform cannot be used.

Page 15: Basic Control Theory-Dr. Hung Nguyen

9

The inverse transform is indicated by the operator L-1 such that

)s(FL)t(f 1−= (17) It is usual to employ tables of transform pairs for f(t) and the corresponding F(s). A number of examples will, however, be provided to indicate the Laplace transform technique (Table 2).

Table 2 Some Laplace transform pairs Time function f(t) Laplace transform, F(s) Unit impulse, tδ 1

Unit step, 1 s1

Unit ramp, t 2s1

nth order ramp, tn 1ns!n+

Exponential decay, te α− α+s

1

Exponential rise, te1 α−− )s(s α+

α

Exponential × t, tte α− 2)s(1α+

Sin tω 22

2

s ω+ω

Cos tω ω+2s

s

Obtain the Laplace transforms of the functions

1) f(t) = A 3) f(t) = 1 3) f(t) = At 4) f(t) = tAe α−

assume f(t) = 0 for t < 0 in all cases. 1) f(t) = A, i.e. a step function of magnitude A.

|0

st0

st

e1

sAdtAe)t(fL

∞∞− ⋅−== ∫ (18)

Page 16: Basic Control Theory-Dr. Hung Nguyen

10

This step function is undefined at t = 0, but

0dtAe0

0

st =∫+

− (19)

Thus,

)s(FsA)t(fL == (20)

3) f(t) = 1, i.e. a unit step function.

)s(Fs1

e1

s1dte)t(fL |

0st

0

st ==⋅==∞∞

−∫ (21)

3) f(t) = At, i.e. a ramp function

)s(FsAdte

sAdt

sAe

seAtdtAte)t(fL 2

0

st

0

st

0

st

0

st | ===−

−−

== ∫∫∫∞

−∞ −∞−∞

− (22)

4) f(t) = tAe α− , i.e. an exponential decay.

)s(Fs

AdteAdteAe)t(fL0

t)s(

0

stt =α+

=== ∫∫∞

+α−∞

−α− (23)

4.2 Laplace Transform Theorems A number of theorems relating to Laplace transforms are used when solving differential equations. Linearity theorem. Where a function is multiplied by a constant, the Laplace transform of the product is the constant multiplied by the function transform. Hence

)s(AF)t(AfL = (24) where the sum of two functions is transformed it becomes the sum of the Laplace transforms of the individual functions. Hence

)s(F)s(F)t(f)t(fL 2121 ±=± (25) This is sometimes referred to as the principle of superposition. Differential theorem. The Laplace transform of the first derivative of a function f(t) is

Page 17: Basic Control Theory-Dr. Hung Nguyen

11

)0(f)s(sFdt

)t(dfL −=⎭⎬⎫

⎩⎨⎧ (26)

where f(0) is the value of the function f(t) evaluated at time t = 0. The Laplace transform of the second derivative of f(t) is

dt)0(df)0(f)s(Fs

dt)t(fdL 2

2

2

−−=⎭⎬⎫

⎩⎨⎧

(27)

where df(0)/dt is the value of the first derivative of the function at time t = 0. Integration theorem. The Laplace transform of the integral of a function f(t) is

dts

)0(fs

)s(Fdt)t(fL ∫∫ += (28)

where ∫ dt)0(f is the value of the integral of the function evaluated at time, t = 0. Initial value theorem. The value of the function f(t), as time t approaches zero, is given by

)s(sFlim)t(flims0t ∞→→

= (29)

Final value theorem. The value of the function f(t), as time t approaches infinity, is given by

)s(sFlim)t(flim0st →∞→

= (30)

Time shift theorem. The Laplace transform of a time delayed function )t(f τ− with respect to the function f(t) is,

)s(Fe)t(fL sτ−=τ− (31) where τ is the value of the time delay in seconds.

Table 3 Summary of theorems of the Laplace transforms Multiplication by a constant ( )[ ] ( )skFtkfL = Sum and difference ( ) ( )[ ] ( ) ( )sFsFtftfL 2121 ±=±

Page 18: Basic Control Theory-Dr. Hung Nguyen

12

Differentiation

( ) ( ) ( )0fssFdt

tdfL −=⎥⎦⎤

⎢⎣⎡

( ) ( ) ( ) ( )( ) ( )( ) ( )( )0f0sf...0fs0fssFsdt

tfdL 1n2n12n1nnn

n−−−− −−−−−=⎥

⎤⎢⎣

where ( ) ( ) ( )

0

0=

=t

k

kk

dttfdf

Integration ( ) ( )

ssFdfL

t

0=⎥⎦

⎤⎢⎣⎡ ττ∫

( ) ( )n1n21

t

0

t

0

t

0 ssFdt...dtdtdf...L 1 2 n =⎥⎦

⎤⎢⎣⎡ ττ −∫ ∫ ∫

Shift in time ( ) ( )[ ] ( )sFeTtuTtfL Tss

−=−−

Initial-value theorem ( ) ( )ssFlimtflims0t ∞→→

=

Final-value theorem ( ) ( )ssFlimtflim

0st →∞→= if ( )ssF does not have poles on or to the right

of the imaginary axis in the s -plane. Complex shifting ( )[ ] ( )α±=α sFtfeL tm

Real convolution ( ) ( ) ( ) ( ) ⎥⎦

⎤⎢⎣⎡ ττ−τ= ∫

t

0 2121 dtffLsFsF

( ) ( ) ( ) ( )[ ]tf*tfLdtffL 21

t

0 12 =⎥⎦⎤

⎢⎣⎡ ττ−τ= ∫

Where a control system is represented by an ordinary differential equation and time is the independent variable it can be solved using Laplace transforms. The first step is to transform the equation term by term, taking due account of any initial conditions. The transformed equations in s can then be solved for the variable of interest. The equation in s must then be inversely transformed to obtain the variable as function of time. Simultaneous equations can be handled in a similar way where the solving for variable takes place in terms of s and the values obtained are inversely transformed. The inverse transform L-1 is usually obtained by reference to a set of transform tables. Where this is not immediately possible the function in s must be rearranged into a suitable form. Control system response functions often appear as a ratio of polynomials, e.g.

011n

1nnn

011m

1mm

m

bsb...sbbsasa...sasa

)s(D)s(N)s(F

++++++++

== −−

−− (32)

where m and n are real positive integers and all a’s and b’s are real constants. The highest power of s in the denominator must be greater that that in the numerator, which is usually the case with practical control systems. The partial fraction technique is the most commonly used approach

Page 19: Basic Control Theory-Dr. Hung Nguyen

13

when solving these functions. The denominator polynomial must first be factorized, i.e. the roots must be known. Hence

)rs)...(rs)(rs()s(N)s(F

n21 +++= (33)

where –r1, –r3, …, –rn are the roots of D(s) which may exist as real or complex numbers. The factors of the denominator, e.g. (s + r1), should be recognizable as denominators in the table of transforms, see Table 3. Linear ordinary differential equations can be solved by the Laplace transform method with the aid of the theorems on Laplace transform given in Table 3. The procedure is outlined as follows: 1. Transform the differential equation to the s-domain by Laplace transform using the Laplace

transform table. 2. Manipulate the transformed algebraic equation and solve for the output variable. 3. Perform partial-fraction expansion to the transformed algebraic equation. 4. Obtain the inverse Laplace transform from the Laplace transform table. Following examples illustrate how to apply the Laplace transform method to the solution of linear ODEs. 4.3 Applications of Laplace Transform Example 5 Determine the inverse Laplace transform of the function F(s), where

)3s()1s(s2s)s(F 2 ++

+= (34)

Expanding F(s) into partial fractions:

)3s()1s(s2s

3sD

)1s(C

1sB

sA)s(F 22 ++

+=

++

++

++= (35)

where A, B, C and D are constants. The value of these constants must now be found by algebraic methods. The evaluation of residues or the “cover-up rule” will be used. If s is made equal to the value of any of the roots, i.e. 0, -1, or –3, then F(s) becomes infinite. However, if both sides of the equation are multiplied by a factor (s + r) where r is the root, then a function of s will be left which has a value at s = -r, or the value of F(s) if the factor (s + r) were covered up. Hence

3s3s

D)1s(

C1s

BsA)3s(

)3s()1s(s2s

22 +⎟⎟⎠

⎞⎜⎜⎝

⎛+

++

++

+=+++

+ (36)

Page 20: Basic Control Theory-Dr. Hung Nguyen

14

Let s = -3, then

121

121D

)13(323

2 =−−

==+−−+−

121D =∴ (37)

Now

s3s

D)1s(

C1s

BsA)s(

)3s()1s(s2s

22 ⎟⎟⎠

⎞⎜⎜⎝

⎛+

++

++

+=++

+ (38)

Let s = 0, then

32A = (39)

Also,

22

22 )1s(

3sD

)1s(C

1sB

sA)1s(

)3s()1s(s2s

+⎟⎟⎠

⎞⎜⎜⎝

⎛+

++

++

+=+++

+ (40)

Let s = -1, then

C21

)31(121

=−

=+−−+−

21C −

=∴ (41)

It is know necessary to substitute the values of A, C, and D and evaluate the equation at some convenient value, e.g. s = 1, in order to obtain B. Thus

3sD

)1s(C

1sB

sA

)3s()1s(s2s)s(F 22 +

++

++

+=++

+= (42)

Substitute for A, C, and D,

)3s(121

)1s(21

1sB

s32

)3s()1s(s2s

22 ++

++

++=

+++ (43)

Let s = 1,

481

81

2B

32

163

+−+=∴ 43B −

=∴ (44)

All the constants can now be substituted into the original partial fraction expression such that

Page 21: Basic Control Theory-Dr. Hung Nguyen

15

)3s(121

)1s(21

)1s(43

s32

)3s()1s(s2s)s(F 22 +

++

−+

−=++

+= (45)

Each of the denominators can be readily inverse transformed by reference to a table of transforms, see Table 3.

t3tt1 e121te

21e

43

32)t(f)s(FL −−−− +−−== (46)

The form of the solution can be seen to be made up of a steady state term, i.e. 3/3 and transient terms, i.e. the exponentials, which will all die away as the time increases towards infinity. End of Example 5 Example 6 Solving Ordinary Differential Equations by Laplace transform Give the differential equation

( ) ( ) ( ) ( )tu5ty2dt

tdy3dt

tyds2

2

=++ (47)

where ( )tus is the unit-step function. The initial conditions are ( ) 10y −= and

( ) ( ) ( ) 2dttdy0y0t

1 ===

. To solve the differential equation, the Laplace-transform on both sides of the above equation is first taken

( ) ( ) ( ) ( ) ( ) ( ) ( )s5sY20y3ssY30y0sysYs 12 =+−+−− (48)

Substituting the values of the initial conditions into this equation and solving for ( )sY , the following is obtained

( ) ( ) ( )( )2s1ss5ss

2s3ss5sssY

2

2

2

+++−−

=+++−−

= (49)

Equation (49) can be expanded by partial-fraction expansion to give

( ) ( )2s23

1s5

s25sY

++

+−= (50)

Taking the inverse Laplace transform of this equation, the complete solution of the given

Page 22: Basic Control Theory-Dr. Hung Nguyen

16

differential equation is obtained

( ) t2t e23e5

25ty −− +−= with 0t ≥ (51)

End of Example 6 Example 7 Complex-Conjugate Poles Consider the following ordinary differential equation

u5y5y2y =++ &&& (52) where y and u are output and input (unit impulse function, U(s) = 1). The initial conditions are y(0) = 0, )0(y& = 0. Taking the Laplace-transform on both sides of the above equation, we obtain

5)s(Y5)s(sY2)s(Ys2 =++ (53) or

5s2s5)s(Y 2 ++

= (54)

This function can be rewritten as

)j21s)(j21s(5)s(Y

++−+= (55)

Y(s) can be expanded as

j21sB

j21sA

)j21s)(j21s(5)s(Y

+++

−+=

++−+= (56)

The coefficients in (56) are determined as

A = ( )j4

5)s(Yj21sj21s=−+

+−= (57)

B = ( )j4

5)s(Yj21sj21s −=++

−−= (58)

Page 23: Basic Control Theory-Dr. Hung Nguyen

17

Substituting values of A, B and C into (56), we obtain

)s(Y = ( ) ( )j21s)j4(5

j21s)j4(5

++−+

−+

= ( ) ( )⎥⎦⎤

⎢⎣

⎡++

−−+ j21s

1j21s

1j4

5 (59)

Taking the inverse Laplace on both sides of equation (59) gives ( atsinjatcose jat += ):

)t(y = ( )jt2jt2t eeej4

5 −− − = ( ) ( ) ( )( )[ ]t2sinjt2cost2sinjt2cosej4

5 t −+−−+−

= ( ) t2sine45t2sinje

j45 tt −− = (t ≥ 0) (60)

End of Example 7 Example 8 A mechanical shown in the following figure is at rest before excitation force Psinωt is given, derive the complete solution y(t) (using Laplace transform). The displacement y is measured from the equilibrium position. Assume that the system is under-damped. Use values of P = 20N,

Hz10f = ( f2π=ω ), m = 200kg, λ=100Ns/m, k = 600N/m, y(0) = 0 and )0(y& = 0.

Figure 5 Spring-mass-damper system Solution The equation of motion for the system is tsinPkyybym ω=++ &&& (61) Taking Laplace transforms of two sides with initial conditions y(0) = 0 and )0(y& = 0 yields

m

Psinωt

y b

k

Page 24: Basic Control Theory-Dr. Hung Nguyen

18

( ) 222

sP)s(Ykbsms

ω+ω

=++ (62)

or

( ) ⎟⎠⎞

⎜⎝⎛

++ω+ω

=kbsms

1s

P)s(Y 222 (63)

Since the system is underdamped, Y(s) can be written as follows.

2nn

222 s2s1

s1

mP)s(Y

ω+ξω+ω+ω

= (64)

where 10 <ξ< , m/kn =ω , ( )mk2/b=ξ . Y(s) can be expanded as

⎟⎟⎠

⎞⎜⎜⎝

⎛ω+ξω+

+−+

ω++ω

= 2nn

222 s2sdas

scas

mP)s(Y (65)

By some calculations, it can be found that

( ) 222n

222n

n

42a

ωξω+ω−ω

ξω−= ,

( ) 222n

222n

22n

4c

ωξω+ω−ω

ω−ω= and ( )

( ) 222n

222n

22n

2n

2

44d

ωξω+ω−ω

ω−ω−ωξ= (66)

Hence

( )

( )

( ) ( )⎥⎥⎥⎥

⎢⎢⎢⎢

ω+ξω+ω−ω−ωξ+ξω+ξω

+

ω+ω−ω+ξω−

ωξω+ω−ω

ω=

2nn

2

22n

2n

2nn

22

22nn

222n

222n

s2s2s2

ss2

41

mP)s(Y (67)

Taking inverse Laplace transform yields

( )[ ] ( )

⎥⎥⎥⎥⎥⎥⎥

⎢⎢⎢⎢⎢⎢⎢

ξ−ωξ−ω

ω−ω−ξω+

ξ−ωξω+

ωωω−ω

+ωξω−

ωξω+ω−ω

ω=

ξω−

ξω−

t1sine1

2

t1cose2

tsintcos2

4mP)t(y

2n

t

2n

22n

22n

2n

tn

22n

n

222n

222n

n

n (68)

Notes: 1. Substituting the given values into Equation (68) one can draw graphics for y(t) by an M-file. 2. One can solve Equation (61) by one of numerical integration method or a Simulink model.

Page 25: Basic Control Theory-Dr. Hung Nguyen

19

End of Example 8 Example 9 Recalling the equation for mass-damper in Example 2

mP

dtdy

mdtyd2

2

+ (69)

The constant force P = 20N, m = 200kg, λ = 100Ns/m. Applying Laplace transform find solution for equation (69) with initial conditions y(0) = 0 and 0)0(y =& . Solution Taking Laplace transform of two sides with zero initial conditions yields

( )s1c)s(Xs 22 =ω+ (70)

where c = P/m and m/λ=ω . Equation (70) can be rewritten as

( )22ss1c)s(Xω+

= (71)

Taking inverse Laplace transform yields ( )[ ]tcos1c)t(x ω−= (72) End of Example 9 Example 10 Recalling the equation for the liquid level storage system in Example 3

iqhR1

dtdhA =+ (73)

It is assumed that the inlet flow rate qi is constant and the tank starts off empty. Applying Laplace transform find the solution for the liquid level (qi = 0.01m3/s, A = 3m2 and R = 10m2s). Solution Equation (73) can be rewritten as follows.

iRqhdtdhAR =+ (74)

Taking Laplace transforms of two sides with zero initial conditions yields

( )s1R)s(H1ARs =+ (75)

Page 26: Basic Control Theory-Dr. Hung Nguyen

20

)s(H = ( )1ARssR+

= ⎟⎠⎞

⎜⎝⎛ +

AR1ss

A1

(76)

Taking inverse Laplace transform yields

=)t(h ⎟⎟⎠

⎞⎜⎜⎝

⎛−

− tAR1

e1A1 (77)

End of Example 10 Example 11 Let’s consider the LRC circuit shown in Figure 6. The circuit consists of an inductance L (henry), a resistance R (ohm) and a capacitance C (farad).

Figure 6 LRC circuit

Generate a differential equation to represent the relationship between the output voltage eo across the capacitor and the supply voltage ei. It is assumed that the initial conditions are zero and the system is under-damped, i.e. the damping ratio ξ satisfies 10 <ξ< . Applying Laplace transform find the solution. Solution Applying the Kirchhoff’s voltage law to the system, the following equations are obtained,

ieidtC1Ri

dtdiL =++ ∫ (78)

0eidtC1

=∫ (79)

Equations (78) and (79) can be rearranged into

ioo

2o

2

eedt

deRCdt

edLC =++ (80)

ei eoi

R

C

L

Page 27: Basic Control Theory-Dr. Hung Nguyen

21

Taking Laplace transforms of two sides with zero initial condition and ei is a step function, yields

( )s

E)s(E1RCsLCs io

2 =++ (81)

or

( )1RCsLCss1E)s(E 2io ++

= (82)

Equation (82) can be rewritten as

( )2nn

2i

o s2ss1

LCE)s(E

ω+ξω+= (83)

where )LC/(1n =ω and L/CR5.0=ξ . Equation (83) can be rearranged as

( )2nn

2

2n

2n

io s2ssLC

E)s(Eω+ξω+

ωω

= (84)

Taking inverse Laplace transform of (84) yields

( )⎥⎥⎦

⎢⎢⎣

⎡θ+ξ−ω

ξ−−

ω= ξω− t1sine

111

LCE)t(e 2

nt

22n

io

n (85)

where ξ=θ −1cos (as assumed that the system is underdamped, i.e. 10 <ξ< ). End of Example 11 Example 12 Ship steering dynamic model The ship steering dynamic model representing ship motions in horizontal plane can be expressed by the Nomoto’s first-order model as follows.

δ=+ KrrT& (86) r=ψ& (87) where r is yaw rate (rad/sec), ψ is yaw angle (rad), δ is rudder angle (rad), and T and K are constants known as ship manoeuvrability indices. Using Laplace transform, find the solution (yaw angle) if T = 7.5seconds, and K = 0.11 and initial conditions ψ (0) = 0, r(0) = 0.

Page 28: Basic Control Theory-Dr. Hung Nguyen

22

Solution Equations (86) and (87) can be rewritten as δ=ψ+ψ KT &&& (88)

Figure 7 Ship steering dynamics

Taking Laplace transforms of two sides with zero initial conditions yields and δ is constant:

( )s

K)s(1Tss δ=ψ+ (89)

or

( )1TssK)s( 2 +δ

=ψ (90)

Equation (90) can be rewritten as

⎟⎠⎞

⎜⎝⎛ +

δ=ψ

T1ss

1T

K)s(2

(91)

Taking inverse Laplace transform of (91) yields

⎟⎟⎠

⎞⎜⎜⎝

⎛+−

⎟⎠⎞

⎜⎝⎛

δ=ψ

− tT1

2 e1tT1

T11

TK)t( = ⎟⎟

⎞⎜⎜⎝

⎛+−δ=ψ

− tT1

e1tT1TK)t( (92)

End of Example 12

r

δ

ψ

Y

X

Page 29: Basic Control Theory-Dr. Hung Nguyen

23

4.4 Partial Fraction Expansion with MATLAB MATLAB has a command to obtain the partial-expansion of N(s)/D(s). Consider the transfer function (see in Module 8)

dennum

)s(D)s(N= =

011n

1nn

n

011m

1mm

m

asasasabsbsbsb

++++++++

−−

−−

K

K (93)

Where some of ai and bj may be zero, except an and bm. In MATLAB row vectors num and den specify the coefficients of the numerator and denominator of the transfer function. That is,

[ ]01mm bbbnum L−= [ ]01nn abanum L−=

The command

[r, p, k] = residue(num,den) finds the residues, poles and direct terms of a partial fraction expansion of the ratio of two polynomials N(s) and D(s). The partial fraction expansion of N(s)/D(s) is given by

)s(D)s(N = ( )

( )( )( )

( )( ) )s(knps

nr2ps

2r1ps

1r+

−++

−+

−L (94)

where k(s) is a direct term. Example 13 Given the following transfer function:

6s11s6s6s3s5s2

)s(D)S(N

23

23

++++++

= (95)

Find its partial fraction expansion using MATLAB. Solution The commands: num = [2 5 3 6]; den = [1 6 11 6]; [r,p,k] = residue(num,den)

Page 30: Basic Control Theory-Dr. Hung Nguyen

24

give the following result is obtained. The partial fraction expansion of N(s)/D(s) is as follows.

21s

32s

43s

66s11s6s6s3s5s2

)s(D)S(N

23

23

++

++−

++−

=++++++

= (96)

It should be noted that the commands r = [-6 -4 3]; p = [-3 -2 -1]; k = 2; [num, den] = residue(r,p,k) where r, p, k are as given in the previous MATLAB output, converts the partial fraction expansion back to the polynomial ratio N(s)/D(s) as follows: End of Example 13 Example 14 Expand the following polynomial fraction into partial fraction with MATLAB.

( )32

1s3s2s

)s(D)S(N

+++

= = 1s3s3s

3s2s23

2

+++++ (97)

r = -6.0000 -4.0000 3.0000 p = -3.0000 -2.0000 -1.0000 k = 2

num = 2.0000 5.0000 3.0000 6.0000 den = 1.0000 6.0000 11.0000 6.0000

Page 31: Basic Control Theory-Dr. Hung Nguyen

25

Solution M-file: num = [1 2 3]; den = [1 3 3 1]; [r, p, k] = residue(num, den) The result is as follows: Partial fraction is

( ) ( )32 1s

21s

01s

1)s(D)s(N

++

++

+= (98)

End of Example 14

r = 1.0000 -0.0000 2.0000 p = -1.0000 -1.0000 -1.0000 k = []

Page 32: Basic Control Theory-Dr. Hung Nguyen

26

SUMMARY OF MODULE 1

Module 1 is summarized as follows.

• Modelling of dynamic systems: ordinary differential equation, general principles of modelling, modelling of mechanic systems, liquid level storage system and electrical systems

• Laplace transforms: definition, Laplace transforms and inverse Laplace transform • Application of Laplace transforms to solve ordinary differential equations.

Exercises 1. Cart on surface: We have a cart as shown in the following figure. Assuming that the rotational inertia of the wheels is negligible and that there is friction retarding the motion of the cart, friction is proportional to the cart’s speed. Write a differential equation representing the relationship between the force (u) and the motion (y) of the cart.

Figure 8 Cart on surface 2. The following figure shows two alternative applications of force or simple mass-damper system. In the first case force is applied directly to the mass which is separated from a fixed rigid surface by a light damper with damping coefficient λ . In the second case the restraining surface is absent and the force P is now applied to this end of the damper system. In this latter case the force is not now the independent variable but the velocity of movement of this part of the damper. If the system is initially at rest in each case, derive the relationship between the movement of the mass and the independent variable which is the forcing input.

Figure 9 Forced mass-damper system

m F

y x

Mass M

Force u M u

y

Friction force yb&

Page 33: Basic Control Theory-Dr. Hung Nguyen

27

3. Spring-damper system: A light spring-damper coupling may be composed of parallel or serially connected components. Although one end of the system may be fixed or connected to an inertial mass, the modelling and movement may be initially investigated when there is movement at each end of the system and no mass in the system. (One of the velocity terms may be set to zero by fixing that end.) Derive a relationship in each case in Figure 3 between the difference in velocity between the endpoints of the system and forces applied to the system.

Figure 10 Forced spring-damper systems 4. Mass-spring-damper system: Many mechanical systems can be represented as a combination of one or more mass, spring and damper configurations. Such a representation may be used for suspension systems, machine tool vibrations, linkage of vehicles, etc. One such arrangement is shown in Figure 4. Relate the movement of the mass to the applied force P, forming an overall transfer function between this and the mass displacement. How does this system respond to a step force of 20N? (Use values of m = 200kg, λ=100Ns/m, k = 600N/m).

Figure 11 Mass-spring-damper system 5. Newton’s Cooling Law: A hot block with temperature Tm is put in a room with a constant ambient temperature Ta. Newton’s law of cooling states that the rate of heat loss from the block is

P*

x

P*PP

z

y y

x

m P

xk

λ

Page 34: Basic Control Theory-Dr. Hung Nguyen

28

proportional to the temperature difference. Write down a differential equation to represent this model (k = proportional constant, Tm = 50oC, Ta = 0oC). What is the temperature at time of 1/k?

Figure 12 Newton’s cooling law 6. Thermal system: Consider the system shown in Figure 11. It is assumed that the tank is insulated to eliminate heat loss to the surrounding air. It is also assumed that there is heat storage in the insulation and the liquid in the tank is perfectly mixed so that it is at a uniform temperature. Thus, a single temperature is used to describe the temperature of the liquid in the tank and the outflowing liquid.

Figure 13 Thermal system 7. Pneumatic systems have been developed into low pressure pneumatic controllers for industrial control systems and they have been used extensively in industrial processes.

Figure 14 Pneumatic systems

Tm

Hot liquid

Cold liquid

Mixer Heater

CR

Gas

Supply pressure (P - pi)

Pressure in tank (P - po)

Capacity

Page 35: Basic Control Theory-Dr. Hung Nguyen

29

8. Hydraulic systems have a complexity of model which depends on the degree to which properties such as fluid compressibility are taken into account. However, if these terms are omitted then these systems give rise to model equations of standard form. This is also true of pneumatic systems, although in this case the properties of the fluid will have more marked effect on both the system behaviour and on the results predicted by an oversimplified model. Such systems may also be subject to minor leakage flows, e.g. within the actuators, which lead to additional model terms which it is often hard to quantity.

Figure 15 Hydraulic press schematic

My

x

F λ

k

To sump Supply To sump

Page 36: Basic Control Theory-Dr. Hung Nguyen

30

Appendix - Numerical Integration Methods Given the following differential equation

)t,u,y(fy =&

Euler’s methods for the solution of this ordinary differential equation are summarized as follows: Simple Euler’s Method A simple but important numerical integration scheme is Euler’s method, where the numerical solution is computed from:

)t,y(hfyy nnn1n +=+ Improved Euler’s Method The improved Euler method includes an evaluation )t,y(hfyy nnn1n +=+ according to Euler’s method. Then an approximation of ( )1n1n t,yf ++ at the time 1nt + is computed using 1ny + . This value is used to improve the accuracy of the numerical solution yn+1. The method is given by

( )nn1 t,yfk = ( )ht,hkyfk n1n2 ++=

( )21n1n kk2hyy ++=+

Modified Euler’s Method The modified Euler method, also called the explicit midpoint rule, is derived in a similar way as the improved Euler method. In the modified Euler method an approximation of f at (y( 2

ht + ),

2ht + )is used to find the solution. This approximation is computed using Euler’s method to find

an estimate of y( 2ht + ). The method is illustrated in Figure 3.4 and is given by

( )nn1 t,yfk =

⎟⎠⎞

⎜⎝⎛ ++=

2ht,k

2hyfk n1n2

2n1n hkyy +=+ Second Order Runge-Kutta Method The second-order Runge-Kutta method is summarized as follows.

)t,y(hfk nn1 = ( )ht,kyhfk n1n2 ++=

Page 37: Basic Control Theory-Dr. Hung Nguyen

31

( )21n1n kk21yy ++=+

Fourth Order Runge-Kutta Method The fourth-order Runge-Kutta method is summarized as follows.

)t,y(hfk nn1 = ( )ht,kyhfk 2

1n12

1n2 ++=

( )ht,kyhfk 21

n221

n3 ++= ( )ht,kyhfk n3n4 ++=

( )4321n1n kk2k2k61yy ++++=+

Sample program in MATLAB Problem: Let’s consider a tank flow model

iqh1.0dtdh3 =+ (A.1)

If the input flow qi is maintained constant at a constant flow rate of 0.01m3/s into the tank, which starts empty, plot the change in level of the liquid h in the tank with time. Sample M-file: % Filename: TankFlowModel.m % This M-file illustrates Euler's Methods % % Ordinary Differential Equation % 3*hdot + 0.1*h = qi % where h = level, qi = inlet flow rate (0.01m^3/s) % Initial conditions: h(0) = 0 % % Created by Hung Nguyen in June 2005 % Last modified in June 2005 % Copyright (C) 2005 Hung Nguyen % Email: [email protected] % % Set initial conditions: h1 = 0; % initial level index = 0; % index for counting step = 0.1; % sampling time N = 200; % final value qi = 0.01; % inlet flow rate 0.01m^3/s % Euler's Simple Method:

Page 38: Basic Control Theory-Dr. Hung Nguyen

32

for ii = 0.0:step:N index = index + 1; h1_dot = (qi - 0.1*h1)/3; h1 = h1 + step*h1_dot; data(index,1) = ii; % time (sec) data(index,2) = qi; % inlet flow rate (m^3/s) data(index,3) = h1; % level (m) end % Plot plot(data(:,1),data(:,3));grid xlabel('Time (second)');ylabel('Level (m)') % End of program Result:

0 20 40 60 80 100 120 140 160 180 2000

0.01

0.02

0.03

0.04

0.05

0.06

0.07

0.08

0.09

0.1

Time (second)

Leve

l (m

)

Figure A.1 Step response

Page 39: Basic Control Theory-Dr. Hung Nguyen

BASIC CONTROL THEORY

Module 3 Stability of Linear Control Systems and PID Control

SEPTEMBER 2005

Prepared by Dr. Hung Nguyen

Page 40: Basic Control Theory-Dr. Hung Nguyen

i

TABLE OF CONTENTS Table of Contents..............................................................................................................................i List of Figures..................................................................................................................................ii List of Tables ................................................................................................................................. iii References ......................................................................................................................................iv Objectives ........................................................................................................................................v 1. Stability of Linear Control Systems ............................................................................................1

1.1 Definitions of Stability..........................................................................................................1 1.2 Concepts of Stability.............................................................................................................1

Example 1...............................................................................................................................4 2. PID Control..................................................................................................................................6

2.1 What Is PID Control?............................................................................................................6 2.2 Control Actions .....................................................................................................................6

2.2.1 Proportional (P) Control Action ....................................................................................6 2.2.2 Integral (I) Control Action ............................................................................................7 2.2.3 Derivative (D) Control Action ......................................................................................8 2.2.4 Proportional Integral (PI) Control Action .....................................................................8 2.2.5 Proportional Derivative (PD) Control Action ...............................................................9 2.2.6 Proportional Integral Derivative PID Control Action ...................................................9

2.3 Types of PID Controller......................................................................................................10 2.3.1 Pneumatic PID Controllers .........................................................................................10 2.3.2 Hydraulic PID Controllers ..........................................................................................19 2.3.3 Electronic PID Controllers..........................................................................................25

2.4 Simulation of PID Control System (PID Autopilot) ...........................................................30 2.4.1 Ship Manoeuvring Model ...........................................................................................30 2.4.2 Simulation of PID Autopilot (Nomoto’s First-Order Model) .....................................31

2.5 PID Controllers in Market ..................................................................................................37 2.5.1 DTZ4 Controller of Instronics Inc. .............................................................................37 2.5.2 More Information on the Internet................................................................................38

2.6 Examples.............................................................................................................................38 Example 2.............................................................................................................................38 Example 3.............................................................................................................................40

Summary of Module 3...................................................................................................................42 Exercises........................................................................................................................................43

Page 41: Basic Control Theory-Dr. Hung Nguyen

ii

LIST OF FIGURES Figure 1 ...........................................................................................................................................5 Figure 2 ...........................................................................................................................................6 Figure 3 ...........................................................................................................................................7 Figure 4 ...........................................................................................................................................7 Figure 5 ...........................................................................................................................................8 Figure 6 ...........................................................................................................................................9 Figure 7 .........................................................................................................................................10 Figure 8 .........................................................................................................................................11 Figure 9 .........................................................................................................................................13 Figure 10........................................................................................................................................14 Figure 11........................................................................................................................................15 Figure 12........................................................................................................................................15 Figure 13........................................................................................................................................16 Figure 14........................................................................................................................................16 Figure 15........................................................................................................................................17 Figure 16........................................................................................................................................18 Figure 17........................................................................................................................................18 Figure 18........................................................................................................................................20 Figure 19........................................................................................................................................21 Figure 20........................................................................................................................................22 Figure 21........................................................................................................................................23 Figure 22........................................................................................................................................24 Figure 23........................................................................................................................................24 Figure 24........................................................................................................................................25 Figure 25........................................................................................................................................26 Figure 26........................................................................................................................................26 Figure 27........................................................................................................................................27 Figure 28........................................................................................................................................27 Figure 29........................................................................................................................................28 Figure 30........................................................................................................................................29 Figure 31........................................................................................................................................30 Figure 32........................................................................................................................................35 Figure 33........................................................................................................................................35 Figure 34........................................................................................................................................36 Figure 35........................................................................................................................................36 Figure 36........................................................................................................................................36 Figure 37........................................................................................................................................37 Figure 38........................................................................................................................................38 Figure 39........................................................................................................................................40 Figure 40........................................................................................................................................41

Page 42: Basic Control Theory-Dr. Hung Nguyen

iii

LIST OF TABLES Table 1 ...........................................................................................................................................3

Page 43: Basic Control Theory-Dr. Hung Nguyen

iv

REFERENCES Kamen, Edward and Bonnie S. Heck (1997), Fundamentals of Signals and Systems Using

MATLAB ®, Englewood Cliffs, New Jersey, USA. Kou, Benjamin C. (1995), Automatic Control Systems, Prentice-Hall International Inc., Upper

Saddle River, New Jersey, USA. Ogata, Katsuhiko (1997), Modern Control Engineering, 3rd Edition, Prentice-Hall International

Inc., Upper Saddle River, New Jersey, USA. Richards, R.J. (1993), Solving in Control Problems, Longman Group UK Ltd, Harlow, Essex,

UK. Seborg, Dale E., Thomas F. Edgar and Duncan A. Mellichamp (2004), Process Dynamics and

Control, 2nd Edition, John Wiley & Sons, Inc., Hoboken, New Jersey, USA. Taylor, D.A. (1987), Marine Control Practice, Anchor-Brendon Ltd, Tiptree, Essex, UK. Web Dictionary of Cybernetics and Systems: http://pespmc1.vub.ac.be/ASC/indexASC.html

(accessed on 22nd August 2005).

Page 44: Basic Control Theory-Dr. Hung Nguyen

v

AIMS

1.0 Explain concept of stability of linear control systems and principles of PID control.

LEARNING OBJECTIVES 1.1 Explain concept of stability of linear control systems. 1.2 Explain the control actions: P, I, D, PI, PD and PID controls. 1.3 Describe applications of PID control principles in pneumatic, hydraulic and electronic

controllers. 1.4 Apply the PID control principles in design of simple PID controllers.

Page 45: Basic Control Theory-Dr. Hung Nguyen

1

1. Stability of Linear Control Systems 1.1 Definitions of Stability In the Web Dictionary of Cybernetics and Systems (by F. Heylighen) there are some definitions for the term ‘stability’ of a control system as follows: 1. Stability: The tendency of the variables or components of a system to remain within defined and recognizable limits despite the impact of disturbances. (Young, p. 109) 2. Expanded or global stability: The ability of a system to persist and to remain qualitatively unchanged in response either to a disturbance or to fluctuations of the system caused by a disturbance. This idea of stability combines the concepts of traditional stability and Holling's new concept of resilience. (Holling) 3. Stability: The capacity of an object or system to return to equilibrium after having been displaced. Note with two possible kinds of equilibrium one may have a static (linear) stability of rest or a dynamic (non-linear) stability of an endlessly repeated motion. (Iberall) 4. Stability: System is stable if, when perturbed, it returns to its original state. The more quickly it returns, the more stable it is. 1.2 Concepts of Stability Stability is probably the most important consideration when designing control systems. One of the most important characteristics of a control system is that the output must follow the desired signal as exactly as possible. The stability of a system is determined by the form of the response to any input or disturbance. Absolute stability refers to whether a system is stable or unstable. In a stable system the response to an input will arrive at and maintain some useful value. In an unstable system the output will not settle at the desired value and may oscillate or increase towards some high value or a physical limitation. For example, a system is stable if the response to an impulse input approaches zero as time approaches infinity. In the context of linear control systems, stability would be intuitively reasonable to define a linear system to be stable if its output is bound for every bounded input, namely bounded input bounded output (BIBO) stability. The system is said BIBO stable. This definition states that stability is dependent on the system itself. The properties or dynamic behaviours of a system are characterised by its transfer function G(s). The input to a system will not affect or determine its stability. The components of the system provide its characteristics, and hence determine stability. The solution to the differential equation describing a system is made up of two terms, a transient response and a steady-state response. For stability the transient response terms must all die away as time progresses. The coefficients of the exponential terms must therefore be negative real numbers or complex numbers with negative real parts. The stability or instability of a closed-loop control system is determined by the poles of its transfer function. The system is stable if the function response y(t) remains bounded as the time (t) tends to infinity. For most control engineering purposes an even stronger concept of stability if required:

Page 46: Basic Control Theory-Dr. Hung Nguyen

2

Asymptotically stable: A system is said to be asymptotically stable if its response decays to zero as t tends to infinity. Marginally stable: as mentioned in previous section an undamped second order system has its response that is indefinitely oscillatory. This is an example of a system that is stable but not asymptotically stable. In fact, this system is known as marginally stable. Otherwise, the system is said unstable. For analysis and design purposes stability can be classified in absolute stability and relative stability. As stated above, absolute stability refers to the condition of whether the system is stable or unstable; it is a yes or no answer. Once the system is found to be stable, it is of interest to determine how stable it is, and this degree of stability is a measure of relative stability. The stability of a system depends much on the poles of its transfer function. Let’s consider the following transfer function G(s) of a system

( )n1n

1n1

nm1m

1m1

m

asasasbsbsbsK

)s(D)s(N)s(G

++++++++==

−−

−−

(1)

and the system response is determined, except for the residues, by the poles of G(s), that is by the solutions of the following characteristic equation of the system 0asasas n1n

1n1

n =++++ −−

(2) Equation (2) can be written as

0)ps)...(ps)(ps( n21 =−−− (3) where p1, p2,…, pn. are roots of characteristic equation (2), or the finite poles of transfer function (1). The system is asymptotically stable if and only if the roots of the characteristic equation are negative (for the real poles) or have negative real parts (for the complex poles). The case of purely imaginary roots, like complex roots, all purely imaginary roots occur in conjugate pairs. Let’s call the multiplicity of the roots of (3) is r. If the multiplicity r is equal to 1 (r = 1), the corresponding response is oscillatory with a constant amplitude. On the other hand, if the multiplicity of the imaginary roots r > 1 the corresponding response terms are oscillatory but the oscillations are of increasing amplitude. Hence, for r = 1 the system is marginally stable, but for r > 1 the system is unstable. Similarly, if there is a root of multiplicity r > 1 at the origin, then the system is unstable. Table 1 summarises the relationship between the roots of the characteristic equation (or the poles of the transfer function) and the stability. From Table 1, it can be seen that:

• For bounded input bounded output stability, the roots of the characteristic equation must all lie on the left half s plane.

• A system that is BIBO stable is simply called stable, otherwise it is unstable.

Page 47: Basic Control Theory-Dr. Hung Nguyen

3

Type of root S-plane graph s = ω+σ j Response graph Remarks

Real and negative Asymptotically stable

Real and positive Unstable

Zero Marginally stable

Conjugate complex with negative real part

Asymptotically stable

Conjugate imaginary (multiplicity r = 1)

Marginally stable

Conjugate imaginary (multiplicity r = 2)

Unstable

Conjugate with positive real part

Unstable

Roots of multiplicity r = 2 at the origin

Unstable

ω

σ

y

t

ω

σ

y

t

ω

σ

y

t

ω

σ

y

t

ω

σ

y

t

ω

σ

y

t

ω

σ

y

t

ω

σ

y

t

Table 1 Relationship between poles (roots) and stability

Page 48: Basic Control Theory-Dr. Hung Nguyen

4

There are several methods to determine the stability of a control system. They are outlined as follows. Routh-Hurwitz stability criterion: this is an algebraic method that provides information on

the absolute stability of a linear time-invariant system that has a characteristic equation with constant coefficients. The criterion tests whether any of the roots of C.E. lie in the right-half s-plane. The number of roots that lie on the jω-axis and in the right-half plane is also indicated.

Nyquist’s stability criterion: This criterion is a semi-graphical method that gives

information on the difference between the number of poles and zeros of the C.L.T.F that are in the right-half s-plane by observing the behaviour of the Nyquist plot of the loop transfer function.

Bode diagram: This diagram is a plot of the magnitude (gain) of the open-loop transfer

function in decibels (dB) and the phase of the open-loop transfer function in degrees, all versus frequency ω. The stability of the C.L. system can be determined by observing the behaviour of these plots.

Root-locus technique: This method is the investigation of the trajectories of the roots of the

characteristic equation – simply root loci – when a certain system parameter varies. It is applicable for linear control systems.

Lyapunov’s stability criterion: This is the most general method for system stability analysis.

It is applicable to both linear and non-linear system of any order. For linear systems it provides both the necessary and sufficient conditions, whereas for nonlinear systems it provides only the sufficient conditions for asymptotic stability. The method depends on defining a Lyapunov’s function, closely related to the system energy function.

Example 1 Let’s consider the following systems:

1. G(s) = 2s1s

++

pole at s = -2 (real and negative)

2. G(s) = 9s5.1s

92 ++

poles at s = -0.7500 ± 2.9047j (conjugate complex roots with negative real parts)

3. G(s) = 1s

s2 +

poles at s = j± (conjugate imaginary, multiplicity r = 2)

4. G(s) = 1s5.0s

12 +−

poles at 0.2500 ± 2.9896j (conjugate complex roots with positive real parts) Figure 1 shows step responses of these systems, Figure 1a and Figure 1b: asymptotically stable systems, Figure 1c: marginally stable system and Figure 1d: unstable system.

Page 49: Basic Control Theory-Dr. Hung Nguyen

5

0 2 4 6 8 10 12 14 16 18 200.5

0.6

0.7

0.8

0.9

1

0 2 4 6 8 10 12 14 16 18 200

0.5

1

1.5

0 2 4 6 8 10 12 14 16 18 20-1

-0.5

0

0.5

1

0 2 4 6 8 10 12 14 16 18 20-150

-100

-50

0

50

100

Figure 1 Illustration of stable and unstable systems

2s1s)s(G

++=

9s5.1s

9)s(G 2 ++=

1s

s)s(G 2 +=

9s5.1s

9)s(G 2 +−=

a) Asymptotically stable system

b) Asymptotically stable system

c) Marginally stable system

d) Unstable system

Page 50: Basic Control Theory-Dr. Hung Nguyen

6

2. PID Control 2.1 What Is PID Control? PID stands for Proportional, Integral and Derivative. This is also called three terms control and Gain, Reset and Rate. The PID controller is probably the simplest control system, but it has still been used because of its efficiency. In 1922, N. Minorsky introduced his three-term controller for the steering of ships, and his controller is regarded as the first PID controller. He considered non-linear effects in the closed-loop control. The PID control has been developed further in different forms such as non-linear PID control, time-varying gain PID control and fuzzy PID control. The PID control has three terms: P, I and D. We will investigate how each term has effects on the system response. 2.2 Control Actions Let’s consider a PID control system shown in Figure 2, in which u(t) is the reference input (or set-point), y(t) is the output (or process variable), e(t) is the actuating error signal and u(t) is the control signal. We examine how each term of the PID controller has effects on the whole system response y(t).

Figure 2 Simple PID control system 2.2.1 Proportional (P) Control Action For a controller with proportional control action, the relationship between the output of the controller u(t) (control signal) and the actuating error signal e(t) is

)t(eK)t(u P= (4) or, in Laplace transformed quantities,

PK)s(E)s(U = (5)

PID

Sensor

+ _

Reference input u(t) y(t)

PID controllerError detector

Actuator Plant (Set-point)

e(t)

Output or process variable (PV)

u(t)

Page 51: Basic Control Theory-Dr. Hung Nguyen

7

where Kp is termed the proportional gain.

Figure 3 Block diagram of a proportional controller Whatever the actual mechanism may be and whatever the form of the operating power, the proportional controller is essentially an amplifier with an adjustable gain. A block diagram of such a controller is shown in Figure 3. 2.2.2 Integral (I) Control Action In a controller with integral control action, the value of the controller output u(t) is changed at a rate proportional to the actuating error signal e(t). That is,

)t(eKdt

)t(duI= (6)

thus

=t

0I dt)t(eK)t(u (7)

where KI is an adjustable constant (KI = KP/TI, TI is integral time). The transfer function of the integral controller is

sK

)s(E)s(U I= (8)

If the value of e(t) is doubled, then the value of u(t) varies twice as fast. For zero actuating error, the value of u(t) remain stationary. The integral control action is sometimes called reset control. Figure 4 shows a block diagram of such a controller.

Figure 4 Block diagram of an integral controller

KP + _E(s) U(s)

sK I + _

E(s) U(s)

R(s)

R(s)

Page 52: Basic Control Theory-Dr. Hung Nguyen

8

2.2.3 Derivative (D) Control Action In a controller with derivative control action, the value of the controller output u(t) is changed at a rate proportional to the rate of the change of the actuating error signal e(t). That is,

dt)t(deK)t(u D= (9)

where KD is derivative gain (KD = KPTD, TD is derivative time) or transfer function of the controller is

sK)s(E)s(U

D= (10)

Note that the derivative control action can never be used alone because this control action is effective only during transient periods. See the proportional derivative control action. 2.2.4 Proportional Integral (PI) Control Action The control action of proportional integral controller known as PI controller is defined by

+=t

0I

PP dt)t(e

TK)t(eK)t(u (11)

or the transfer function of the controller is

+=

sT11K

)s(E)s(U

IP (12)

where KP is the proportional gain, and TI is called the integral time. Both KP and TI are adjustable. The integral time adjusts the integral control action, while a change in the value of KP affects both the proportional and integral parts of the control action. The inverse of the integral time TI is called the reset rate. The reset rate is the number of times per minute that the proportional part of the control action is duplicated. Reset rate is measured in terms of repeats per minute. Figure 5(a) shows a block diagram of a proportional-integral controller. If the actuating error signal e(t) is a unit step function as shown in Figure 5(b), then the controller output u(t) becomes as shown in Figure 5(c). Figure 5 (a) block diagram of a proportional integral controller; (b) & (c) diagrams depicting

a unit-step input and the controller output

sT)sT1(K

I

IP + + _ E(s) U(s)

0

1

e(t)

Unit step

t(a) (b)

0

KP

u(t)

Unit step

t(c)

KPR(s)

Page 53: Basic Control Theory-Dr. Hung Nguyen

9

2.2.5 Proportional-Derivative (PD) Control Action The control action of a proportional-derivative controller is defined by

dt)t(deTK)t(eK)t(u DPP += (13)

and the transfer function is

dt)t(deTK)t(eK

)s(E)s(U

DPP += (14)

where KP is the proportional gain and TD is a constant called the derivative time. Both KP and TD are adjustable. The derivative control action, sometimes called rate control, is where the magnitude of the controller output is proportional to the rate of change of the actuating error signal. The derivative time TD is the time interval by which the rate action advances the effect of the proportional control action. Figure 6(a) show a block diagram of a proportional-derivative controller. If the actuating error signal e(t) is unit-ramp function as shown in Figure 6(b), then the controller output u(t) becomes as shown in Figure 6(c). As may be seen from Figure 6(c), the derivative control action can never anticipate any action that has not yet taken place. While derivative control action has the advantage of being anticipatory, it has the disadvantages that it amplifies signals and may cause a saturation effect in the actuator.

Figure 6 (a) block diagram of a proportional derivative controller; (b) & (c) diagrams depicting a unit-ramp input and the controller output

2.2.6 Proportional-Integral-Derivative (PID) Control Action The combination of proportional control action, integral control action, and derivative control action is termed proportional, integral and derivative control action, known as PID control. This combined action has the advantages of each of the three individual control actions. The equation of a controller with this combined action is given by

dt)t(deTKdt)t(e

TK)t(eK)t(y DP

t

0I

PP ++= (15)

)sT1(K DP + + _ E(s) U(s)

0

e(t)

Unit ramp

t(a) (b)0

U(t)

Proportional only

t(c)

PD control action

TD R(s)

Page 54: Basic Control Theory-Dr. Hung Nguyen

10

or transfer function is

++= sT

sT11K

)s(E)s(U

DI

P (16)

where KP is the proportional gain, TI is the integral time (seconds), and TD is the derivative time (seconds). It should be noted that KI = KP/TI and KD = KPTD. In practice, TI and TD are preferred to KI and KD. The block diagram of a proportional, integral and derivative controller is shown in Figure 7(a). If e(t) is a unit-ramp function as shown in Figure 7(b), then the controller output u(t) becomes as shown in Figure 7(c).

Figure 7 (a) block diagram of a PID controller; (b) and (c) diagrams depicting a unit-ramp input and the controller output

2.3 Types of PID Controller The above-mentioned PID control principle can be applied into many types of PI, PID controllers such as pneumatic PI controller, hydraulic PI or PID controllers, and electronic PID controllers. Nowadays, PID control has been developed in new types of PID controller such as digital PID controller, fuzzy PID controller, optimal PID controller and self-tuning PID controller. In this section we investigate how the PID control principle has been applied in some typical PID controllers such as pneumatic PID controller, hydraulic PID controller and electronic PID controller. 2.3.1 Pneumatic P-I-D Controllers Pneumatic Actuating Valve: One characteristic of pneumatic controls is that they most exclusively employ pneumatic actuating valves. A pneumatic actuating valve can provide a

sT)sTTsT1(K

I

2DIIP ++ + _

E(s) U(s)

0

e(t) Unit ramp

t

(a)

(b) 0

u(t)

Proportional only

t (c)

PD controlaction

TD PD control action

R(s)

Page 55: Basic Control Theory-Dr. Hung Nguyen

11

large power output. In practical pneumatic actuating valves, the valve characteristics may not be linear; that is the flow may not be directly proportional to the valve stem position, and also there may be other nonlinear effects such as hysteresis. Let’s consider the schematic diagram of a pneumatic actuating valve shown in Figure 8. Assume that the area of the diaphragm is A. Assume also that when the actuating acting error is zero the control pressure is equal to cP and the valve displacement is equal to Y.

Figure 8 Schematic diagram of a pneumatic actuating valve In the following analysis, small variations in the variables are considered and the pneumatic actuating valve is linearised. Let’s define the small variation in the control pressure and the corresponding valve displacement to be pc and y, respectively. Since a small change in the pneumatic force applied to the diaphragm repositions the load, consisting of the spring, viscous friction, and mass, the force balance equation becomes cApkxybym =++ (17) where m = mass of the valve and valve stem b = viscous friction coefficient k = spring constant If the force due to mass and viscous friction are negligibly small, then Equation (17) can be simplified: cApky = (18) The transfer function between y and pc thus becomes

cc

KkA

)s(P)s(Y == (19)

Control pressure

Return spring

Valve stem

Page 56: Basic Control Theory-Dr. Hung Nguyen

12

If qi, the change in flow through the pneumatic actuating valve, is proportional to y, the change in the valve stem displacement then

qi K

)s(Y)s(Q = (20)

The transfer function between qi and pc becomes

vqcc

i KKK)s(P)s(Q == (21)

where Kc is a constant. The standard control pressure for this kind of a pneumatic actuating valve is between 3 and 15 psig (approx. 20 kPa to 100 kPa). The valve stem displacement is limited by the allowable stroke of the diaphragm and is only a few inches. If a longer stroke is needed, a piston-spring combination may be employed. In pneumatic valves, the static friction force must be limited to a low value so that excessive hysteresis does not result. Because of the compressibility of air, the control action may not be positive, that is an error may exist in the valve stem position. The use of a valve positioner results in improvements in the performance of a pneumatic actuating valve. Resistance and capacitance of pressure systems Resistance is the ratio of the change in gas pressure difference (kg/m2) to the change in gas flow rate (kg/sec).

( )dq

PdR ∆= (Pa/m3/sec) (22)

where ( )Pd ∆ is a small change in the gas pressure and dq is a small change in the gas flow rate. Computation of the value of the gas flow resistance may be quite time consuming. The gas flow resistance R can be determined by experiments, for example, from a plot of the pressure difference versus flow rate by calculating the slope of the curve at a given operating condition as shown in Figure 9b. The capacitance of the pressure vessel may be defined by

dpdmC = =

dpdV ρ (23)

where C = capacitance, m-2 m = mass of gas in vessel, kg p = gas pressure, kg/m2 V = volume of vessel, m3 ρ = density, kg/m3

Page 57: Basic Control Theory-Dr. Hung Nguyen

13

Figure 9 Schematic diagram of a pressure system The capacitance of the pressure system depends on the type of expansion process involved. The capacitance can be calculated by used of ideal gas law.

TnR

VCgas

= (24)

where V = volume of vessel n = polytropic exponent Rgas = gas constant T = absolute temperature of gas, K The capacitance of a given vessel is constant if the temperature stats constant. Let’s consider the system shown in Figure 9 above. If we assume only small deviations in the variables from their respective steady state values, then this system may be considered linear. Let’s define: P = gas pressure in the vessel at steady state (before changes in pressure have occurred), Pa pi = small change in inflow gas pressure, Pa po = small change in gas pressure in the vessel, Pa V = volume of the vessel, m3 m = mass of the gas in vessel, kg q = mass gas flow rate, kg/sec ρ = density of gas, kg/m3 For small values of pi and po, the resistance R given by Equation (24) becomes constant and may be written as

q

ppR oi −= (25)

The capacitance C is given by Equation (24) or

dpdmC = (26)

ipP +

opP +

q

Capacitance C

Resistance R

(a) (b) q

∆P

d(∆P)Slope = R

dq

0

Page 58: Basic Control Theory-Dr. Hung Nguyen

14

Since the pressure change dpo times the capacitance C is equal to the gas added to the vessel during dt seconds, we obtain qdtCdpo = (27) or

R

ppdt

dpC oio −= (28)

which can be written as

ioo pp

dtdpCR =+ (29)

If pi and po are considered the input and output, respectively, then the transfer function of the system is

1RCs

1)s(P)s(P

i

o

+= (30)

where RC has the dimension of time and is called the time constant of the system. Pneumatic Proportional Controller: Let’s consider a pneumatic controller in Figure 10. Assuming that small changes in the variables, we can draw a block diagram of this controller as shown in Figure 11. From the block diagram we can se that the controller is of proportional type. An addition of a restriction in the negative feedback path will modify the proportional controller to a proportional derivative (PD) controller.

Figure 10 Pneumatic proportional controller

e Ps a

b

Y+x

Pc+pc

Flapper

Page 59: Basic Control Theory-Dr. Hung Nguyen

15

Figure 11 Block diagram of the pneumatic proportional controller Pneumatic PD Controller: Let’s consider the pneumatic controller shown in Figure 12(a). Assuming small changes in the actuating error, nozzle-flapper distance, and control pressure, we can summarise the operation of this controller as follows: Let’s first assume a small step change in e. Then the change in the control pressure pc will be instantaneous. The restriction R will momentarily prevent the feedback bellows from sensing the pressure change pc. Thus the feedback bellows will not respond momentarily, and the pneumatic actuating valve will feel full effect of the movement of the flapper. As time goes on, the feedback bellows will expand or contract. The change in the nozzle-flapper distance y and the change in the control pressure pc can be plotted against time t as shown in Figure 12(b). At steady state, the feedback bellows acts like an ordinary feedback mechanism. The curve pc versus t clearly shows that this controller is of the proportional derivative type.

Figure 12 Pneumatic PD controller A block diagram corresponding to this pneumatic is shown in Figure 13. In the block diagram, K is constant, A is the area of the bellows, and ks is the equivalent spring constant of the bellows. The transfer function between pc and e can be obtained from the block diagram as follows:

)s(E)s(Pc =

1RCs1

kA

baKa1

Kba

b

s +++

+ (31)

K Y(s) Pc(s)

baa+

+ _E(s)

B(s)

bab+

skA

e Ps a

b

Y+x

Pc+pc

Flapper

R C

e

ty

tpc

t(a) (b)

Page 60: Basic Control Theory-Dr. Hung Nguyen

16

In such a controller the loop gain |KaA/[(a+b)ks(RCs+1)]| is normally very much greater than unity. Thus the transfer function Pc(s)/E(s) can be simplified to give

)s(E)s(Pc = )sT1(K DP + (32)

where KP = aAbks and TD = RC.

Figure 13 Block diagram of the pneumatic PD controller Thus delay negative feedback, or the transfer function 1/(RCs+1) in the feedback path, modifies the proportional controller to a PD controller. Note that if the feedback valve is fully opened the control action becomes proportional. If the feedback valve is fully closed, the control action becomes narrow-band proportional (on-off). Pneumatic PI controller: Let’s consider the proportional controller shown in Figure 12(a) again. Considering small changes in the variables, we can show that the addition of delayed positive feedback will modify this proportional controller to a PI controller.

Figure 14 Pneumatic proportional-plus-integral controller Let’s consider the pneumatic controller in Figure 14(a). The operation of this controller is as follows: The bellows denoted by I is connected to the control pressure source without any restriction.

K Y(s) Pc(s)

baa+

+ _ E(s)

B(s)

bab+

skA

1RCs1

+

e Ps a

b

X+x

Ri

C C

Pc+pc

Flapper

e

ty

tpc

t(b)

(a)

I II

Page 61: Basic Control Theory-Dr. Hung Nguyen

17

Let’s assume a small step change in the actuating error. This will cause the back pressure in the nozzle to change instantaneously. Thus a change in the control pressure pc also occurs instantaneously. Due to the restriction of the valve in the path to bellows II, there will be a pressure drop across the valve. As time goes on, air will flow across the valve in such a way that the change in pressure in bellows II attains the valve pc. Thus bellows will expand or contract as time elapses in such a way as to move the flapper an additional amount in the direction of the original displacement e. This will cause the back pressure pc in the nozzle to change continuously as shown in Figure 14(b). Note that the integral control action in the controller takes the form of slowly cancelling the feedback that the proportional control originally provided. A block diagram of this controller under the assumption of small variations in the variables is shown in Figure 15(a). A simplification of this block diagram is given in Figure 15(b).

Figure 15 Block diagram of the pneumatic PI controller The transfer function is

)s(E)s(Pc =

+−

++

+

1RCs11

kA

baKa1

Kba

b

s

(32)

where K is a constant. A is the area of the bellows, and ks is the equivalent spring constant of the combined bellows.

K Y(s) Pc(s)

skA

baa+

+ _ E(s)

bab+

+

_ 1RCs1

+

K Y(s) Pc(s)

baa+

+ _ E(s)

bab+

++

1RCs1

+

(b)

(a)

sk

A

sk

A

baa+

Page 62: Basic Control Theory-Dr. Hung Nguyen

18

If |KaARCs/[(a+b)ks(RCs+1)]| >> 1, which is usually the case, the transfer function can be simplified to

)s(E)s(Pc =

+

sT11KI

P (33)

where KP = aAbks and TI = RC.

Pneumatic PID Controller: A combination of the pneumatic controllers shown in Figure 12(a) and 14(a) yields a proportional, integral and derivative (PID) controller. Figure 16 shows a schematic diagram of such a controller. Figure 17 shows a block diagram of this controller under the assumption of small variations in the variables.

Figure 16 Pneumatic proportional-integral-derivative controller

Figure 17 Block diagram of the pneumatic PID controller The transfer function of this controller is

)s(E)s(Pc = ( )

( )( )1RCs1CsRsCRCR

kA

baKa1

Kba

b

d

di

s ++−

++

+ (34)

e Ps a

b

X+x

Ri

Rd

C C

Pc+pc

(Ri >> Rd) Flapper

K Y(s) Pc(s)

skA

baa+

+ _ E(s)

bab+

+

_ 1RCs1

+

1RCs1

+

Page 63: Basic Control Theory-Dr. Hung Nguyen

19

By defining TI = RiC, TD = RdC and noting that under normal operation |KaA(TI – TD)s/[(a+b)ks(TDs+1)(TIs+1)]| >> 1 and TI >> TD, we obtain:

)s(E)s(Pc ≡ ( )( )

( )sTT1sT1sT

aAbk

DI

IDs

−++ ≡ ( )

sT1sTsTT

aAbk

I

I2

IDs ++ =

++ sT

sT11K DI

P (35)

where KP = aAbks .

Equation (35) indicates that the controller shown in Figure 16 is a PID controller. 2.3.2 Hydraulic PID Controllers The operating pressure in hydraulic systems is somewhere between 145lbf/in.2 (1MPa) and 5000lbf/in.2 (35MPa). In some special applications, the operating pressure may go up to 10,000lbf/in.2 (70MPa). For the same power requirement, the weight and size of the hydraulic unit can be made smaller by increasing the supply pressure. With high pressure hydraulic systems, very large force can be obtained. Rapid-acting, accurate positioning of heavy loads is possible with hydraulic systems. A combination of electronic and hydraulic systems is widely used because it combines the advantages of both electronic control and hydraulic power. Advantages and disadvantages of hydraulic systems: Advantages: 1. Hydraulic fluid acts as a lubricant, in addition to carrying away heat generated in the system to a convenient heat exchanger. 2. Comparatively small sized hydraulic actuators can develop large forces or torques. 3. Hydraulic actuators have a higher speed of response with fast starts, stops, and speed reversals. 4. Hydraulic actuators can be operated under continuous, intermittent, reversing, and stalled conditions without damage. 5. Availability of both linear and rotary actuators gives flexibility in design. 6. Because of low leakages in hydraulic actuators, speed drop when loads are applied is small. On the other hand, several disadvantages tend to limit their use: 1. Hydraulic power is not really available compared to electric power. 2. Cost of a hydraulic system may be higher than a comparable electrical system performing a similar function. 3. Fire and explosion hazards exist unless fire-resistant fluids are used. 4. Because it is difficult to maintain a hydraulic system that is free from leaks, the system tends to be messy. 5. Contaminated oil may cause failure in the proper functioning of a hydraulic system. 6. As a result of the non-linear and other complex characteristics involved, the design of sophisticated hydraulic systems is quite involved. 7. Hydraulic circuits have generally poor damping characteristics. If a hydraulic circuit is not designed properly, some unstable phenomena may occur or disappear, depending on the operating condition. Hydraulic Integral (I) Controller: Figure 18 shows a hydraulic servomotor. Operation of this hydraulic servomotor is as follows. If input x moves the pilot valve to the right, port II is uncovered, and so high-pressure oil enters the right side of the power piston. Since port I is

Page 64: Basic Control Theory-Dr. Hung Nguyen

20

connected to the drain port, the oil in the left side of the power piston is returned to the drain. The oil flowing into the power cylinder is at high pressure; the oil flowing out from the power cylinder into the drain is at low pressure. The resulting difference in pressure on both sides of the power piston will cause it to move to the left.

Figure 18 Hydraulic servomotor Note that the rate of flow of oil q (kg/sec) times dt (sec) is equal to the power piston displacement dy (m) times the piston area A (m2) times the density of oil ρ (kg/m3). Therefore,

qdtdyA =ρ (36)

Because of the assumption that the oil flow q is proportional to the pilot valve displacement x, we have

xKq 1= (37)

where K1 is a positive constant. From equations (36) and (37) we obtain

xKdtdyA 1=ρ (38)

The Laplace transform of this last equation, assuming a zero initial condition, gives

)s(XK)s(sYA 1=ρ (39) or

sK

sAK

)s(X)s(Y 1 =

ρ= (40)

where K = K1/(Aρ ). Thus, the hydraulic servomotor shown in Figure 18 acts as an integral controller.

y

Oil under pressure

x

Port IIPort I

Power cylinder

Pilot valve

Page 65: Basic Control Theory-Dr. Hung Nguyen

21

Hydraulic Proportional Controllers: The above integral servomotor can be modified to a proportional controller by means of a feedbakc link. The following figure shows a hydraulic proportional controller. The left side of the pilot valve is joined to the left side of the power piston by a link ABC. This link is a flowing link rather than one moving abouve a fixed pivot. The controller operates in the following way. If input e moves the pilot valve to the right, port II will be uncovered and high-pressure oil will flow through port II into the right side of the power pistion and force this piston to the left. The power piston, in moving to the left, will carry the feedback link ABC with it, thereby moving the pilot valve to the left. This action continues until the pilot piston again covers ports I and II. A block diagram of the system can be drawn as follows (Figure 19 (b)). The transfer function between Y(s) and E(s) is given by:

Ka)ba(sbK

baa

sK1

sK

bab

)s(E)s(Y

++=

++

+= (41)

Figure 19 (a) Servomotor that acts as a proportional controller; (b) block diagram of the servomotor

Note that under normal operating conditions we have 1)]ba(s/[Ka >>+ , this last equation can be simplified to

PKab

)s(E)s(Y == (42)

Dashpots (damper) – differentiating element: The dashpot (also called a damper) shown in the following figure acts as a differentiating element. Suppose that we introduce a step displacement to the piston position x. Then the displacement y becomes equal to x momentarily. Because of the spring force, however, the oil will flow through the resistance R

a

b

x

y

Oil under pressure

e

C

B

A

bab+ s

K

baa+

E(s) X(s) Y(s)

(a) (b)

Page 66: Basic Control Theory-Dr. Hung Nguyen

22

and the cylinder will come back to the original position. The block diagram is shown in Figure 20 (b).

Figure 20 (a) Dashpot, (b) block diagram of dashpot Let us derive the transfer function between the displacement y and displacement x. Define the pressures existing on the right and left sides of the piston as P1 (lb/in.2) and P2 (lb/in.2), respectively. Suppose that the inertia force involved is negligible. Then the force acting on the piston must balance the spring force. Thus

( ) kyPPA 21 =− (43) where A = piston area, in m2 k = spring constant, kg/m. The flow rate q is given by

RPPq 21 −= (44)

where q = flow rate through the restriction, kg/sec R = resistance to flow at the restriction, Nsec/(m2kg) Since the flow through the restriction during dt seconds must equal the change in the mass of oil to the left of the piston during the same dt seconds, we obtain:

( )dydxAqdt −ρ= (45) where ρ = density, kg/m3. We assume that the fluid is incompressible or ρ = constant). The last equation can be rewritten as

ρ=

ρ−=

ρ=− 2

21

RAky

RAPP

Aq

dtdy

dtdx (46)

or

ρ+= 2RA

kydtdy

dtdx (47)

y x

R

A P1 P2

k

q

Ts1

X(s) Y(s)

(a) (b) k

RAT2ρ=

Page 67: Basic Control Theory-Dr. Hung Nguyen

23

Taking the Laplace transforms of both sides of this last equation, assuming zero initial conditions, we obtain

)s(YRA

k)s(sY)s(sX 2ρ+= (48)

The transfer function of this system thus becomes

ρ+

=

2RAks

s)s(X)s(Y (49)

Let us define RA2 ρ /k = T. Then

Ts11

1)s(X)s(Y

+= (50)

Figure 20 (b) shows a block diagram representation for this system. Hydraulic PI Controller: Figure 21 shows a schematic diagram of a hydraulic proportional-integral controller. A block diagram of this controller is shown in Figure 22. The transfer function Y(s)/E(s) is given by:

1TsTs

baKa1

sK

bab

)s(E)s(Y

+++

+= (51)

Figure 21 Schematic diagram of a hydraulic PI controller

In such a controller, under normal operation 1)]1Ts)(ba/[(KaT >>++ , with the result that

a

b Spring (k)

x

Resistance (R)

y

Density of oil (ρ )

Area (A)

Oil under pressure

e

z

Page 68: Basic Control Theory-Dr. Hung Nguyen

24

+=

sT11K

)s(E)s(Y

IP (52)

where abK P = , TI = T =

kRA2ρ .

Thus the controller is a PI controller.

Figure 22 Block diagram for hydraulic PI controller Hydraulic PD Controller: Figure 23 shows a schematic diagram of a hydraulic proportional-plus-derivative controller. The cylinders are fixed in space and the pistons can move. For this system, notice that

)PP(A)zy(k 12 −=− (53)

RPPq 12 −= (54)

qdt = ρ Adz (55)

Figure 23 Schematic diagram of a hydraulic PD controller

bab+

sK

baa+

E(s) X(s) Y(s)

1TsTs

+

Z(s)

a

b

k

x

R

y

Area (A)

Oil under pressure

e

q

P2 P1

z

Density of oil (ρ )

Page 69: Basic Control Theory-Dr. Hung Nguyen

25

Hence

dtdz

kRAzqR

kAzy

2ρ+=+= (56)

Figure 24 Block diagram for hydraulic PD controller or

1Ts1

)s(Y)s(Z

+= (57)

where k

RAT2ρ= .

A block diagram for this system is shown in Figure 24. From the block diagram the transfer function Y(s)/E(s) can be obtained as:

1Ts1

baa1

sK

bab

)s(E)s(Y

+++

+= (58)

Under normal condition we have 1)]1Ts(s)ba/[(aK >>++ . Hence

( )Ts1K)s(E)s(Y

P += (59)

where KP = ab and T =

kRA2ρ .

2.3.3 Electronic PID Controllers Let’s consider simple operational amplifier circuit. In this section, we will consider a simple operational amplifier circuit. Operational Amplifiers: Operational amplifiers, called op amps, are frequently used to amplify signals in sensor circuit. Op amps are also frequency used in filters used for compensation purposes. Figure 25 shows an op amps and Figure 26 shows the most usual type of op amps: 741 Op Amp 8-pin DIP (dual-in-package). It is a common practice to choose

bab+

sK

baa+

E(s) X(s) Y(s)

1Ts1+

Z(s)

Page 70: Basic Control Theory-Dr. Hung Nguyen

26

the ground as 0 volt and measure the input voltages v1 and v2 relative to the ground. The input v1 to the minus terminal of the amplifier is inverted, and the input v2 to the plus terminal is not inverted.

Figure 25 Operational amplifier

Figure 26 The most usual 741 package The total input to the amplifier thus becomes v2 – v1. Hence, for the circuit shown in Figure 26, we have )vv(Kv 12o −= (60) where the inputs v1 and v2 may be dc or ac signal and K is the differential gain or voltage gain. The magnitude of K is approximately 105~106 for dc signals and ac signals with frequencies less than approximately 10Hz. It should be noted that the op amp amplifies the difference in voltages v1 and v2. Such an amplifier is commonly called a differential amplifier. Since the gain of the op amp is very high, it is necessary to have a negative feedback from the output to the input to make the amplifier stable. Inverting Amplifier: Consider the operational amplifier circuit in Figure 27. Let us obtain the output voltage vo. The equation for this circuit can be obtained as follows:

v1

vov2

Page 71: Basic Control Theory-Dr. Hung Nguyen

27

1

i1 R

vvi′−= ;

2

o2 R

vvi −′= (61)

Figure 27 Inverting operational amplifier circuit Since only a negligible current flows into the amplifier, the current i1 must be equal to current i2. Thus

1

i

Rvv ′− =

2

o

Rvv −′ (62)

Since K ( )v0 ′− = vo and K>>1, v′ must be almost zero, or 0v ≅′ . Hence we have

1

i

Rv =

2

o

Rv− (63)

or

vo = i1

2 vRR− (64)

Thus the circuit is an inverting amplifier. If R1 = R2, then the op-amp circuit acts as a sign converter. Non-inverting amplifier: Figure 28 shows a non-inverting amplifier circuit. For this circuit, we have

+−= o

21

1io v

RRRvKv (65)

where K is the differential gain of the amplifier.

Figure 28 Non-inverting operational amplifier circuit

vo

R1

R2

i1

i2

vi

vo

R1

R2

vi

v′

Page 72: Basic Control Theory-Dr. Hung Nguyen

28

Form Equation (65) we get

o21

1i v

K1

RRRv

+

+= (66)

Since K >> 1, if R1/(R1+R2) >> 1/K, then

i1

2o v

RR1v

+= (67)

This equation gives the output voltage vo. Since vo and vi have the same signs, the amplifier circuit shown in Figure 28 is non-inverting. Impedance approach for obtaining transfer functions. Consider the op-amp circuit shown in Figure 29(a). Simular to the case of electrical circuits discussed above, the impedance approach can be applied to op-amp circuits to obtain their transfer functions. For the circuit in Figure 29(b), we have

Figure 29 Inverting operational amplifier circuit

Vi(s) = Z1(s)I(s); Vo(s) = )s(I)s(Z2− (68) Hence, the transfer function for the circuit is obtained as

)s(Z)s(Z

)s(V)s(V

1

2

i

o −= (69)

PID Controller: Figure 30 shows an electronic PID controller using operational amplifiers. The transfer function is

1

2

1 ZZ

)s(E)s(E −= (70)

where 1sCR

RZ11

11 +

= sC

1sCRZ2

222

+= .

vo

R1

R2

i1

I3

vi v′

C i2

Z1(s)

Vo(s)

I(s)

I(s)

Vi(s) v′

Z2(s)

(a) (b)

Page 73: Basic Control Theory-Dr. Hung Nguyen

29

Thus

−=)s(E)s(E

1

+sC

1sCR

2

22

+

1

11

R1sCR (71)

Noting that

3

4

RR

)s(E)s(U −= (72)

Figure 30 Electronic PID controller

We have

)s(E)s(U =

)s(E)s(E

)s(E)s(U

i

=3

4

RR

+sC

1sCR

2

22

+

1

11

R1sCR

= 13

24

RRRR ( )( )

sCR1sCR1sCR

22

2211 ++ = 13

24

RRRR

+++ sCR

sCR1

CRCRCR

112222

2211

= ( )213

22114

CRRCRCRR +

( )

++

++ s

CRCRCRCR

sCRCR11

2211

2211

2211

(73)

From equation (73) we obtain:

( )

213

22114p CRR

CRCRRK

+= ; 2211i CRCRT += and

2211

2211d CRCR

CRCRT+

= (74)

In terms of the proportional, integral and derivative gains we have:

( )213

22114p CRR

CRCRRK += ;

213

4i CRR

RK = and 3

124d R

CRRK = (75)

Ei(s) E(s) U(s)

R1

C1 R2 C2

R3

R4

Z1 Z2

Page 74: Basic Control Theory-Dr. Hung Nguyen

30

2.4 Simulation of PID Control System (PID Autopilot) MATLAB/Simulink® allows user to simulate a desired PID control system in M-file/s or a Simulink model/s. In this section, we try to design a PID autopilot system for controlling the course (heading or yaw angle) of a surface vessel and make a Simulink model for it. 2.4.1 Ship Manoeuvring Model Let’s consider the following Nomoto’s first order model in Module 1. δ=+ KrrT (76) r=ψ (77) where T is time constant (seconds), K is constant, r is yaw rate (rad/seg), ψ is yaw angle (rad) and δ is rudder angle (rad). It should be noted that in practice, for a ship the rudder angle is limited in range of –35 degrees (port) to +35 degrees (starboard). The yaw angle is limited in the range of 0 to 360 degrees (on the gyrocompass indicator). It is assumed that the ship velocity is 12 knots. From equations (76) and (77), we obtain the transfer function between the yaw angle ψ(s) and the rudder angle δ(s):

( )1TssK

)s()s(

+=

δψ (78)

As mentioned above, the PID autopilot has the transfer function as follows:

sKs

KK)s(E)s(

DI

P ++=δ (79)

Figure 31 shows the block diagram of the PID autopilot system.

Figure 31 Block diagram of the PID autopilot system From Figure 31, the total closed-loop transfer function between the yaw angle ψ(s) and the set course R(s) is

+ _ R(s) δ(s) E(s)

s1

1TsK+

ψ(s)

sKs

KK DI

p ++

ShipPID autopilot

Kg

Gyrocompass

Yaw angle

Set course

Page 75: Basic Control Theory-Dr. Hung Nguyen

31

)s(R)s(ψ = ( )

( ) gDI

P

DI

P

K1Tss

KsKs

KK1

1TssKsK

sKK

+

+++

+

++ (80)

where Kg is the gyrocompass transfer function. For simplification, it is assumed that Kg = 1. This equation can be rearranged as

)s(R)s(ψ = ( )

( ) gDI

P

DI

P

K1Tss

KsKs

KK1

1TssKsK

sKK

+

+++

+

++ = ( )

( ) ( ) g2

DIP2

2DIP

KKsKKsK1TssKsKKsK

++++++

= ( )( ) gIgP

2gD

3

2DIP

KKKsKKKs1KKKTsKsKKsK

++++++ (81)

From equation (81), it can be seen that the poles and zeros of the total system depend of the control gains (proportional gain KP, integral KI and derivative gain KD). Applying the stability criteria we can determine the values of control gains so that the whole system is stable. However, we can determine these control gains by computer simulation. 2.4.2 Simulation of PID Autopilot (Nomoto’s First-Order Model) The MATLAB program consists of 3 M-files as follows: 1. Main propgram – PIDAutopilot_sim.m % Main Program: PIDAutopilot_sim.m% This program is to simulate the PID Autopilot system for a vessel% using the Nomoto's first order model.%% Initial values:%% u = surge velocity (m/s)% v = sway velocity (m/s)% r = yaw velocity (rad/s)% psi = yaw angle (rad)% Xpos = position in x-direction (m)% Ypos = position in y-direction (m)% delta = actual rudder angle (rad)

% r = 0; psi = 0; Xpos = 0; Ypos = 0; delta = 0;

% State vector:% X = [r psi Xpos Ypos delta]';

% Made by Hung Nguyen in 2004% Last modified on 1 September 2005% For subject: E07 267 Instrumentation nd Process Control% Copyright (C) 2005 Hung Nguyen <[email protected]>% Department of Maritime Engineering% Australian Maritime College% Launceston, Tasmania, Australia.%

Page 76: Basic Control Theory-Dr. Hung Nguyen

32

clear

fid = fopen('NomotoModel_2005_01.dat','w');fprintf(fid,'Simulation date: 1-Sep-2005\n');fprintf(fid,'time yawrate(deg/s) course(deg) rudder(deg)\n');

% Initial conditions:X = [0 0 0 0 0]';

% Set course:Setco = 60*pi/180; % in rad

% Initial values for computation of errors:e2 = 0;int_err = 0;e = [0 0 0]';

%N = 400;h = 0.1;index = 0;

for ii = 0.0:h:N

% Counting:index = index + 1;

% Rudder input:uu = PIDAutopilot(ii*h,e);

% Simple Euler Method:Xdot = NomotoModelFunction(X,uu);X = X + h*Xdot;

% Set yaw angle in range of 0-360:if X(2) >= 2*pi;

X(2) = X(2)-2*pi;endif X(2) < 0;

X(2) = X(2) + 2*pi;end

% Calculate errors:e1 = Setco - X(2);

% Set the error in range of -180 +180:if e1 >= pi

e1 = e1 - 2*pi;endif e1 <= -pi

e1 = e1 + 2*pi;end

e(1) = e1;

int_err = int_err + h*e1; e(2) = int_err;der_err = (e1 - e2)/h; e(3) = der_err;

e2 = e1; % update error for next step

% Store data:

Page 77: Basic Control Theory-Dr. Hung Nguyen

33

data(index,1) = ii; % timedata(index,2) = X(1)*180/pi; % yaw rate (deg/s)data(index,3) = X(2)*180/pi; % yaw angle (deg)data(index,4) = X(3); % Xpos (m)data(index,5) = X(4); % Ypos (m)data(index,6) = X(5)*180/pi; % Rudder angle (deg)data(index,7) = Setco*180/pi; % Set course (deg)

% to a file:

fprintf(fid,'%6.2f %12.8f %12.8f %12.8f %12.8f %12.8f\n',...ii,X(1)*180/pi,X(2)*180/pi,X(3),X(4),X(5)*180/pi);

end

fclose(fid);

% Draw graphics:

figure(1);subplot(212);plot(data(:,1),data(:,6));gridxlabel('Time (second)');ylabel('Rudder angle (deg)');

subplot(211);plot(data(:,1),data(:,7),data(:,1),data(:,3));gridxlabel('Time (second)');ylabel('Setcourse and yaw angle (deg)');

figure(2);plot(data(:,5),data(:,4));axis('equal');grid;

% End of PIDAutopilot_sim.m%

2. Function of Nomoto’s 1st-order model: NomotoModelFunction.m function xdot = NomotoModelFunction(x,ui)

% NomotoModelFunction.m% This program is to simulate the Nomoto's first order model%% T*r_dot + r = K*delta%% delta_c - delta% delta_dot = ---------------------------% |delta_c - delta|*Trud + a%% delta_c = command rudder (rad)% delta = rudder (rad)%% Made by Dr. Hung Nguyen in March 2004% Modified on 1 September 2005% Subject: E07 267 Instrumentation and Process Control% Copyright (C) 2005 Hung Nguyen <[email protected]>% Department of Maritime Engineering,% Australian Maritime College,% Launceston, Tasmania, Australia%

T = 7.5; K = 0.11; % maneuverability indicesU0 = 12*1852/3600; % ship speed (m/s)

r = x(1); % yaw rate (rad/s)

Page 78: Basic Control Theory-Dr. Hung Nguyen

34

yaw = x(2); % yaw angle (rad)delta = x(5); % rudder (rad)delta_c = ui(1); % command rudder (rad)

% Return derivatives:

xdot = [ -1/T*r+K/T*deltarU0*cos(yaw)U0*sin(yaw)(delta_c-delta)/(abs(delta_c-delta)*11.9+1)];

% End of function "NomotoModelFunction"%

3. Function of PID autopilot system: PIDAutopilot.m function u1 = PIDAutopilot(k,e)

% PIDAutopilot.m% This function is PID Autopilot for a surface ship% using the Nomoto's first order model T*r_dot + r = K*delta%% Made by Hung Nguyen in 2004% Last modified on 1 September 2005% For subject: E07 267 Instrumentation nd Process Control% Copyright (C) 2005 Hung Nguyen <[email protected]>% Department of Maritime Engineering% Australian Maritime College% Launceston, Tasmania, Australia.%

% Control gains and maximum rudder angle:

Kp = 0.75; Ki = 0.000004; Kd = 4.0;

maxrud = 10*pi/180;

% Rudder angle based on PID control law:

rudder = Kp*e(1) + Ki*e(2) + Kd*e(3);

if rudder >= maxrudrudder = maxrud;

end

if rudder <= -maxrudrudder = -maxrud;

end

u1 = [ rudder % rudder angle (rad)0 % port and starboard stern plane (rad)0 % top and bottom bow plane (rad)0 % port bow plane (rad)0 % starboard bow plane (rad)0 ]; % propeller shaft speed (rpm)

% End of Function PIDAutopilot%

Page 79: Basic Control Theory-Dr. Hung Nguyen

35

Running this program, the following results are obtained:

0 50 100 150 200 250 300 350 4000

20

40

60

80

Time (second)

Set

cour

se a

nd y

aw a

ngle

(deg

)

0 50 100 150 200 250 300 350 400-5

0

5

10

Time (second)

Rud

der a

ngle

(deg

)

Figure 32 Time series of yaw angle and rudder angle

0 200 400 600 800 1000 1200 1400 1600 1800

0

200

400

600

800

1000

1200

1400

Figure 33 Trajectory of the ship

Simulink model:

Page 80: Basic Control Theory-Dr. Hung Nguyen

36

Figure 34 Simulink model for PID autopilot system

0 50 100 150 200 250 300 350 4000

20

40

60

80

Time in seconds

Set

cour

se a

nd y

aw (d

eg)

0 50 100 150 200 250 300 350 400-5

0

5

10

Time in seconds

Rud

der a

ngle

(deg

)

Figure 35 Times series of yaw angle and rudder angle (Simulink model)

Page 81: Basic Control Theory-Dr. Hung Nguyen

37

0 200 400 600 800 1000 1200 1400 1600 1800 20000

200

400

600

800

1000

1200

1400

Figure 36 Trajectory of the ship (Simulink model)

2.5 PID Controllers in Market 2.5.1 DTZ4 Controller of Instronics Inc. The DTZ4 Series of PID Controllers offer front panel selection of all operating functions except output type. Programming flexibility includes selection of a second temperature set value, sensor type, and all PID function parameters. Figure 37 shows series of DTZ4 controllers. Another unique selectable feature of the DTZ4 Series of PID Controllers is fast or slow PID response. When set in the slow response (PIDS) mode, very little, if any overshoot will occur. If selected, Auto-tune control will monitor the system output response and after 3 response cycles will automatically calculate and replace the PID constants with optimal process control parameters. Two independent alarm outputs, each with 9 alarm

Figure 37 DTZ4 Controllers of Instronics Inc. (Courtesy of Instronics Inc.)

Page 82: Basic Control Theory-Dr. Hung Nguyen

38

mode types, can be programmed for automatic or manual reset. If you desire ramp up or ramp down to SV all models have that capability. This feature will allow the DTZ4 Series of PID Controllers to be used in hot runner applications. Features of DTZ4 are as follows:

• Front panel selectable including sensor input. • 2 temperature set values can be entered. Operator can then manually select between

the two separate set values. • Fast or slow PID response selectable - In slow response overshoot eliminated. • 2 independent alarm outputs, each with 9 operating modes • Universal Input: 100-240 VAC 50/60 Hz, 100-240 VDC • Powerful but inexpensive • Indicating accuracy of ±0.3% Full Scale • Diverse outputs like Relay, SSR driver, and 4-20mA analog. • Multi-input type selectable 15 kinds of input modes.

2.5.2 More Information on the Internet Following are some web sites on PID controllers. http://www.library.cmu.edu/ctms/ctms/pid/pid.htm http://www.process-controls.com/Instronics/Digitec_PID_Controllers.html http://intelec.orcon.net.nz/controllers.htm http://www.armfield.co.uk/pct20h_datasheet.html http://www.predig.com/content/products/#4 http://www.tempatron.co.uk/digital_pid_controllers.htm http://www.brighton-electronics.com/controllers.htm 2.6 Examples Example 2 Given the following PID-typed autopilot system using the Nomoto’s first-order model with yaw angle versus rudder angle,

Figure 38 PID autopilot

where )1sT(s

KG1

1

+= (K1 and T1 are constant), U is input rudder (in rad), Y is output course

(in rad), E is error, B is feedback course and R is set course (in rad), and sKs1KKC DIP ++=

(KP, KI and KD are the control gains), and 2KH = (K2 is constant feedback gain), (i) Find open-loop transfer function (B/E) and its poles and zeros if K1 = 0.11, T1 = 7.5 seconds, KP = 2.5, KI = 0.25, KD = 5 and K2 = 3.

G C + _ R Y

H

E U

B

Page 83: Basic Control Theory-Dr. Hung Nguyen

39

(ii) Find the total feedback transfer function (Y/R). (iii) Find the steady state error if a set-point course (R) of 60 degrees is applied. SOLUTIONS (i) The open-loop transfer function is as follows:

O.L.T.F = CGHEB = = ( ) 2

1

1DIP K

1sTsKsK

s1KK

+

++ = ( )1sTsKK

sKsKsK

1

21IP2

D

+++

Substituting values of K1, T1, KP, KI, KD, and K2, we have the O.L.T.F:

O.L.T.F = ( )( )1s5.7s

33.025.0s5.2s52

2

+×++

Zeros: 025.0s5.2s5 2 =++ ; z1,2 = 52

25.0545.65.2×

××−±− = 10

5.125.0 ±−

Poles: s2(7.5s+1) = 0; p1,2 = 0, p3 = 5.7

1−

(ii) Total feedback transfer function is as follows

C.L.T.F = RY =

CGH1CG

+ = ( )

( ) 21

1IP2

D

1

1IP2

D

K1sTs

Ks

KsKsK1

1sTsK

sKsKsK

++++

+++

= ( )( ) ( ) 21IP

2D1

21IP

2D

KKKsKsK1sTsKKsKsK

++++++

= ( )( ) 21I21P

221D

31

1IP2

D

KKKsKKKs1KKKsTKKsKsK

++++++

(iii)

Set-point signal is R(s) = sR =

180s60 π× (rad) (R = 60, value of set course)

Error is E(s) = ( )F.T.L.C1)s(R −

= ( )( )

++++++−

21I21P2

21D3

1

1IP2

D

KKKsKKKs1KKKsTKKsKsK1

sR

= ( ) ( )( )

++++++−++++

21I21P2

21D3

1

1IP2

D21I21P2

21D3

1

KKKsKKKs1KKKsTKKsKsKKKKsKKKs1KKKsT

sR

= ( ) ( ) ( )( )

++++−+−+−++

21I21P2

21D3

1

1I21IP21P2

D21D3

1

KKKsKKKs1KKKsTKKKKKsKKKKsK1KKKsT

sR

Steady state error is SSE = )s(sEiml0s→

= ( )CLTF1sRsiml

0s−

= ( ) ( ) ( )( )

++++−+−+−++

→21I21P

221D

31

1I21IP21P2

D21D3

1

0s KKKsKKKs1KKKsTKKKKKsKKKKsK1KKKsT

sRsiml

= ( )21I

1I21I

KKKKKKKKR − =

2

2

K1KR − (values of R and K2 may be substituted here)

Note that if K2 = 1, SSE = 0, the course follows the set-course. End of Example 2

Page 84: Basic Control Theory-Dr. Hung Nguyen

40

Example 3 In the following liquid level control system, liquid level is measured and the level transmitter (LT) output is sent to a PID feedback controller (LC) that controls liquid level by adjusting volumetric flow rate qi. A current-to-pressure converter (I/P) with pneumatic supply is used to convert the current signal into the pressure that activates the control diaphragm valve. Assume:

Figure 39 Liquid level control system

1. The liquid density ρ and the cross-sectional A are constant. 2. The level transmitter, I/P converter, and control diaphragm vale have negligible

dynamics and gains of Km, KIP, and Kv, respectively. 3. The level controller (LC) is a PID-typed controller with adjustable control gains of

KP, KI and KD. The set-point (input) and the output (control signal) are in % (full scale = 100%). The set-point signal spH (mA) is assumed to be equal Km times the set-point signal in % (Hsp (%)).

4. The flow-head relationship is linear, qo = h/R (R is resistance). (i) Develop a differential equation (between the head h and the inlet flow rate qi) to describe

the tank system. (ii) Write the transfer function (level and inlet flow rate) with assumption that the tank starts

off empty using Laplace transform. (iii) Draw a block diagram for the whole system. (iv) Write the total feedback transfer function. (v) If the liquid in the tank system is gas oil with the density ρ of 820kg/m3, and the level h is

controlled at a set-point value of 150cm, calculate the outlet weight of liquid flowing for a day (R = 0.5sec/m2, cross-sectional area A = 2m2) and outlet flow velocity (internal diameter of outlet pipe is 100mm).

SOLUTIONS (i) Based on the mass balance: the change in mass in the tank is equal to the difference between the inlet mass and the outlet mass, we have:

oi wwdtdm −= or

oi qqdtdhA ρ−ρ=ρ

h

qo

LTLC I/P

qi

p

hmPneumatic supply

Cross-sectional A

Tank

Resistance R

Page 85: Basic Control Theory-Dr. Hung Nguyen

41

From the assumption that head-flow relationship is linear, we have Rhqo =

Therefore, we have the differential equation characterizing the relationship between the level and the inlet flow rate as follows:

iqRh

dtdhA =+

(ii) With zero initial conditions, the transfer function above is

1Tsk

)s(Q)s(H)s(G

i +==

where k = R, and T = AR. (iii) The block diagram for the whole liquid level control system is as follows

Figure 40 Block diagram of the level control system

where s

KsKsKsKs1KKC IP

2D

DIPPID++=++= and

1TskG+

= .

(iv) Based on the above block diagram, the total feedback transfer function is

F.B.T.F = mspsp

sp

spsp

KHY

HH

HY

HY ==

spHY

mvIPPID

vIPPID

GKKKC1GKKC

+= =

mvIPIP

2D

vIPIP

2D

K1Ts

kKKs

KsKsK1

1TskKK

sKsKsK

++++

+++

spHY = ( )

( ) ( ) mvIPIP2

D

vIPIP2

D

kKKKKsKsK1TsskKKKsKsK

++++++

spHY = ( )

( ) mvIPImvIPP2

D

vIPIP2

D

kKKKKskKKKKsKTkKKKsKsK

+++++

F.B.T.F = msp

KHY = ( )

( ) mvIPImvIPP2

D

mvIPIP2

D

kKKKKskKKKKsKTkKKKKsKsK

+++++

(v) The mass flow rate is

oo qw ρ= , qo = Rh , therefore wo = ρ

Rh = 820

5.05.1 = 3×820kg/sec

the outlet weight of gas oil flowing through the outlet pipe for a day is: Wday = wo×3600×24(h) = 3×820×3600×24=212544×103 kg = 212544 tons.

KIP CPID+_ spH Y

Km

E U

B

Km Hsp Kv G

Page 86: Basic Control Theory-Dr. Hung Nguyen

42

The outlet flow velocity is as follows:

Ap = (10×10-2)2

4π(m2)= 0.00785398163397

Vo = p

o

Aq =

pRAh =

14.31.05.045.1

××× = 38.197 m/s

End of Example 3

SUMMARY OF MODULE 3 Module 3 is summarised as follows. 1. Concepts of stability: stability is important for a control system, asymptotically stable, marginally stable, absolute stability and relative stability. 2. PID control: P control, PI control, PD control, and PID control 3. Types of PID controller: Pneumatic PID controllers, hydraulic PID controllers and electronic PID controllers. 4. An example of designing PID typed autopilot for ships. 5. A example of PID controller in market.

Page 87: Basic Control Theory-Dr. Hung Nguyen

43

Exercises Problems in this Module can be solved by computer (MATLAB/Simulink). 1. A control system that consists of a tank that has transfer function

G(s) = )s(Q)s(H =

1s25+

where H(s) is output level and Q(s) is input volumetric flow, and a pump that has transfer function

C(s) = )s(U)s(Q =

2s34+

where U(s) is input (electric signal) and Q(s) is output (volumetric flow), and a flowmeter that is has gain K = 4, and time delay Td = 20sec. The pump is controlled with a PI controller that has control gains, Kp and KI, respectively. Draw the block diagram for the feed-back control system (R is set-point, desired level) and find the total closed-loop transfer function. Using MATLAB/Simulink simulate the system and select values of KP and KI such that the whole system is stable. 2. A simplified version of the d.c. motor model is shown below. The input is voltage and the output is rotational speed, θ . where L is the motor inductance (Henry) R is the motor electrical resistance (Ohm) K = armature constant = motor constant J moment of inertia of the rotor/load Kf is the damping ratio of the mechanical system Confirm that the closed-loop transfer function is

( )( ) 2f KKJsRLs

K)s(G+++

=

If the system is controlled with a proportional and integral controller with gains KP and KI, what is the total system transfer function? 3. A marine engine running at 100rpm has a transfer function as follows:

)5s(s1+

RsL1+

fKsJ

1+

Input u(t) in V Output )t(θ

Feedback emf

Page 88: Basic Control Theory-Dr. Hung Nguyen

44

where the input is fuel flow rate and the output is rotational speed. We control the fuel valve with a d.c. motor which has a transfer function of

1s1+

where the input is voltage and the output is fuel flow rate. We implement a PI controller for the motor with gains of KP and KI, respectively. A tachometer in the feedback loop measures the rotational speed and feeds back with a gain of 5. (a) Draw the system block diagram and calculate the transfer function. Using MATLAB/Simulink, simulate the system and select values of KP and KI such the system is stable. (b) At the lower speed of 70 rpm the engine transfer function is

)2s(s1+

Calculate the total system transfer function if the engine runs at 70 rpm. Using the MATLAB/Simulink, simulate the system at speed of 70 rpm and select values of KP and KI such the system is stable. Refer to the M-file/s or Simulink model/s you created in (a). 3. Find the closed-loop transfer function (F(s) = Y(s)/R(s)) of the following system.

where sT1

K)s(G1

1

++++==== ; and

sT1K)s(H

2

2

+= .

(a) Find the poles and zeros of the total closed-loop transfer function. Using MATLAB/Simulink simulate the system (K1 = 1, K2 = 2, T1 = 5, T2 = 7). (b) Assuming that the input of G is controlled by a PID controller (C) as shown in the following block diagram, simulate the system and try to select values of control gains (Kp, Ki and Kd) such that the system is stable. 4. Consider the following Nomoto’s first order manoeuvring model: δ=ψ+ψ KT where T = 7.5 seconds, K = 0.11 and δ is rudder angle (rad). The rudder handling machine is modelled by the following equation:

( )aTRUDc

c

+δ−δδ−δ

G

H

+_R Y

G

H

+ _ R YC

Page 89: Basic Control Theory-Dr. Hung Nguyen

45

where δc is commanded rudder, TRUD = 11.9 seconds (time constant) and a = 1 (used to avoid dividing by zero). The trajectory of the ship is expressed by the following equations: ψ−ψ= sinvcosuX ψ+ψ= cosvsinuY where u is surge velocity of the ship in x-axis, and v is sway velocity in y-axis (V =

22 vu + ). It is assumed that the ship is running at a constant speed, i.e. v = 0. The ship is controlled by a PID autopilot that has control gains: KP, KI and KD. Using MATLAB/Simulink, make M-file/s or Simulink model to simulate the ship system and try different values of control gains. 5. Consider industrial automatic controllers whose control actions are proportional, integral, proportional-plus-integral, proportional-plus-derivative, and proportional-plug-integral-plus-derivative. The transfer functions of these controllers can be given, respectively, by

pK)s(E)s(U =

s

K)s(E)s(U i=

+=

sT11K

)s(E)s(U

ip

( )sT1K)s(E)s(U

dp +=

++= sT

sT11K

)s(E)s(U

di

p

where U(s) is the Laplace transform of u(t), the controller output, and E(s) the Laplace transform of e(t), the actuating error signal. Sketch u(t) versus t curves for each of the five types of controllers when the actuating error signal is (a) e(t) = unit-step function (b) e(t) = unit-ramp function In sketching curves, assume that the numerical values of Kp, Ki, Ti and Td are given as Kp = proportional gain = 4 Ki = integral gain = 2 Ti = integral time = 2 seconds Td = derivative time = 0.8 seconds 6. Consider the system shown in the following figure. Show that the steady state error in the following the unit-ramp input is B/K. This error can be made smaller by choosing B small and/or K large. However, making B small and/or K large would have the effect of making the damping ratio small, which is normally not desirable. Describe a method or methods to make B/K small and yet make the damping ratio have reasonable value (0.5 < ξ < 0.7).

)BJs(s1+

+ _ R(s) Y(s)

K

Page 90: Basic Control Theory-Dr. Hung Nguyen

46

7. The following figure shows three systems. System I is a positional servo system. System II is a positional servo system with PD control action. System III is a positional servo system with velocity feedback. Compare the unit-step, unit-impulse and unit-ramp responses of the three systems. Which system is the best with respect to the speed of response and maximum overshoot in the step response?

)1s5(s1+

+ _ R(s) Y(s)

5

)1s5(s1+

+ _ R(s) Y(s)

5(1+0.8s)

)1s5(s1+

+ _ R(s) Y(s)

5

System I

System II

System III

0.8

s1 + _

Page 91: Basic Control Theory-Dr. Hung Nguyen

Lecture Notes

BASIC CONTROL THEORY

Module 4

Control Elements

SEPTEMBER 2005

Prepared by Dr. Hung Nguyen

Page 92: Basic Control Theory-Dr. Hung Nguyen

i

TABLE OF CONTENTS Table of Contents..............................................................................................................................i List of Figures..................................................................................................................................ii List of Tables ................................................................................................................................. iii References ......................................................................................................................................iv Objectives ........................................................................................................................................v 1. General Structure of a Control System........................................................................................1 2. Comparison Elements..................................................................................................................2

2.1 Differential Levers (Walking Beams) ...................................................................................2 2.2 Potentiometers ......................................................................................................................3 2.3 Synchros................................................................................................................................4 2.4 Operational Amplifiers .........................................................................................................5

3. Control Elements .........................................................................................................................7 3.1 Process Control Valves .........................................................................................................7 3.2 Hydraulic Servo Valve ........................................................................................................11 3.3 Hydraulic Actuators ............................................................................................................15 3.4 Electrical Elements: D.C. Servo Motors.............................................................................16 3.5 Electrical Elements: A.C. Servo Motors .............................................................................18 3.6 Hydraulic Control Element (Steering Gear) .......................................................................18 3.7 Pneumatic Control Elements ..............................................................................................19

4. Exampples of Control Systems..................................................................................................22 4.1 Thickness Control System ..................................................................................................22 4.2 Level Control System .........................................................................................................23

Summary of Module 4...................................................................................................................23 Exercises........................................................................................................................................24

Page 93: Basic Control Theory-Dr. Hung Nguyen

ii

LIST OF FIGURES Figure 4.1.........................................................................................................................................1 Figure 4.2.........................................................................................................................................3 Figure 4.3.........................................................................................................................................3 Figure 4.4.........................................................................................................................................4 Figure 4.5.........................................................................................................................................5 Figure 4.6a .......................................................................................................................................6 Figure 4.6b.......................................................................................................................................6 Figure 4.7.........................................................................................................................................8 Figure 4.8.........................................................................................................................................9 Figure 4.9.......................................................................................................................................10 Figure 4.10.....................................................................................................................................11 Figure 4.11.....................................................................................................................................12 Figure 4.12.....................................................................................................................................13 Figure 4.13.....................................................................................................................................14 Figure 4.14.....................................................................................................................................15 Figure 4.15.....................................................................................................................................15 Figure 4.16.....................................................................................................................................17 Figure 4.17.....................................................................................................................................18 Figure 4.18.....................................................................................................................................19 Figure 4.19.....................................................................................................................................20 Figure 4.20.....................................................................................................................................21 Figure 4.21.....................................................................................................................................22 Figure 4.22.....................................................................................................................................22 Figure 4.23.....................................................................................................................................24 Figure 4.24.....................................................................................................................................24 Figure 4.25.....................................................................................................................................25 Figure 4.26.....................................................................................................................................25 Figure 4.27.....................................................................................................................................26

Page 94: Basic Control Theory-Dr. Hung Nguyen

iii

LIST OF TABLES

Page 95: Basic Control Theory-Dr. Hung Nguyen

iv

REFERENCES Chesmond, C.J. (1990), Basic Control System Technology, Edward Arnold, UK. Haslam, J.A., G.R. Summers and D. Williams (1981), Engineering Instrumentation and Control,

London, UK. Kou, Benjamin C. (1995), Automatic Control Systems, Prentice-Hall International Inc., Upper

Saddle River, New Jersey, USA. Ogata, Katsuhiko (1997), Modern Control Engineering, 3rd Edition, Prentice-Hall International

Inc., Upper Saddle River, New Jersey, USA. Richards, R.J. (1993), Solving in Control Problems, Longman Group UK Ltd, Harlow, Essex,

UK. Seborg, Dale E., Thomas F. Edgar and Duncan A. Mellichamp (2004), Process Dynamics and

Control, 2nd Edition, John Wiley & Sons, Inc., Hoboken, New Jersey, USA. Taylor, D.A. (1987), Marine and Control Practice, Butterworths, UK.

Page 96: Basic Control Theory-Dr. Hung Nguyen

v

AIMS

1.0 Explain general structure of a control system and its components.

LEARNING OBJECTIVES 1.1 Describe a general structure of a control system by a block diagram. 1.2 State function of each block in a control system 1.3 Describe components of a control system: process, transducers, recorders, comparison

elements, controllers and final control elements

Page 97: Basic Control Theory-Dr. Hung Nguyen

1

1. General Structure of a Feedback Control System Automatic control systems, including their recording elements, may be represented by a general block diagram as shown in the following figure.

Figure 4.1 General structure of a feedback control system Input: The input signal is also called reference signal or set-point signal. It is a desired signal that is kept stable. The set-point signal can be set by an operator or by a control program. Output: The output signal is also called process variable (PV). It is an actual signal. The output signal is often measured by a transducer or transmitter and fed back to the comparison element in the closed-loop control system. The output is indicated by a recorder or a display. Error: The error signal is also called an actuating error. It is the difference between the set-point signal and the measured output signal. Process: The process block represents the overall process. All the properties and variables that constitute the manufacturing or production process are a part of this block. The process is also called a plant or a dynamic system in which the controlled variable is regulated as desired. The dynamic behaviour of the process can be expressed by an ordinary differential equation. See Modules 1 through 3. Transducer: The transducer block represents whatever operations are necessary to determine the present value of the controlled variables. The transducer block is also called the measurement block. The transducer is used to measure the process variable or output and feedbacks the measured output to the comparator. The output of this block is a measured indication of the controlled variable expressed in some other form, such as voltage, current, or a digital signal. Recorder: The recorder or indicating device indicates or displays the measured output. Comparison Element: The comparison element is also called a comparator that detects an error, a difference between the set-point signal and the measured output signal. The comparison elements compare the desired input with the output and generate an error signal. The comparison

Controller + _ Input r(t) Output y(t) Control

element Process

Transducer Recorder

Error e(t)

Comparison element

u(t)

Feedback signal

Page 98: Basic Control Theory-Dr. Hung Nguyen

2

element may be one of the following types: mechanic types such as differential levers, electric types such as potentiometer, operational amplifier and synchros. Controller: The control block is the part of the loop that determines the changes in the controlling variable that are needed to correct errors in the controlled variable. This block represents the ‘brains’ of the control system. The output of this block will be a signal, called the feedback signal, that will change the value of the controlling variable in the process (plant or dynamic system) then thereby the controlled variable. The controller acts on the actuating error and uses this information to produce a control signal that drives the process. The controller often has two tasks 1) being able to compute control signal/s and 2) being able to drive the system being controlled. There are many types of controller such as pneumatic controller, hydraulic controller, electrical and electronic controller and hybrid controller that is a combination of two or more than two of the above types. In traditional analogue control systems, the controller is essentially an analogue computer. In the computer-based control systems, the controller function is performed using software. There are several algorithms for controller such as PID control, optimal control, self-tuning control, optimal control, neural network control and so on. Control Element: The control element block is the part that converts the signal from the controller into actual variations in the controlling variable. The control element is also called an actuating element or an actuator in which the amplified and conditioned control signal is used to regulate some energy source to the process. In practice, the control element is part of the process itself, as it must be to bring about changes in the process variables. 2. Comparison Elements Comparison elements compare the output or controlled variable with the desired input or reference signal and generate an error or deviation signal. They perform the mathematical operation of subtraction. 2.1 Differential Levers (Walking Beams) Differential levers are mechanical comparison elements which are used in many pneumatic elements and also in hydraulic control systems. They come in many varied an complex forms, a typical example being illustrated in Figure 4.2, which shows a type used in a Taylor’s Transcope pneumatic controllers. For purposes of analysis a differential lever can be considered as a simple lever which is free to pivot at points R, S and T as illustrated in Figure 4.3. From Figure 4.3 for small movements: i) considering R fixed: if x moves to the right then

xba

b+

=ε (4.1)

ii) considering T fixed: if y moves to the left then

Page 99: Basic Control Theory-Dr. Hung Nguyen

3

y)ba(

a+

−=ε (4.2)

The total movement ε can be found by using the principle of superposition, which states that, for a linear system, the total effect of several disturbances can be obtained by summation of the effects of each individual disturbance acting alone. The total movement ε due to the motion of x and y is therefore given by sum of (i) and (ii):

y)ba(

ax)ba(

b+

−+

=ε (4.3)

In many cases it is arranged that a = b, so that the lever is symmetrical, and then

)yx(21 −=ε (4.4)

i.e. error21 ×=ε or deviation

21 ×=ε

It is important that the output movement at y is arranged to always be in the opposite direction to the input x, i.e. a negative-feedback arrangement. 2.2 Potentiometers Potentiometers are used in many d.c. electrical positioning servo-systems. They consist of a pair of matched resistance potentiometers operating on the null-balance principle. The sliders are driven by the input and output shafts of the control system as illustrated in Figure 4.4.

Figure 4.2 The motion plate for a Taylor’s Transcope controller

Figure 4.3 The differential lever

Page 100: Basic Control Theory-Dr. Hung Nguyen

4

Figure 4.4 Error detection by potentiometers If the same voltage is applied to each of potentiometer windings, an error voltage is generated which is proportional to the relative positions. We have ( )0iPK θ−θ=ε (4.5) where 1θ = input-shaft position 0θ = output-shaft position KP = potentiometer sensitivity (volts/degree) When the input and output shafts are aligned and, 0i θ=θ , and the error voltage ε is zero, i.e. null balance is achieved. 2.3 Synchros Synchros are the a.c. equivalent of potentiometers and are used in many a.c. electrical systems for data transmission and torque transmission for driving dials. They are also used to compare input and output rotations in a.c. electrical servo-systems and rotating hydraulic systems. To perform error detection, two synchros are used: one in the mode of a control transmitter, and the other as a control transformer, as shown in Figure 4.5. The synchros have their stator coils equally spaced at 120o intervals. An a.c. voltage (often 115V at 400Hz) is applied to the transmitter rotor, producing voltages in the stator coils (by transformer action) which uniquely define the angular position of the rotor. These voltages are transmitted to the stator coils of the transformer, producing a resultant magnetic field aligned in the same direction as the transmitter rotor.

Page 101: Basic Control Theory-Dr. Hung Nguyen

5

The transformer rotor acts as a “search coil” in detecting the direction of its stator field. The maximum voltage is induced in the transformer rotor coil when the rotor axis is aligned with the field. Zero voltage is induced when the rotor axis is perpendicular. The “in-line” position of the input and output shafts therefore requires the transformer rotor coil to be at 90o to the transmitter rotor coil.

Figure 4.5 Error detection by synchros The output voltage is an amplitude-modulated signal which requires demodulating to produce the following relationship for small misalignment angles: Output = K (input-shaft position – output-shaft position) = )(K 0i θ−θ where K = voltage gradient (volts/degree) Compared to d.c. potentiometers, synchros have the following advantages: a) a full 360o of shaft rotation is always available; b) since they have no sliding contacts, their life expectancy is much higher, resolution is infinite, and hence they do not have “noise” problems; c) a.c. amplifiers can be employed and therefore are no drift problems. However, phase-sensitive rectifiers are necessary to sense direction. 2.4 Operational Amplifiers Operational amplifiers, or “op. ams”, are direct-coupled (d.c.) amplifiers with special characteristics as

Page 102: Basic Control Theory-Dr. Hung Nguyen

6

High gain, 200000 to 106; Phase reversal, i.e. the output voltage is of opposite sign to the input; High input impedance.

Figure 4.6a Error detection by an operational amplifier The input current to the amplifier can be assumed to be negligible, and f21 iii =+ (4.6)

∴f

0

2

2

1

1

Rv0

R0v

R0v −=−+− and

+−= 2

2

f

1

f0 v

RR

RRv (4.7)

If Rf = R1 = R2, v1 is made equal to input ( iθ ), and v2 is made equal to – output ( 0θ− ), we have )(v 0i0 θ−θ−= = –(error) (4.8) The negative sign can be removed by using an inverter (as shown in the following example). Operational amplifiers are used in electrical control systems and as comparison elements in many hydraulic positioning systems. Example In Figure 4.6, Rf = 1M Ω , R1 = R2 = 0.1 M Ω , v1 is a voltage proportional to the input displacement iθ , and v2 is a voltage proportional to the output displacement 0θ and is arranged to be fed back in a negative sense. Assuming the proportional constant is 1V/degree, determine the amplification through the op.amp and show how the sign of the error output can be inverted.

Figure 4.6b An inverter

Rf

vo v1

v2

R1

R2

ifi1

i2

Rf

ve v0

R ifi

Page 103: Basic Control Theory-Dr. Hung Nguyen

7

We have

θΩ

Ω−θΩ

Ω−= 0i0 M1.0M1

M1.0M1v = ( )0i10 θ−θ− (4.9)

The amplification is therefore 4. The sign of the error can be inverted as shown in Figure 4.6. We have fii = (4.10)

∴ f

e0

Rv0

R0v −=− (4.11)

∴ 0f

e vRRv −= (4.12)

and, if Rf is made equal to R, 0e vv −= (4.13) 3. Control Elements (Actuators) Control elements are those elements in which the amplified and conditioned error signal is used to regulate some energy source to the process. 3.1 Process-control Valves In many process systems, the control element is the pneumatically actuated control valve, illustrated in Figure 4.7, which is used to regulate the flow of some fluid. A control valve is essentially a pressure-reducing valve and consists of two major parts: the valve-body assembly and the valve actuator. a) Valve actuators The most common type of valve actuator is the pneumatically operated spring-and-diaphragm actuator illustrated in Figure 4.7, which uses air pressure in the range 0.2bar to 1.0bar unless a positioner is used which employs higher pressure to give larger thrusts and quicker action. The air can be applied to the top (air-to-close) or the bottom (air-to-open) of the diaphragm, depending on the safety requirements in the event of an air-supply failure.

Page 104: Basic Control Theory-Dr. Hung Nguyen

8

b) Valve-body design Most control-valve bodies fall into two categories: single-seated and double-seated. + Single-seated valves have a single valve plug and seat and hence can be readily designed for tight shut-off with virtually zero flow in the closed position. Unless some balancing arrangement is included in the valve design, a substantial axial stem force can be produced by the flowing fluid stream. + Double-seated valves have two valve plugs and seats, as illustrated in Figure 4.7. Due to the fluid entering the centre and dividing in both upward and downward directions, the hydrodynamic effects of fluid pressure tent to cancel out and the valves are said to be “balanced”. Due to the two valve opening, flow capacities up to 30% greater than for the same nominal size single-seat valve can be achieved. They are, however, more difficult to design to achieve tight shut-off. The valve plugs and seats – known as the valve “trim” – are usually sold as matched sets which have been ground to a precise fit in the fully closed position.

Figure 4.7 A process-control valve

Page 105: Basic Control Theory-Dr. Hung Nguyen

9

The valve plugs are of two main types: the solid plug and the skirted V-port plug, as illustrated in Figure 4.8. All valves have a throttling action which causes a reduction in pressure. If the pressure increases again too rapidly, air bubbles entrained in the fluid “implode”, causing rapid wear on the valve plugs. This process is known as cavitation. The skirted V-port plugs have less tendency to cause this rapid pressure recovery and are therefore less prone to cavitation.

Figure 4.8 Control valve plugs

Page 106: Basic Control Theory-Dr. Hung Nguyen

10

c) Valve flow characteristics The flow characteristic of a valve is the relationship between the rate of flow change and the valve lift. The characteristics quoted by the manufacturers are theoretical or inherent flow characteristics obtained for a constant pressure drop across the valve. The actual or installed characteristics are different from the inherent characteristics since they incorporate the effects of line losses acting in series with the pressure drop across the valve. The larger the line losses due to pipe friction etc., the greater the effect on the characteristic.

Figure 4.9 Types of valve flow characteristics Three main types of characteristic illustrated in Figure 4.9 are: i) Quick-opening – the open port area increases rapidly with valve lift and the maximum flow rate is obtained after about 20% of the value lift. This is used for on-off applications. ii) Linear – the flow is directly proportional to valve lift. This is used example in bypass service of pumps and compressors. iii) Equal-percentage – the change in flow is proportional to the rate of flow just before the flow change occurred; that is, an equal percentage of flow change occurs per unit valve lift. This is

Page 107: Basic Control Theory-Dr. Hung Nguyen

11

used when major changes in pressure occur across the valve and where there is limited data regarding flow conditions in the system. 3.2 Hydraulic Servo Valve In hydraulic control systems, the hydraulic energy from the pump is converted to mechanical energy by means of a hydraulic actuator. The flow of fluid from the pump to the actuator in most systems is controlled by a servo-valve. A servo-valve is a device using mechanical motion to control fluid flow. There are three main modes of control: i) sliding – the spool valve ii) seating – the flapper valve; iii) flow-dividing – the jet-pipe valve. a) Spool Valves Spool valves are the most widely used type of valve. They incorporate a sliding spool moving in a ported sleeve as illustrated in Figure 4.4. The valves are designed so that the output flow from the valve, at a fixed pressure drop, is proportional to the spool displacement from the null position.

Figure 4.10 A spool valve Spool valves are classified according to the following criteria. The number of “ways” flow can enter or leave the valve. A four-way valve is required for use with double-acting cylinders.

Page 108: Basic Control Theory-Dr. Hung Nguyen

12

The number of lands on the sliding spool. Three and four lands are the most commonly used as they give a balanced valve, i.e. the spool does not tend to move due to fluid motion through the valve. The valve-centre characteristic, i.e. the relationship between the land width and the port opening. The flow-movement characteristics is directly related to the type of valve centre employed. Figure 4.11 illustrates the characteristics of the three possibilities discussed below.

Figure 4.11 Valve-centre characteristics i) Critical-centre or line-on. The land width is exactly the same size as the port opening. This is the ideal characteristics as it gives a linear flow-movement relationship at constant pressure drop. It is very difficult to achieve in practice, however, and slightly overlapped characteristics is usually employed. ii) Closed-centre or overlapped. The land width is larger than the port opening. If the overlap is too large, a dead-band results, i.e. a range of spool movement in the null position which produces no flow. This produces undesirable characteristics and can lead to steady-state errors and instability problems.

Page 109: Basic Control Theory-Dr. Hung Nguyen

13

iii) Open-centre or underlapped. The land width is smaller than the port opening. This means that there is continuous flow through the valve, even in the null position, resulting in large power losses. Its main applications is in high-temperature environments, which require a continuous flow of fluid to maintain reasonable fluid temperatures. b) Flapper Valves Flapper valves incorporate a flapper-nozzle arrangement. They are used in low-cost single-stage valves for systems requiring accurate control of small flows. A typical arrangement is illustrated in Figure 4.12.

Figure 4.12 A Dowty single-stage servo-valve Control of flow and pressure in the service line is achieved by altering the position of the diaphragm relative to the nozzle, by application of an electrical input current to the coil. Increasing the nozzle gap causes a reduction in service-port pressure, since the flow to the return line is increased.

Page 110: Basic Control Theory-Dr. Hung Nguyen

14

c) Jet-pipe Valves Jet-pipe valves employ a swivelling-jet arrangement and are only used as the first stage of some two-stage electrohydraulic spool valves. d) Two-stage electrohydraulic servo-valves These are among the most commonly used valves. A typical arrangement is illustrated in Figure 4.13, which shows a Dowty series 4551 “M” range servo-valve. This incorporates a double flapper-nozzle arrangement as the first stage, driving the second-stage pool.

Figure 4.13 A Dowty electrohydraulic servo-valve The flapper of the first-stage hydraulic amplifier is rigidly attached to the mid-point of the armature and is collected by current input to the coil. The flapper passes between two nozzles, forming a double flapper-nozzle arrangement so that, as the flapper is moved, pressure increases at one nozzle while reducing at the other. These two pressures are fed to opposite ends of the main spool, causing it to move. The second stage is a conventional four-way four-land sliding spool valve. A cantilever feedback spring is fixed to the flapper and engages a slot at the centre of the spool. Spool displacement causes a torque in the feedback wire which opposes the original input-signal torque on the armature. Spool movement continues until these two torques are balanced, when the flapper, with the forces acting on it in equilibriums, is restored to its null position between the nozzles.

Page 111: Basic Control Theory-Dr. Hung Nguyen

15

3.3 Hydraulic Actuators The hydraulic servo-valve is used to control the flow of high-pressure fluid to hydraulic actuators. The hydraulic actuator converts the fluid pressure into an output force or torque which is used to move some load. There are two main types of actuator: the rotary and the linear, the later being the most commonly used. Linear actuators are commonly known as rams, cylinders, or jacks, depending on their application. For most applications a double-acting cylinder is required – these have a port on each side of the piston so that the piston rod can be powered in each stroke direction, enabling fine control to be achieved. A typical cylinder design is shown in Figure 4.14.

Figure 4.14 A linear actuator Example Figure 4.15 shows a diagrammatic hydraulic servo-valve/cylinder arrangement. Assuming that the flow through the valve is directly proportional to the valve spool movement, and neglecting leakage and compressibility effects in the cylinder, derive a simple transfer operator for this system.

Figure 4.15 A servo-valve/cylinder arrangement

Supply

Exhaust

xv

Page 112: Basic Control Theory-Dr. Hung Nguyen

16

Referring to Figure 4.15: For the servo-valve: Volumetric flow rate through the valve v ∝ valve spool movement vx vvxKv = (4.14) where Kv = valve characteristic volumetric flow rate to the cylinder v = effective cylinder area × piston velocity

dt

dAv 0θ×= (4.15)

Using s operator (Laplace transform), we have 0Asv θ= (4.16) Substituting for v , we get 0vv AsxK θ= (4.17) Therefore the transfer operator is

AsK

xv

v

0 =θ i.e. an integrator, since = dts1 . (4.18)

3.4 Electrical Elements: D.C. Servo Motors D.C servo-motors have the same operating principle as conventional d.c. motors but have special design features such as high torque and low inertia, achieved by using long small-diameter rotors. Two methods of controlling the motor torque are used: a) field control – Figure 4.16(a) b) armature control – Figure 4.16(b)

Page 113: Basic Control Theory-Dr. Hung Nguyen

17

Figure 4.16 Control of d.c. servo-motors a) Field Control With field control, the armature current is kept approximately constant and the field current is varied by the control signal. Since only small currents are required, this means that the field can be supplied direct from electronic amplifiers, hence the special servo-motors are wound with a split field and are driven by push-pull amplifiers. Most of these systems are damped artificially by means of velocity feedback, which requires a voltage proportional to speed. This is achieved by means of a tachogenerator which is built with the motor in a common unit. Field-controlled d.c. motors are used for low-power systems up to about 1.5kW and have the advantage that the control power is small and the torque produced is directly proportional to the control signal; however, they have a relatively slow speed of response. b) Armature Control With armature control, the field current is varied by the control signal. Considerable development has taken place in the design of this type of motor for use in robot drive systems. A common form in use is the disc armature motor (sometimes called a pancake motor). This consists of a permanent magnet field and a thin disk armature consisting of copper tracks etched or laminated onto a non-metalic surface. These weigh less than conventional iron-core motors giving very good power to weight ratios and hence a fast speed of response. Power outputs in the range 0.1 to 10kW are typical.

(a) Field control (b) Armature control

Page 114: Basic Control Theory-Dr. Hung Nguyen

18

3.5 Electrical Elements: A.C. Servo-motors A.C. servo-motors are usually two-phase induction motors with the two stator coils placed at right angles to each others as shown schematically in Figure 4.17. The current in one coil is kept constant, while the current in the other coil is regulated by an amplified control signal. This arrangement gives a linear torque/control-signal characteristic over a limited working range. They are usually very small low-power motors, up to about 0.25kW.

Figure 4.17 A two-phase a.c. servo-motor As with the d.c. motors in the previous section, servo-motor tachogenerator units are supplied to facilitate the application of velocity feedback. 3.6 Hydraulic Control Element (Steering Gear) Where a flowing liquid is used as the operation medium, this can be generally considered as hydraulic control. Hydraulics is, however, usually concerned with the transmission of power, rather than the transmission of signals. Hydraulic systems enable the transfer of power over large distances with infinitely variable speed control of linear and rotary motions. High static forces or torques can be applied and maintained for long periods by compact equipment. The equipment itself is safe and reliable, and overload or supply failure situations can be safeguarded against. Hydraulic operation of a ship’s steering gear is usual and use is often made of hydraulic equipment for both mooring and carriage handling deck machinery. Hydraulic systems utilize pumps, valves, motors or actuators and various ancillary fittings. The system components can be interconnected in a variety of different circuits. Using their low or medium present oil. Example of a hydraulic control system (Ship Steering Machine)

A.C. reference voltage Fixed

reference windings

Amplified control signal

Motorshaft

Control windings

Page 115: Basic Control Theory-Dr. Hung Nguyen

19

Figure 4.18 Simplified diagram of a two stage hydraulic steering machine 3.7 Pneumatic Control Elements Where a control signal is transmitted by the use of a gas this is generally known as pneumatics. Air is the usual medium and the control signal may be carried by a varying pressure or flow. The variable pressure or flow. The variable pressure signal is most common and will be considered in relation to the devices used. There are principally position-balance or force-balance devices. Position balance relates to the balancing of linkages and lever movements and the nozzle-flapper device is an example. Force balance relates to a balancing of forces and the only true example of this is the stacked controller. Pivoted beams which are moved by bellows and nozzle-flappers are sometimes considered as force-balance devices. Fluidics is the general term for device where the interaction of flows of a medium result in a control signal. Air as a control medium is usually safe to use in hazardous areas, unless oxygen increases the hazard. No return path is required as the air simply leaks away after use. It is freely and readily available although a certain amount of cleaning as well as compressing is required. The signal transmission is slow by comparison with electronics, and the need for compressors and storage vessels is something if a disadvantage. Pneumatic equipment has been extensive applied in marine control systems and is still very popular. Examples of Pneumatic Control Elements Nozzle-flapper The nozzle-flapper arrangement is used in many pneumatic devices and can be considered as a transducer, a valve or an amplifier. It transduces a displacement into a pneumatic signal. The flapper movement acts to close or open a restriction and thus vary air flow through the nozzle. The very small linear movement of the flapper is then converted into a considerable control

port

poil

poil

starboard

Relay operated valves poil

(a)

(b)

(c)

rudder

telemoter steering cylinder floating lever

Page 116: Basic Control Theory-Dr. Hung Nguyen

20

pressure output from the nozzle. The arrangement is shown in Figure 4.19(a). A compressed air supply is provided at a pressure of about 1 bar. The air must pass through an opening which is larger than the orifice, e.g. about 0.40mm. The position of the flapper in relation to the nozzle will determine the amount of air that escapes. If the flapper is close to the nozzle a high controlled pressure will exist; if some distance away, then a low pressure. The characteristic curve relating controlled pressure and nozzle-flapper distance is shown in Figure 4.19(b). The steep, almost linear section of this characteristic is used in the actual operation of the device. The maximum flapper movement is about 20 microns or micrometres in order to provide a fairly linear characteristic. The nozzle-flapper arrangement is therefore a proportional transducer, valve or amplifier. Since the flapper movement is very small it is not directly connected to a measuring unit unless a feedback device is used.

Figure 4.19 Nozzle-flapper mechanism: (a) arrangement; (b) characteristic Bellows The bellows is used in some pneumatic devices to provide feedback and also as a transducer to convert an input pressure signal into a displacement. A simple bellows arrangement is shown in Figure 4.20. The bellows will elongate when the supply pressure increases and some displacement, x, will occur. The displacement will be proportional to the force acting on the base,

Supply air

To control valve, controller, etc

(closed system)

Orifice Nozzle

To measuring unit

Flapper

Nozzle – flapper separation

operating range

Supply pressure

Air

pres

sure

(a)

(b)

Page 117: Basic Control Theory-Dr. Hung Nguyen

21

i.e. supply pressure × area. The actual amount of displacement will be determined by the spring-stiffness of the bellows. Thus

( )ntDisplacemebellowsof

stiffnessSpringbellows

ofAreapressureSupply

×

−=

×

The spring-stiffness and the bellows area are both constants and therefore the bellows is a proportional transducer.

Figure 4.20 Bellows mechanism

In some feedback arrangements a restrictor is fitted to the air supply to the bellows. The effect of this will be to introduce a time delay into the operation of the bellows. This time delay will be related to the size of the restriction and the capacitance of the bellows. In practise it is usual for bellows to be made of brass with a low spring-stiffness and to insert a spring. The displacement may therefore be increased, and also the effects of any pressure variations.

Bellows

Displacement, x

Fixed end

Supply air

Page 118: Basic Control Theory-Dr. Hung Nguyen

22

4. Examples of Control Systems 4.1 Thickness Control System Propose a control system to maintain the thickness of plate produced by the final stand of rollers in a steel rolling mill as shown in Figure 4.21. a) The input will be desired plate thickness and the output will be the actual thickness. b) The required thickness will be set by a dial control incorporating a position transducer which

produces an electrical signal proportional to the desired thickness. The output thickness will have to be measured using a device such as β-ray thickness gauge with amplification to provide a suitable proportional voltage.

c) With two voltage signals, an operational amplifier will be suitable as a comparison element. d) The desired power for moving the nip roller will require hydraulic actuation. e) A power piston regulated by an electro-hydraulic servo-valve will be suitable.

Figure 4.21 Thickness control system 4.2 Level Control System Propose a control system to maintain a fixed fluid level in a tank. The flow is to be regulated on the input side, and the output from the tank is flowing into a process with a variable demand. a) The input will be the desired fluid level and the output the actual level. b) Since the output is a variable level, a capacitive transducer will be suitable.

Electro-hydraulic servo valve

Power piston

β-gauge

Input

Rotary potentiometer

Amplifier

Page 119: Basic Control Theory-Dr. Hung Nguyen

23

c) Since the system is a process type system, a commercial controller will be suitable and the desired level will therefore be a set-point position on the controller. If a pneumatic controller is chosen, the electrical signal from the capacitive level transducer will have to be converted into a pneumatic signal by means of an electro-pneumatic converter.

d) The choice of a pneumatic controller means that the system will be electro-pneumatic. e) A suitable control element will be an air-to-open pneumatically actuated control valve. Figure 4.22 shows a simple arrangement for the level control system.

Figure 4.22 Level control system

SUMMARY OF MODULE 4 Module 4 is summarised as follows:

• General structure of a control system: process, transducer (measurement), recorder, comparison element, controller, final control element blocks;

• Control components including comparison elements and final control elements • Examples of control systems and their components: thickness control system and level

control system.

Electro-pneumatic converter

Capacitive transducer

Set-point level

Pneumatic recorder & controller

Inlet flow Outlet flow

Process control valve

Page 120: Basic Control Theory-Dr. Hung Nguyen

24

Exercises 1. Figure 10.23 shows a d.c. remote position control system:

Figure 10.23 A remote position control system

Figure 10.24 shows a block diagram for the remote position control system, where

Figure 10.24 Block diagram for the remote position control system Kp = potentiometer sensitivity (V/rad)

G = amplifier gain (V/V) Km = motor constant (Nm/V) J = equivalent inertial (kgm2) Kf = equivalent viscous friction (Nms/rad) n = gear ratio

Write the total feedback transfer function for the system. 2. Figure 10.25 shows an arrangement of an industrial heating and cooling system. Analyse the system into its component parts and identify the function of each.

G n1

Input potentiometer

Output )t(θ

Motor system

Kp

Kp

sKJsK

f2

m

++++

Reduction gearbox

Amplifier

Output potentiometer

Input iθ (t)

Error Amplifiers

Input position

Potentiometer

Potentiometer

Output position

D.C. motor

Load

Reduction gearbox

Page 121: Basic Control Theory-Dr. Hung Nguyen

25

Figure 10.25 Air-conditioning system 3. Figure 10.26 shows the arrangement of an electro-hydraulic servo system for manually operating an aerodynamic control surface. a) The input and output resistance potentiometers are transducers for converting linear

displacement into a voltage. b) The differential amplifier is the comparison element generating the error signal. c) The amplifier is the controller producing an amplified error signal. d) The electro-hydraulic servo valve is the control element, controlling the flow of high pressure

oil to the actuator which moves the load.

Figure 10.26 An electro-hydraulic servo system

Recorder & controller

Thermocouple

Cold water

Hot water

Fan

Three way valve

Drain

Potentiometer

Potentiometer

Required motion

Differential amplifier Amplifier

Electro-hydraulicservo valve

Load

Output motion

Feedback

Page 122: Basic Control Theory-Dr. Hung Nguyen

26

( )( ) sKKbsJRsLsKK

3200aa

21

+++

4. Figure 10.27 shows a schematic diagram and a block diagram for a servo system. The objective of this system is to control the position of the mechanical load in accordance with the reference position.

Figure 10.27 Servo system: a) schematic diagram and b) block diagram a) Reduce the block diagram b) Write a total feedback transfer function for the servo system.

K1 ev

Ra La

K1ev ia

r

er ec

c

T θ

c

Input device

Reference input Input potentiometer Output potentiometer

Feedback signal

Error measuring device Amplifier Motor Gear train Load

K0 + _

R(s) E(s) n

Y(s) Ev(s) Θ(s)

(a)

(b)

Page 123: Basic Control Theory-Dr. Hung Nguyen

Lecture Notes

BASIC CONTROL THEORY

Module 5 Control Applications in Marine and Offshore Systems

SEPTEMBER 2005

Prepared by Dr. Hung Nguyen

Page 124: Basic Control Theory-Dr. Hung Nguyen

i

TABLE OF CONTENTS Table of Contents..............................................................................................................................i List of Figures................................................................................................................................ iii List of Tables ..................................................................................................................................iv References .......................................................................................................................................v Objectives .......................................................................................................................................vi 1. Introduction .................................................................................................................................1 2. Pneumatic Control Systems.........................................................................................................1

2.1 Essential Requirements.........................................................................................................1 2.2 Basic Pneumatic Control Systems ........................................................................................2

3. Hydraulic Control Systems..........................................................................................................6 3.1 Hydraulic Servo Valve and Actuator.....................................................................................6 3.2 Applications of Hydraulic Servo Valve.................................................................................7

3.2.1 Speed Control System ...................................................................................................7 3.2.2 Hydraulic Steering Machine..........................................................................................8

4. Electrical and Electronic Control Systems ................................................................................10 4.1 Analogue Control Systems..................................................................................................10 4.2 Digital (Computer-based) Control Systems........................................................................12 4.3 PLCs (Sequence Control Systems) .....................................................................................13

4.3.1 The Processor Unit ......................................................................................................13 4.3.2 The Input/Output Section ............................................................................................14 4.3.3 The Programming Device ...........................................................................................14

5. Ship Autopilot Systems .............................................................................................................15 5.1 Mathematical Foundation for Autopilot Systems ...............................................................15

5.1.1 Autopilots of PID Type ...............................................................................................15 5.1.2 P Control .....................................................................................................................16 5.1.3 PD Control ..................................................................................................................17 5.1.4 PID Control .................................................................................................................18

5.2 Automatic Steering Principles.............................................................................................19 5.2.1 Proportional Control....................................................................................................19 5.2.2 Derivative Control.......................................................................................................21 5.2.3 Integral Control ...........................................................................................................22

5.3 Marine Autopilots in Market...............................................................................................23 5.3.1 Autopilot System PR-6000 (Tokimec) ........................................................................23 5.3.2 Autopilot System PR-2000 (Tokimec) ........................................................................23 5.3.3 Autopilot System PR-1500 (Tomimec) .......................................................................24

6. Dynamic Positioning Systems ...................................................................................................24 6.1 Basic Principles of Dynamic Positioning Systems .............................................................25 6.2 IMO DP Classfications .......................................................................................................27

7. Roll Stabilisation Systems .........................................................................................................28 7.1 Fin Stabilisation Systems....................................................................................................29

Page 125: Basic Control Theory-Dr. Hung Nguyen

ii

7.2 Rudder Roll Stabilisation System .......................................................................................31 8. Trend of Control Systems ..........................................................................................................32 Summary of Module 5...................................................................................................................32 Exercises........................................................................................................................................33

Page 126: Basic Control Theory-Dr. Hung Nguyen

iii

LIST OF FIGURES Figure 5.1.........................................................................................................................................3 Figure 5.2.........................................................................................................................................4 Figure 5.3.........................................................................................................................................5 Figure 5.4.........................................................................................................................................5 Figure 5.5.........................................................................................................................................6 Figure 5.6.........................................................................................................................................7 Figure 5.7.........................................................................................................................................7 Figure 5.8.........................................................................................................................................8 Figure 5.9.........................................................................................................................................9 Figure 5.10.......................................................................................................................................9 Figure 5.11.....................................................................................................................................11 Figure 5.12.....................................................................................................................................11 Figure 5.13.....................................................................................................................................12 Figure 5.14.....................................................................................................................................12 Figure 5.15.....................................................................................................................................13 Figure 5.16.....................................................................................................................................14 Figure 5.17.....................................................................................................................................15 Figure 5.18.....................................................................................................................................15 Figure 5.19.....................................................................................................................................16 Figure 5.20.....................................................................................................................................20 Figure 5.21.....................................................................................................................................21 Figure 5.22.....................................................................................................................................21 Figure 5.23.....................................................................................................................................22 Figure 5.24.....................................................................................................................................22 Figure 5.25.....................................................................................................................................23 Figure 5.26.....................................................................................................................................23 Figure 5.27.....................................................................................................................................24 Figure 5.28.....................................................................................................................................25 Figure 5.29.....................................................................................................................................25 Figure 5.30.....................................................................................................................................26 Figure 5.31.....................................................................................................................................26 Figure 5.32.....................................................................................................................................29 Figure 5.33.....................................................................................................................................30 Figure 5.34.....................................................................................................................................31 Figure 5.35.....................................................................................................................................31

Page 127: Basic Control Theory-Dr. Hung Nguyen

iv

LIST OF TABLES Table 5.1 ........................................................................................................................................27 Table 5.2 ........................................................................................................................................29

Page 128: Basic Control Theory-Dr. Hung Nguyen

v

REFERENCES AMC (unknown year), Lecture Notes on Automation, Australian Maritime College, Launceston Chesmond, C.J. (1990), Basic Control System Technology, Edward Arnold, UK. Fossen, T.I. (1994), Guidance and Control of Ocean Vehicles, John Wiley and Sons, UK. Fossen, T.I. (1994), Marine Control Systems – Guidance, Navigation and Control of Ships, Rigs

and Underwater Vehicles, Marine Cybernetics, Trondheim, Norway. Haslam, J.A., G.R. Summers and D. Williams (1981), Engineering Instrumentation and Control,

Edward Arnold, UK. Kou, Benjamin C. (1995), Automatic Control Systems, Prentice-Hall International Inc., Upper

Saddle River, New Jersey, USA. Nguyen, H.D. (2000), Self-tuning Pole Assignment and Optimal Control Systems for Ships,

Doctoral Thesis, Tokyo University of Mercantile Marine, Tokyo, Japan. Ogata, Katsuhiko (1997), Modern Control Engineering, 3rd Edition, Prentice-Hall International

Inc., Upper Saddle River, New Jersey, USA. Perez, T. (2005), Ship Motion Control – Course Keeping and Roll Stabilisation Using Rudder

and Fins, Springer-Verlag, London. Richards, R.J. (1993), Solving in Control Problems, Longman Group UK Ltd, Harlow, Essex,

UK. Seborg, Dale E., Thomas F. Edgar and Duncan A. Mellichamp (2004), Process Dynamics and

Control, 2nd Edition, John Wiley & Sons, Inc., Hoboken, New Jersey, USA. Taylor, D.A. (1987), Marine Control Practice, Butterworks, UK. Tetley, L. & C. Calcutt (2001), Electronic Navigation System, Butterworths Heinemann, Woburn,

MA.

Page 129: Basic Control Theory-Dr. Hung Nguyen

vi

AIMS

1.0 Explain structures, operating principles of control systems in industries and maritime engineering.

LEARNING OBJECTIVES 1.1 Describe operating principles of pneumatic control systems 1.2 Describe operating principles of hydraulic control systems 1.3 Describe operating principles of electrical and electronic systems including analogue control

systems, digital control systems and programmable logic controllers 1.4 Describe operating principles of autopilot systems for marine vehicles. 1.5 Describe operating principles of dynamic positioning systems 1.6 Describe operating principles of roll stabilisation systems

Page 130: Basic Control Theory-Dr. Hung Nguyen

1

1. Introduction As mentioned in the earlier modules, computer science, high performance programming languages, I/O interface techniques and modern control theories allow very complicated control systems to be designed for different purposes. A modern control system is a combination of pneumatic, hydraulic and electronic elements. The trend of new control systems are computer-based control systems in which the control algorithms are designed in the form of software. Control applications in industries and marine and offshore systems may be as follows:

• Pneumatic control systems • Hydraulic control systems • Electrical and electronic control systems, including analogue, digital control systems

and PLCs (programmable logic controllers) • Surface vessels’ autopilot systems • Manoeuvring, control and ship positioning systems • Engine and machinery control systems • Control systems for underwater vehicles and robotics • Traffic guidance and control systems

In this Module, we deal with pneumatic, hydraulic, and electronic control systems and some control applications in industries and maritime engineering such as ship autopilots, dynamic positioning systems, roll stabilisation systems and so on. 2. Pneumatic Control Systems In previous modules, we dealt with principles of PID pneumatic control systems. This section gives more information about practical sides of pneumatic control systems. 2.1 Essential Requirements a) The air must be free of:

• Oil, • Moisture • Dust.

b) Sources of contamination are • Air intake – dust, oil vapour and water vapour • Compressor – oil, water, carbon wear particles and corrosion products

c) Reduction of contaminants • System design • Correct operation • Regular maintenance

System design: System to be used for control air supply only, preferably of a ring main type and sized to suit number of items of equipment in the circuit. Design features: (a) Compressor discharge pressure should be high enough to prevent condensation and minimise power requirements. Instruments and controllers require a supply of about 1.5 bar whilst some actuators may require 5 bar.

Page 131: Basic Control Theory-Dr. Hung Nguyen

2

Operating at a high discharge pressure and reducing pressure at the instruments helps to dry the air and reduce size of components. (b) Quantity: System should be sized to match maximum expected demand. (i) match future expansion (ii) allow 10% leakage factors (iii) prevent excessive operation of compressors (c) Quality (dryness): Often this is over-emphasized resulting in increased costs. Most instruments will accept as a maximum. (i) 500ppm water vapour (ii) 1ppm solids >| micron (iii) 1gmHC/100m3 Dryness is achieved by (a) siting of air intake (b) sizing of air receiver (c) auto drains (d) sloping lines (e) tapping from top of distribution manifold to instruments (f) drains at low points (g) use of either: (i) Absorbent driers (ii) Refrigerant driers Compressor Types: Governed by the dryness and oil content of the air. Early instruments required totally oil free air, however modern instruments will tolerate some oil. Improvement in filtration systems has allowed use of oil lubricated compressors. Filtration: (a) Coalescing filters (b) Bronze filters (c) Air intake filters Operation/Maintenance:

• Operate compressors at rates discharge pressures. • Check moisture drains regularly. • Filters to be changes at prescribe intervals. • Ensure new instruments are correctly connected. • Site compressor suction in as clean and cry an area as possible. • Ensure automatic driers functioning. • Overhaul at prescribed intervals.

2.2 Basic Pneumatic Control Systems Pneumatic control systems are compressed air to supply energy for the operation of valves, motors, relays and other pneumatic control equipment. Consequently, the circuits consist of air lines. Pneumatic control systems are made up of the following:

1. A source of clean, dry compressed air which is stored in a receiving tank at a pressure capable of supplying all the pneumatic devices in the system with operating energy.

Page 132: Basic Control Theory-Dr. Hung Nguyen

3

Pressure in the receiving tank is normally maintained between 2.5-10bar depending on the system.

2. A pressure reducing station which reduces recurving tank pressure to a normal operating pressure of 1-1.5bar again depending on system requirement.

3. Air lines which can either be copper or polyethylene tubing connect the air supply to the controlling devices (thermostats and other controllers). These air lines are called “mains”.

4. Controlling instruments such as thermostats, humidistats and pressure controllers are used to position the control valves.

5. Intermediate devices such as relays and switches. 6. Air lines leading from the controlling devices to the controlled devices. These air lines

are called “branch lines”. 7. Controlled devices such as valves or damper actuators. These can either be called

operators or actuators. A typical application of a pneumatic process controller is shown in Figure 5.1. The function of the controller is to open and close the control valve so as to manipulate the inflow rate, in the presence of fluctuations in outflow rate. It does this in order that the liquid level in the tank, as measured by the transducer, shall match as closely as possible the desired value, as determined by the manually adjusted set point.

Figure 5.1 Scheme and block diagrams for closed loop control of liquid level in a vessel, using a pneumatic process controller.

SCHEMATIC DIAGRAM

BLOCK DIAGRAM

CONTROLLER CONTROL LAW

VALVE & POSITIONER

PLANT PROCESS

REFERENCE TRANSDUCER SENSITIVITY

LEVEL TRANSDUCER measured level (process

variable) signal actual level

outflow rateinflow rate

set point = desired level

level referencesignal level error

signal

LEVEL CONTROLLER

controlleroutput

VALVE POSITIONER

CONTROL VALVE

SET POINT KNOB

LEVEL CONTROLLER

LEVELTRANSDUCER

outflowrate

measured level signal

manipulated inflow rate

Page 133: Basic Control Theory-Dr. Hung Nguyen

4

The functions of the pneumatic controller are:

• To enable the set point signal to be generated • To receive the feedback signal representing the measured level • To generate an error signal by comparing the above two signals • To amplify the error signal and to incorporate dynamic terms, in generating the

controller output signal. The control law can incorporate one or more of the terms known as proportional action, integral action, and derivative action which have been described in Module 3. Figure 5.2 shows a symbolic representation of a controller containing only proportional action (P Controller). In practice, the PV and set point bellows may be coupled (differentially) to the flapper through fairly complex linkage arrangements. The flapper-nozzle amplifier and its out put pressure responds, nonlinearly, to minute changes in flapper displacement. The air relay behaves as a unity follower, so that its output pressure tracks the amplifier output pressure, but with significant increase in volumetric flow capacity. The feedback bellows completes a high gain negative feedback loop, and equilibrium is established by a force balance at the flapper. Thus, the controller output pressure is proportional to the difference between the set point and process variable pressures. The constant of proportionality may be adjusted by manually changing the moment arm ratios of linkages (not shown) which couple the feedback bellows to the flapper.

Figure 5.2 Symbolic representation of a pneumatic process controller incorporating only proportional action

AIR RELAY

FEEDBACK BELLOWS

SET POINT BELLOWS PV BELLOWS

flapper feedback displacement ∝ output pressure

supply air

supply air

FLAPPER-NOZZLEAMPLIFIER

process variable pressure

flapper input displacement ∝ (set point pressure – PV pressure)

set point pressure

controller output pressure

Page 134: Basic Control Theory-Dr. Hung Nguyen

5

Integral action may be incorporated by adding a series connected combination of variable restriction and (integral action) bellows in the feedback path, as shown in Figure 5.3. The restriction is analogous to a variable resistor and the bellows is analogous to a capacitor, so that adjustment of the restriction will cause the integral action time constant to be ‘tuned’. If a second, variable (derivative) restriction is added at point X in Figure 5.3, in series with the proportional action bellows, adjustment of this restriction will cause the derivative action time constant to be tuned.

Figure 5.3 Symbolic representation of a pneumatic process controller incorporating proportional and integral action

Figure 5.4 shows the faceplate of a typical pneumatic indicating process controller, and the features shown are common to all general purpose analog process controllers.

Figure 5.4 Faceplate of a typical pneumatic process controller showing instrument displays and manual controls

AIR RELAY

PROPORTIONAL ACTION BELLOWS

SET POINT BELLOWS PV BELLOWS

supply air

supply air

FLAPPER-NOZZLE AMPLIFIER

process variable pressure

flapper input displacement

set point pressure

controller output pressure

INTEGRAL ACTION BELLOWS

VARIABLE RESTRICTION

1000 %

90

40

50

60

70

80

KNOB TO CONTROL THE CONTROLLER OUTPUT DIRECTLY, IN THE MANUAL MODE

SET POINT (SCALE) ADJUSTMENT KNOB

FIXED SET POINT MARKER

AUTO-MANUAL MODE CHANGEOVER SWITCH

CONTROLLER OUTPUT INDICATOR

MOVING DEVIATION INDICATOR

percentage deviation (deviation = process variable – set point)

Page 135: Basic Control Theory-Dr. Hung Nguyen

6

3 Hydraulic Control Systems 3.1 Hydraulic Servo Valve and Actuator Purely hydraulic controllers are really a controller-actuator combination. Their input signal is a physical displacement that alters a servo valve.

Figure 5.5 Hydraulic servo valve and actuator When the spool of the servo valve is exactly central, the supply of hydraulic oil is prevented from reaching the actuator piston. The piston is held in place by the oil trapped between it and the servo valve spool. If the link then receives an input force, it moves and oil under pressure flows through the servo valve. This oil exerts a force on the actuator piston, making it move. Movement of the actuator rod causes the link to move at Y. The link pivots about X and moves at point P. The movement at P represents negative feedback. For example, an initial upward movement at X admits oil into the upper half of the actuator, forcing the piston down. This counters the initial movement at X. For any given input (X), a new position of equilibrium (Y) is rapidly reached. The lengths a and b determine the amount of negative feedback and the relationship of Y to X. Ideally, this controller has a first-order characteristic equation. Thus, theoretically, it cannot oscillate. In practice, however, the compressibility of the oil and mass of the piston-oil introduce a second-order (inertial) term.

LOAD

P

ba

Y X

Drain

Drain

Fluid supply

Input movements Output movements

Actuator

Servo valve

Page 136: Basic Control Theory-Dr. Hung Nguyen

7

This gives the possibility of an oscillatory response to step changes in input. The inherent damping (friction and leakage) ensures that any oscillation dies away. But additional damping (usually of the dashpot or vane type) may be necessary to prevent excessive overshoot and long settling time. 3.2 Applications of Hydraulic Servo Valve 3.2.1 Speed Control System Let’s consider a speed control system as shown in Figure 5.6. If the engine speed increase, the sleeve of the fly-ball governor moves upward. This movement acts as the input to the hydraulic controller. A positive error signal (upward motion of the sleeve) causes the power piston to move downward, reduces the fuel-valve opening, and decrease the engine speed. A block diagram for the system is shown in Figure 5.7.

Figure 5.6 Speed control system

Figure 5.7 Block diagram for the speed control system in Figure 5.6

Oil under pressure

k

b

Engine

z

y

e

ω

a2 a1

sK

21

1

aaa+

E(s) Output Y(s)

21

2

aaa+

kbsbs+

Z(s)

Page 137: Basic Control Theory-Dr. Hung Nguyen

8

If the flowing condition applies

1sK

kbsbs

aaa

21

1 >>++

(5.1)

the transfer function Y(s)/E(s) becomes

)s(E)s(Y =

bskbs

aaa

aaa

1

21

21

2 +++

=

+bsk1

aa

1

2 (5.2)

The speed controller is of the proportional and integral (PI) control. 3.2.2 Hydraulic Steering Machine Hydraulic servo valve is applied in the rudder handling system. Figure 5.8 shows a hydraulic steering machine. The ship actuator or the steering machine is usually controlled by an on-off rudder control system. The on-off signals from the rudder controller are used to open and close the port and starboard valves of the telemotor system.

Figure 5.8 Simplified diagram of a two-stage hydraulic steering machine Assume that both the telemotor and floating lever are initially at rest in position (a). The telemotor can be moved to position (b) by opening the port valve. Suppose that the rudder is still in its original position corresponding to position (b); this will cause the steering cylinder valve to open. Consequently, the floating lever will move to position (c) when the desired rudder angle has been reached. The maximum opening of the steering cylinder valve, together with the pump capacity, determines the maximum rudder speed. Figure 5.9 shows a block diagram of the steering machine with its dynamics. Amerogen (1982) suggested a simplified steering machine for rudder as shown in Figure 5.10. This representation is based on the telemotor being much faster than the main servo and that the time constant Td is of minor importance compared with the influence of the rudder speed.

port

poil

poil

starboard

Relay operated valves poil

(a)

(b)

(c)

rudder

telemotersteering cylinder floating lever

Page 138: Basic Control Theory-Dr. Hung Nguyen

9

Figure 5.9 Simplified diagram of the hydraulic steering machine

Figure 5.10 Simplified diagram of the hydraulic steering machine Generally, the rudder angle and rudder rate limiters in Figure 5.10 will typically be in the ranges:

35max =δ degrees 7)s(deg/312 max <δ≤ (deg/s) (5.3)

for most of commercial ships. The requirement for minimum average rudder rate is specified by the classification societies such as American Bureau Shipping (ABS), Det norske Verits (DnV), Lloyds, etc. It is required that the rudder can be moved from 35 degrees port to 35 degrees starboard within 30 seconds. Fossen reported that according to Eda and Crane (1965) the minimum design rudder rate in dimensional terms should satisfy: 9.132min =δ (U/L) (deg/s) (5.4) where U is the ship speed in m/s and L is the ship length in m. Recently, much faster steering machine have been designed with rudder speeds up to 15-20 (deg/s). A rudder speed of 5-20 (deg/s) is usually required for a rudder-roll stabilisation (RRS) system to work properly. Another model of the rudder could be

( )( )( )( )( )( )

≥δ−δ∆δ−δ−δ−

≥δ−δ∆δ−δ−−δ=δ

0if/exp1

0if/exp1

ccmax

ccmax

(5.5)

The parameter ∆ will depend on the moment of inertia of the rudder. Typical values will be in the range 103 ≤∆≤ .

s1

δc δ δmax δ max

from autopilot

rudder limiter

rudder rate limiter

)sT1(sK

f+

δc δ δmax

main servo telemotor system

Rudder control algorithm

Angle transducer

rudder servo

)sT1(s

K

d+

Angle transducer

Page 139: Basic Control Theory-Dr. Hung Nguyen

10

In Japan, the MMG (Mathematical Model Group) suggested the following steering machine:

aTrudc

c

+δ−δδ−δ

=δ (5.6)

where Trud is the time constant of rudder (seconds) and a is a constant used to avoid zero-dividing. 4 Electrical and Electronic Control Systems In earlier modules, we have dealt with very basic principles of PID electrical and electronic control systems. Generally electrical and electronic control systems can be categorised into three types: 1) analogue control systems; 2) digital (or discrete) control systems; and 3) programmable logic controllers (PLCs). This section will outline three types of electrical and electronic control systems. 4.1 Analogue Control Systems The control system is interconnected using current or voltage signals. There is no standard range. Typical common ranges are:

Current: 4-20mA, 10-50mA Voltage : 0-10V, 1-5V, -5V-+5V, -10V-+10V

The tendency is to use 4-20mA in the loop since the elevated zero (range) means fault findings is easier and the current loop is less prone to signal noise. Electronic controllers are most sensitive, have wider adjustment ranges on PI and D actions, but often require signal conversion to pneumatic at the final control element. Figure 5.11 illustrates a three-term controller with separate sections. The controller consists of comparator circuit, proportional controller (P-action), integrator (I-action), and defferentiator (D-action) and power amplifier. Figure 5.12 and Figure 5.13 illustrate an application of PID controller into a flow control system at the Australian Maritime College. In this system, the PID controller plays role as a comparison element and controller in which the controlling signal is computed. To operate the whole control system, it is necessary for user to set control gains (including proportional control gain, integral gain (or integral time) and derivative gain (or derivative).

Sensor

(Feedback signal)

Setpoint

Comparator circuit

Actuating error

Integrator Integrator Proportional gain

Page 140: Basic Control Theory-Dr. Hung Nguyen

11

Figure 5.11 Three-term controller with separate sections

Figure 5.12 The flow control bench system arrangement (Control Engineering Lab, AMC)

Controller C/P Converter Actuator

Rot

amet

er

D/P Cell

Water tank

R

Controller

Globe valve

Valve (Closed)

Control valve

kPa

mA

Valve (Closed)

Orifice plate

D/P Cell 4-20mA

250 Ω

Square RootCircuit

DC 24V

Bailey Controller

PUMP

Page 141: Basic Control Theory-Dr. Hung Nguyen

12

Figure 5.13 Connection diagram of the flow control bench system (Control Engineering Lab, AMC)

4.2 Digital (Computer-based) Control Systems Nowadays computers have been used in many control systems. The microprocessor based control systems allow user to configure set point variables and a range of subsidiary functions by means of a keyboard, and display control variable digitally by various indicators. Input signals can be digital or analogue and can be linearised as required. Some controllers will accept multiple inputs at the same time, allowing improved control as in gas flow.

• Output signals is by user specification, either • Solid state or mechanical relay digital, or 4-20mA analogue.

Computer interfacing by using optional boards (I/O (A/D-D/A) interface boards) allows computer supervisory control. Figure 5.14 shows a computer-based (digital) control system with I/G interfaces.

Figure 5.14 Digital control system using computer (software) and I/O interfaces Figure 5.15 shows the block diagram of a computer-based (digital) autopilot system using a recursive estimation algorithm in combination with the optimal control law (Nguyen, H.D., 2000).

Computer (Control

Software)

DAC

ADC

PROCESS

Final Control

Measurement

I/O Interfaces

Page 142: Basic Control Theory-Dr. Hung Nguyen

13

4.3 PLCs (Sequence Control Systems) PLC stands for Programmable Logic Controller. The first PLC was developed in 1968-1969. The PLC has become an unqualified success. PLCs are now produced by over 50 manufacturers. Varying in size and sophistication, these electronic marvels are rapidly replacing the hard-wired circuits that have controlled the process machines and driven equipment of industry in the past. This section outlines operating principles of a PLC. A programmable logic controller is a solid state device designed to perform the logic functions previously accomplished by electro-mechanical relays, drum switches, mechanical timers/counters, etc. for the control and operation of manufacturing process equipment and machinery. A typical PLC consists of three components. These components are the processor unit, the input/output section (I/O interface) and the programming device. 4.3.1 The Processor Unit (CPU) The processor unit houses the processor which is the ‘brain’ of the system. This brain is a microprocessor-based system which replaces control relays, counters, timers, sequencers, and so forth and is designed so the user can enter the desired circuit in relay ladder logic. The processor then makes all the decisions necessary to carry out the user program for control of a machine or process. It can also perform arithmetic functions, data manipulation and communication between the PC, remotely located PC’s, and/or computer systems. A DC power supply is required to produce the low level DC voltage used by the processor. This power supply can be housed in the processor unit or may be a separately mounted unit depending on the model and/or the manufacturer. The processor can be referred to as a CPU (Central Processing Unit). 4.3.2 The Input/output Section

Autopilot u(t) = -Kx(t)

Steering machine

Ship (Shioji Maru)

Noises

RPE Estimator

Outputs

Feedback

Set

State space model (F,G)

Riccati equation

Optimal calculator

Figure 5.15 Block diagram of a computer-based autopilot system

State feedback control gain

δδδδ tδδδδ

Computing unit (computer)

Dynamic systemDesign settings

θθθθ

K

Page 143: Basic Control Theory-Dr. Hung Nguyen

14

Input/output Section (see Figure 5.7b) CPU and

Programming device

The input/output section consists of input modules and output modules for communication with peripherals (real world devices). The real world input devices may be pushbuttons, limit switches, analogue sensors, selector switches and so on, while the real world output devices could be hard wired to motor starters, solenoid valves, indicator lights, position valves, and the like. 4.3.3 The Programming Device The programming device may be called an industrial terminal, program development terminal, programming panel or simply programmer. Regardless of their names, they all perform the same function and are used to enter the desired program in relay ladder logic that will determine the sequence of operation and ultimate control of the process equipment or driven machinery. The programming device may be a hand held unit with an LED (light emitting diode) display, an LCD (liquid crystal display), a desktop type with a CRT display or other compatible computer terminals.

Figure 5.16 (a) Conceptual structure of a PLC-based control system; (b) Mitsubishi PLC (input/output section)

There are several types of PLC. Each type has its own features. Figure 5.17 shows an example of a PLC-based control system (AMC Control Lab). The PLC is Mitsubishi MELSEC FXon-24MR-ES. The CPU is Pentium 4 with Windows XP.

Output devices

Input Gates

Output lines

Input lines

CPU Programming

device

Switches Sensors Etc.

Motors Relays Lamps Etc.

(a)

(b)

Page 144: Basic Control Theory-Dr. Hung Nguyen

15

Peripherals

Figure 5.7 Mitsubishi PLC-based Control System (AMC Control Lab) 5. Ship Autopilot Systems 5.1 Mathematic Foundation for Autopilot Systems Autopilots for course-keeping are normally based on feedback from a gyrocompass measuring the heading. Heading rate measurements can be obtained by a rate sensor, gyro, numerical differentiation of the heading measurement or a state estimator. This is common practice in most control laws utilizing proportional, derivative and integral action. The control objective for a course-keeping autopilot can be expressed as dψ = constant. This control objective is illustrated in Figure 5.18. On the contrary, course-changing manoeuvres suggest that the dynamics of the desired heading should be considered in addition.

Figure 5.18 Autopilot for automatic heading 5.1.1 Autopilots of PID-Type Most autopilots for ship steering are based on simple PID-control laws with fixed parameters. To avoid that the performance of the autopilot deteriorating in bad weather and when the speed of the ship changes, HF rudder motions must be suppressed by proper wave filtering, while a gain scheduling technique can be applied to remove the influence of the ship speed on the hydrodynamic parameters. For simplicity, let the LF motion of a ship be described by Nomoto’s 1st-order model: δ=ψ+ψ KT (5.8)

Steering Machine SHIP

Waves, wind & current

PID-typed Autopilot

dψ cδ δ ψ

Page 145: Basic Control Theory-Dr. Hung Nguyen

16

Based on this simple model the control laws of P, PD-, and PID-type using feedback from the LF state estimates will be discussed. The performance and robustness of the autopilot can be evaluated by using the simulation set-up showed in Figure 5.19. The proposed simulator models 1st-order wave disturbances as measurement noise while wave drift forces, wind and sea currents are treated as a constant disturbance.

Figure 5.19 Simplified simulation set-up for course-keeping autopilot 5.1.2 P-control Let us first consider a proportional control law: ( )ψ−ψ=δ dPK (5.9) where 0KP > is a regulator design parameter. Substitution of (5.9) into (5.8), yields the closed-loop dynamics: dPP KKKKT ψ=ψ+ψ+ψ (5.10) From this expression the eigenvalues are found to be:

T2

TKK411 P2,1

−±−=λ (5.11)

Since, 0TKK41 P <− for most ships, it is seen that the real part of the eigenvalues are given as:

KW

2nω

n2ζω

K Steering Machine

Autopilot cδ cδdψ

Ship (Nomoto’s 1st-order model)

Wave drift Wind & current

Whitenoise

w

1st-order wave disturbance

ψLψ

Page 146: Basic Control Theory-Dr. Hung Nguyen

17

T21Re 2,1 −=λ (5.12)

Consequently, the suggested P-controller will not stabilize an open-loop unstable ship (T < 0). For stable ships (T > 0) the imaginary part of the closed-loop eigenvalues and thus the oscillatory motion can be modified by adjusting the regulator gain KP. For instance, a critically damped system is obtained by choosing:

TK41K P = (5.13)

5.1.3 PD-control Since, the use of a P-controller is restricted to open-loop stable ships with a certain degree of stability, another approach has to be used for marginally stable and unstable ships. A stabilizing control law is obtained by simply including derivative action in the control law. Consider a control law of PD-type in the form: ( ) ψ−ψ−ψ=δ DdP KK (5.14) Here KP > 0 and KD > 0 are the controller design parameters. The closed-loop dynamics resulting from the ship dynamics and the PD-controller are: ( ) dPPD KKKKKK1T ψ=ψ+ψ++ψ (5.15) This expression simply corresponds to a 2nd-order system in the form: d

2n

2nn2 ψψ=ψω+ψζω+ψ (5.16)

with natural frequency nω (rad/s) and relative damping ratio ζ . Combining (5.15) and (5.16) yields:

T

KKPn =ω and

P

D

TKK2KK1+=ζ (5.17)

The relative damping ratio is typically chosen in the interval 0.8 ≤ ζ ≤ 1.0, whereas the choice of nω will be limited by the resulting bandwidth of the rudder δω (rad/s) and the ship dynamics 1/T (rad/s) according to:

T1 < 24421 24

2n +ζ−ζζ−ω < δω (5.18)

ship dynamics closed-loop bandwidth rudder servo

Page 147: Basic Control Theory-Dr. Hung Nguyen

18

For a critically damped ship ( 1=ζ ) the closed-loop bandwidth bω is related to the natural frequency nω of the closed-loop system (5.17) by a factor of 0.64, that is nb 64.0 ω=ω . Alternatively, we can solve (5.10) for KP and KD which yield:

K

TK2n

Pω=

K1T2K n

D−ζω= (5.19)

Here nω and ζ can be treated as design parameters. 5.1.4 PID-Control During autopilot control of a ship it is observed that a rudder off-set is required to maintain the ship on constant course. The reason for this is a yaw moment caused by the rotating propeller and the slowly-varying environmental disturbances. These are wave drift forces (2nd-order wave disturbances) and LF components of wind and sea currents. However, steady-state errors due to wind, current and wave drift can all be compensated for by adding integral action to the control law. Consider the PID-control law:

( ) ( )( ) ττψ−ψ+ψ−ψ−ψ=δt

odIDdP dKKK (5.20)

where KP > 0, KD > 0 and KI > 0 are the regulator design parameters. Applying this control law to Nomoto’s 1st-order model: ( )0KT δ−δ=ψ+ψ (5.21) where 0δ is the steady-state rudder off-set, yields the following closed-loop characteristic equation ( ) 0KKKKKK1T IP

2D

3 =+σ+σ++σ (5.22) Hence the triple (KP, KD, KI) must be chosen such that all the roots of this 3rd-order polynomial become negative, that is 0Re i <σ for (i = 1, 2, 3) (5.23) This can be done by applying Routh’s stability criterion. Another simple intuitive way to do this is by noticing that δ can be written as:

( )ψ−ψ

++=δ d

IDP sT

1sT1K (5.24)

where the derivative and integral time constants are TD = KD/KP and TI = KP/KI, respectively. Hence, integral action can be obtained by first designing the PD-controller gains KD and KP according to the previous discussions. This ensures that sufficient stability is obtained. The

Page 148: Basic Control Theory-Dr. Hung Nguyen

19

next step is to include integral action by adjusting the integral gain KI. A rule of thumb can be to choose:

10T

1 n

I

ω≈ (5.25)

which suggests that KI should be chosen as:

KT

10K

10K

3n

Pn

Iω=ω= (5.26)

Now let’s consider some practical aspects of designing an autopilot system. 5.2 Automatic Steering Principles Whatever type of system is fitted to a ship, the basic principles of operation remain the same. Before considering the electronic aspects of an automatic steering system it is worthwhile considering some of the problems faced by an automatic steering device. In its simplest form an autopilot system compares the course-to-steer data, as set by the helmsman, with the vessel’s actual course data derived from a gyro or magnetic repeating compass, and applies rudder correction to compensate for any error detected between the two input signals. Since the vessel’s steering characteristics will vary under a variety of conditions, additional facilities must be provided to alter the action of the autopilot parameters in a similar way that a helmsman would alter his actions under the same prevailing conditions. For a vessel to hold a course as accurately as possible, the helm must be provided with data regarding the vessel’s movement relative to the course to steer line. “Feedback” signals provide this data consisting of three sets of parameters.

• Position data: information providing positional error from the course line • Rate data: rate of change of course data • Accumulative error data: data regarding the cumulative build-up of error.

Three main control functions acting under the influence of one or more of the data inputs listed above are: proportional control, derivative control and integral control. 5.2.1 Proportional Control This electronic control signal causes the rudder to move by an amount proportional to the positional error deviated from the course line. The effect on steering, when only proportional control is applied, is to cause the vessel to oscillate either side of the required course, as shown in Figure 5.20. The vessel would eventually reach its destination although the erratic course steered would give rise to an increase in fuel expended on the voyage. Efficiency would be downgraded and rudder component wear would be unacceptable.

Page 149: Basic Control Theory-Dr. Hung Nguyen

20

Figure 5.20 An early electro-mechanical autopilot system using telemotors

(Tetley L. et al. 2001)

Page 150: Basic Control Theory-Dr. Hung Nguyen

21

At the instant an error is detected, full rudder is applied, bringing the vessel to starboard and back towards its course (Figure 5.21). As the vessel returns, the error is reduced and autopilot control is gradually removed. Unfortunately the rudder will be amidships as the vessel approaches its course causing the vessel resulting in a southerly error. Corrective data is now applied causing a port turn to bring the vessel back onto course. This action again causes an overshoot, producing corrective data to initiate a starboard turn in an attempt to bring the vessel back to its original course. It is not practical to calculate the actual distance of the vessel from the course line at any instant. Therefore, the method of achieving proportional control is by using a signal proportional to the rudder angle as a feedback signal.

Figure 5.21 The effect of applying proportional control only. The vessel oscillates about the course to steer 5.2.2 Derivative Control With this form of control, the rudder is shifted by an amount proportional to the “rate-of-change” of the vessel’s deviation from its course. Derivative control is achieved by electronically differentiating the actual error signal. Its effect on the vessel’s course is shown in Figure 5.22.

Figure 5.22 The effect of applying derivative control only Any initial change of course error is sensed causing a corrective starboard rudder command to be applied. The rate-of-change decreases with the result that automatic rudder control decreases and, at point X, the rudder returns to the midships position. The vessel is now making good a course parallel to the required heading and will continue to do so until the autopilot is again caused to operate by external forces acting on the vessel.

Page 151: Basic Control Theory-Dr. Hung Nguyen

22

An ideal combination of both proportional and derivative control produces a more satisfactory return to course, as shown in Figure 5.23. Figure 5.23 Applying a combination of proportional and derivative control brings the vessel

back to on track. The initial change of course causes the rudder to be controlled by a combined signal from both proportional and derivative signals. As the vessel undergoes a starboard turn (caused by proportional control only) there is a change of sign of the rate of change data causing some counter rudder to be applied. When the vessel crosses its original course, the rudder is to port, at some angle, bringing the vessel back to port. The course followed by the vessel is therefore a damped oscillation. The extent of counter rudder control applied is made variable to allow for different vessel characteristics. Correct setting of the counter rudder control should cause the vessel to make good its original course. Counter rudder data must always be applied in conjunction with the output of the manual “rudder” potentiometer, which varies the amount of rudder control applied per degree of heading error. Figure 5.24 (a) If “counter rudder” and “rudder” controls are set too high, severe oscillations are produced before the equipment settles. (b) If “counter rudder” and “rudder” controls are set too low, there will be little overshoot and sluggish return to the course. Figure 5.24(a) and (b) show the effect on vessel steering when the counter rudder and rudder controls are set too high and too low, respectively. 5.2.3 Integral Control Data for integral control is derived by electronically integrating the heading error. The action of this data offsets the effect of a vessel being moved continuously off course. Data signals are produced by continuously sensing the heading error over a period of time and applying an appropriate degree of permanent helm.

Page 152: Basic Control Theory-Dr. Hung Nguyen

23

Figure 5.26 Autopilot system PR-2000 Courtesy of Tokimec Co. Ltd. (Japan)

In addition to proportional control, derivative control and integral control, autopilots normally have the yaw, trim, draft, rudder limit, and weather controls. 5.3 Marine Autopilots in Market The marine autopilot receives signals from directional sensors such as the gyrocompass and uses them to automatically control the helm for navigation. The history of the TOKIMEC marine autopilots dates back to 1925 with the development of the P1 single pilot and the P2 single pilot. Later TOKIMEC integrated the gyrocompass into the autopilot unit ("GYLOT") and also developed the "Navigation Console" with radar and other navigational instruments all built in. The performance and reliability of these products obtained the overwhelming support of the marine market. Today, TOKIMEC offers the following series of autopilots.

PR-6000 For medium to large vesselsPR-2000 For small to medium vesselsPR-1500 For small craft

5.3.1 Autopilot System PR-6000 This high-grade autopilot model was designed with three fundamental concepts in mind: expanding and strengthening helm functions, thorough safety considerations, and improved reliability and more intelligent maintenance functions.

• IBS (Integrated Bridge System) compatibility • Improved interface • Complete range of controls • Compatible with a variety of steering systems • Safety considerations designed in • Standard compatibility with digital output gyros

5.3.2 Autopilot system PR-2000 This best-selling model has been installed in over 15,000 small and medium vessels including fishing boats, coastal craft, and merchant ships, and is renowned for its stable performance and ease of use.

• Designed for operational simplicity • More affordable, with improved course holding ability • Variety of system configurations (stand-alone model,

GYLOT model, console model) • Compatible with a variety of steering systems

Figure 5.25 Autopilot system PR-6000 Courtesy of Tokimec Co. Ltd. (Japan)

Page 153: Basic Control Theory-Dr. Hung Nguyen

24

5.3.3 Autopilot system PR-1500 Features of PR-1500 are as follows: High-grade Functions; Easy to Operate Wide range of automatic steering modes

• Work mode augments the conventional automatic steering function: Work mode is used under operational conditions which differ from normal operation - such as trawling and slow speeds, etc.

• Automatic navigation mode is standard feature: Standard NMEA interface simplifies connections with GPS navigators or plotters.

Easy steering and easy-to-view display • Remote Azimuth Holding is standard feature: Remote Azimuth Holding can be

initiated during remote steering. When the vessel is turned on a planned course by remote steering with the RAH switch activated and remote controller dial returned to the neutral position, the course setting can be stored in memory.

• Evasive steering (Override function) standard feature: NFU steering can be employed in any of the steering modes.

• Total information display: The large size LCD provides a comprehensive display of data such as ship's heading, set course, rudder angle, and control constants.

• Self-diagnostic function simplifies maintenance: Internal checks of main functions can be performed at the front panel.

6. Dynamic Positioning Systems In the 1960s systems for automatic control of the horizontal position, in addition to the course, were developed. Systems for the simultaneous control of the three horizontal motions (surge, sway and yaw) are today commonly known as dynamic positioning (DP) system. More recently anchored positioning systems or position mooring (PM) systems have been designed. For a free floating vessel in DP the thrusters are the prime actuators for station-keeping, while for the PM system the assistance of thrusters are only complementary since most of the position keeping is provided by a deployed anchor system.

Figure 5.27 Autopilot system PR-1500 Courtesy of Tokimec Co. Ltd. (Japan)

Page 154: Basic Control Theory-Dr. Hung Nguyen

25

DP systems have traditionally been a low-passed application, where the basic DP functionality is either to keep a fixed position and heading or to move slowly from one to another location. In addition, specialized tracking functions for cables and pipe-layers, and operations of remotely operated vehicles (ROVs), have been included. The traditional autopilot and way-point tracking functionalities have also been included in modern DP systems. The trend today is that high-speed operation functionality merges with classical DP functionality, resulting in a unified system for all speed ranges and types of operations. Figure 5.28 DPS manufactured by Kawasaki Heavy Industries Co. Ltd.

The first DP systems were designed using conventional PID controllers in cascade with low pass and/or notch filters to suppress the wave-induced motion component. Figure 5.28 shows an illustration of a DP system (the control console unit) developed by Kawasaki Heavy Industries Co. Ltd., Japan. Figure 5.29 shows a conceptual diagram of a DPS.

Figure 5.29 Conceptual diagram of a DPS 6.1 Basic Principles of Dynamic Positioning System The basic forces and moments act on a vessel operated in seawater as shown in Figure 5.30. Ship steering dynamics is represented by an appropriate state space model as follows. BuAxx += (5.27) DuCxy += (5.28) where x and u are the vector of state variables and the vector of control variables, respectively, y is the vector of outputs and A, B, C and D are the matrices consisting of parameters (coefficients).

Steering Machine (rudder controller)

Slave ManeuveringUnit

Gyrocompass (Course)

Indicators (Monitors) Course Ship speed Position Rudder angle Pitch angle Revolution Wind direction Wind speed

DPS (Advanced

Technology)

GPS/GNSS D-GPS (Position)

Barometer (Wind D & S)

Log & Sounder (Speed, depth)

CPP Controller (Pitch)

Propeller Controller

Side Thruster Controller

Page 155: Basic Control Theory-Dr. Hung Nguyen

26

In order to obtain the values of state variables and parameters, many measuring techniques, filtering and identification procedures are applied. An example of the filtering procedure is Kalman filter. In order to compute the control signals for the DPS, a control law with a criterion function is applied. For examples, PID control or optimal control has been applied in the DPS. Figure 5.31 shows a block diagram of a DPS. Interested readers can find more information about the DPSs in Fossen (1994) and Fossen (2002).

Figure 5.30 Basic forces and moments (Kongsberg Maritime)

Figure 5.31 Dynamic positioning system Example: an optimal control algorithm (H. Nguyen, 2000) In order to design an optimal control system (e.g. autopilot system or DPS), in general, it is assumed that the ship to be controlled is described by a discrete-time state space (matrix) model as follows.

)t()()t(

)t()()t()()1t(xCy

uGxFxθθθθ

θθθθθθθθ=

+=+ (5.29)

where x(t) is the vector of state variables, u(t) is the vector of control variables, and F( θθθθ ), G( θθθθ ) and C( θθθθ ) are matrices formed by estimated parameters. The linear optimal control law is to minimize the quadratic cost function (JO)

D/RTK-GPSCompass

Control system(DPS)

1st-order wave disturbance

Environmental loads due to wind, wave and currents

Positioning heading

Low-frequency estimates of position, heading, velocities and biases Observer +

wave filter

Reference computation

Page 156: Basic Control Theory-Dr. Hung Nguyen

27

[ ]−

=

+=1M

0t

TTO )t()t()t()t(J RuuQεεεεεεεε 5.30)

where Q and R are weighting matrices (symmetric and positive definite matrices) weighting the cost of heading errors against the control effort, )t(εεεε is the ship heading error and u(t) is the rudder angle. It should be noted that the system (5.29) could be an MIMO ARX (Auto-Regressive eXogenous) model, which could be transformed into a state space model as in (5.29). The solution to this problem can be found by applying the R. Bellman’s Principle of Optimality: “An optimal policy, or optimal control strategy, has the property that, whatever the initial state decision, the remaining decision must form an optimal control strategy with respect to the state resulting from the first decision.” Minimizing the cost function leads to finding solution of the following discrete-time matrix Riccati equation, and then the control signals can be calculated by the following expression. )t()t( Kxu −= (5.31) where K is the state feedback control gain resulting from the solution of the Riccati equation. Interested readers can find more information about optimal control in H. Nguyen (2000), Forsen (1994) and Fossen (2002) and therein references. 6.2 IMO DP-Classifications Dynamic positioning systems are classified by IMO as shown in Table 5.1.

Table 5.1 Classifications of DPS according to IMO

IMO Corresponding Class Notations (Manufacturers) Description

DP Class ABS LRS DNV

Manual position control and automatic heading control under specified maximum environmental conditions

- DPS-0 DP (CM) DNV-T

Automatic and manual position and heading control under specified maximum environmental conditions

Class 1 DPS-1 DP (AM) DNV-AUT DNV-AUTS

Automatic and manual position and heading control under specified maximum environmental conditions, during and following any single fault excluding loss of a compartment. (Two independent computer systems).

Cass 2 DPS-2 DP (AA) DNV-AUTR

Page 157: Basic Control Theory-Dr. Hung Nguyen

28

Automatic and manual position and heading control under specified maximum environmental conditions, during and following any single fault including loss of a compartment due to fire or flood. (At least two independent computer systems with a separate back-up system separated by A60 class division).

Class 3 DPS-3 DP (AAA) DNV-AUTRO

7. Roll Stabilization Systems According to Fossen (1994), the main reasons for using roll stabilizing systems on merchant ships are to prevent cargo damage and to increase the effectiveness of the crew. From a safety point of view it is well known that large roll motions cause people to make more mistakes during operation due to sea sickness and tiredness. For naval ships certain operations such as landing a helicopter or the effectiveness of the crew during combat are of major importance. Therefore, roll reduction is an important area of research. Several solutions have been proposed to accomplish roll reduction. The most widely used systems are (Van der Klugt 1987): Bilge keels: Bilge keels are fins in planes approximately perpendicular to the hull or near the

turn of the bilge. The longitudinal extent varies from about 25 to 50 percent of the length of the ship. Bilge keels are widely used, are inexpensive but increase the hull resistance. In addition to this they are effective mainly around the natural roll frequency of the ship. This effect significantly decreases with the speed of the ship. Bilge keels were first demonstrated in about 1870.

Anti-Rolling Tanks: The most common anti-rolling tanks in use are free-surface tanks, U-

tube tanks and diversified tanks. These systems provide damping of the roll motion even at small speeds. The disadvantages of course are the reduction in metacentre height due to free water surface effects and that a large amount of space is required. The earliest versions were installed about 1874.

Fin Stabilizers: Fin stabilizers are a highly attractive device for roll damping. They provide

considerable damping if the speed of the ship is not too low. The disadvantages with additional fins are increased hull resistance (except for some systems that are retractable) and high costs associated with the installation. They are also required that at least two new hydraulic systems are installed. It should be noted that fins are not effective at low speed and that they cause drag and underwater noise. They were first granted a patent by John I. Thornycroft in 1889.

Rudder-Roll Stabilisation (RRS): Roll stabilization by means of the rudder is relatively

inexpensive compared to fin stabilizers, has approximately the same effectiveness, and causes no drag or underwater noise if the system is turned off. However, RRS requires a relatively fast rudder to be effective, typically 205max −=δ (deg/s). Another disadvantage is that the RRS will not be effective if the ship’s speed is low.

Page 158: Basic Control Theory-Dr. Hung Nguyen

29

Table 5.2 Overall comparison of ship roll stabilizer systems (Sellars & Martine 1992)

Stabilizer Type General Application

% Roll Reduction

Price ($×1000) Installation Remarks

FINS (small fixed)

Mega yatchs, naval auxiliaries

90 100-200 Hull attachment, supply and install power and control cables

Speed loss, largest size about 2m2.

FINS (retractable)

Passenger, cruise, ferries, large Ro-Ro, naval combatants

90 400-1500 Hull attachment, supply and install power and control cables

Sizes range from 2m2 to about 15m2.

FINS (large fixed)

Naval combatants

90 300-1300 Hull attachment, supply and install power and control cables

Speed loss

TANKS (free surface)

Work vessels, ferries, small passenger and cargo ships

75 30-50 Install steelwork supply and install power and control cables

Includes liquid level monitor

TANKS (U-tube)

Work vessels, Ro-Ro vessels

75 200-300 Install instrument cables

Includes heel control system cables

RRS Small, high speed vessels

50-75 50-250 Install power and control cables

New development, more robust steering gear may be required

Bilge keels Universal 25-50 … Hull attachment Speed loss 7.1 Fin Stabilization System The motions of the ship in a seaway can result in various undesirable effects, examples of which are human discomfort and cargo damage. Only the rolling of a ship can be effectively reduced by stabilization. Active or fin stabilization will now be considered. Figure 5.32 shows a typical fin stabilizer arrangement.

Figure 5.32 Typical fin stabiliser arrangement

Art view

CG

Page 159: Basic Control Theory-Dr. Hung Nguyen

30

The actions of waves on ship in a seaway result in rolling. If the rolling couple applied by the sea can be opposed then the vessel will be stabilized. The rolling acceleration, velocity, angle and the natural list of the vessel must all be determined in order to provide a suitable control signal to activate the fins. The stabilizing power results from the lift on aerofoil fins located on opposite sides of the ship. The angle of the fins is controlled in order to produce an upward force on one side of the vessel and a downward force on the other. The resulting couple will oppose the couple-inducing roll. One type of control unit uses an angular accelerometer which continuously senses the rolling accelerations of the ship, see Figures 5.22. The sensor is supported on air bearings to eliminate friction and provided by a small oil-free compressor via filters and driers and the system is sealed in operation. The accelerometer output signal is proportional to the rolling acceleration of the ship. This signal is first electronically integrated to give a rolling velocity signal and then integrated again to give a roll angle signal. Each signal can be adjusted for sensitivity and then all three are summed. The summed signal is fed to a moving coil servo valve which is located in the hydraulic machinery which drives the fins. The stroke of the hydraulic pumps and the overall gain of the system can each be adjusted. A fin angle transmitter is provided for each fin to provide a feedback to the servo valve. This type of stabilization will provide roll reduction in excess 90% at resonance and where low residual roll occurs over a wide range of frequencies. However, at low speed the stabilizing power falls off and when the vessel is stopped no stabilization is possible. Figure 5.34 shows the block diagram of the Denny-Brown-AEG Fin Stabilizer.

Figure 5.33 Stabilizer control system

Torque

Coil

Sensor Sense Amp

Torque Amp

CR Filter

Drift Corrector

Port fin Angle

Indicators

AR bearing assembly

Handroll input +12V DC

Gain

STBD Servo-Amp

SummingAmp

Integrator

Velocity integrator

Drift Corrector

Pump Control

Pot

STBD MC unit on Main pump

STBD FFB potSTBD fin

Angle Amp

Roll Ouput

Inverter

Roll Angle

Integrator

Accelera-tion Filter

Range Switches

Port Servo Pot

Port MC unit on

main pump

Port FFB pot port fin

Angle Amp

Summing Amp

Atten-uator

Inter-locks

Pump Control

Pot

STBD finAngle

indicators

Timer (1.5 min)

Stabilizer Off for

35 sec RLG

Running Relay RLH

Velocity integrator relay input

Page 160: Basic Control Theory-Dr. Hung Nguyen

31

7.2 Rudder Roll Stabilisation System According to Perez (2005), rudder roll stabilisation is a technique based on the fact that the rudder is located aft and also below the centre of gravity of the vessel, and thus the rudder impacts not only yaw but also roll moment as shown in Figure 5.35. RRS is an extra feature of the course autopilot.

Figure 5.35 Rudder induced rolling moment

Figure 5.34 Denny-Brown-AEG ship stabilisation system using fin angle control

SIGNAL CONVERTER LOG

ACCELEROMETER

SHIP PORT FIN

SIGNAL CONVERTER

STARBOARD FIN

FIN ANGLE TRANSMITTER

MAIN PUMP

SERVO VALVE

SERVO PUMP

FIN ANGLE TRANSMITTER

VELOCITY INTEGRATOR

ROLL INTEGRATOR

SUMMING AMP

M FIN M FINM SEA

MAIN PUMP

SERVO VALVE

SERVO PUMP

Rudder force Rudder force

CG CG

Art view

Page 161: Basic Control Theory-Dr. Hung Nguyen

32

Most of the drawbacks of conventional active fin stabilisers and anti-roll tanks are overcome by RRS. Provided that the speed of ship and the rudder rate are sufficiently high, this technique can be applied to different ship types: small and large naval vessels, patrol vessels, ferries and some Ro-Ro vessels. The main advantages of RRS are as follows:

• Medium to high performance. This can be in the range of 50-57% of roll reduction • Relatively inexpensive • No resistance in calm water conditions • No large spaces required • Can be combined with other stabilisers to achieve higher performance

Some disadvantages of RRS are indicated as follows:

• Ineffective at low speeds. Nevertheless, this can be higher than that of fins because the rudders are located in the race of the propellers; and thus operate in higher speed flows than fins.

• Drag is produced when in use. Nevertheless, this can be less than the drag of fin stabilisers, provided that the ship turning is prevented.

• Rudder machinery upgrade may be needed to achieve high performance faster than rudder motion.

• Need sophisticated control systems to extend the good performance to different sailing conditions.

8. Trend of Control Systems New technologies have been advanced. IT (computers with high speed CPUs, high performance software, network and Internet), wireless communication technology and satellite technology allow very complicated control systems to be designed. In future, control systems will be integrated computer-based systems with high performance and multi-functions. Figure 5.36 shows an example of a newly-developed dynamic positioning system.

Figure 5.36 Example of newly-developed dynamic positioning system (Courtesy of NUST)

Page 162: Basic Control Theory-Dr. Hung Nguyen

33

SUMMARY OF MODULE 5 Module 5 is summarised as follows.

• Pneumatic control systems • Hydraulic control systems • Electrical and electronic control systems including analogue control systems,

programmable logic controllers (PLCs) and digital (computer-based) control systems. • Autopilot systems for marine vehicles • Dynamic positioning systems • Fin stabilisation systems • Rudder stabilisation system.

Page 163: Basic Control Theory-Dr. Hung Nguyen

34

Exercises 1. A damper-spring-mass system is shown in the following figure. Write a differential equation for the relationship between the output displacement y(t) and the input force u(t). Use the following numerical values: P = 20N, m = 200kg, λ =100Ns/m, k = 600N/m, and initial conditions: y(0) = 0 and )0(y = 0. Assuming that the output displacement is measured by a displacement transducer that has sensitivity of Km = 5 and the displacement is controlled by a PID controller with control gains KP, KI and KD, draw a block diagram and write the total feedback transfer of the system. Using MATLAB/Simulink make a simulation program for the system and find control gains such that the system is stable. 2. Consider the position control system shown in the following figure. Write a MATLAB program or Simulink model to obtain a unit-step response and a unit-ramp response of the system. Plot curves x1(t) versus t, x2(t) versus t, x3(t) versus t, and e(t) versus t [where e(t) = r(t) – x1(t)] for both the unit-step response and the unit-ramp response.

m

u(t)

y(t)b

k

s1

s1

r x1 4

1s1.02

+

e 5

x2 x3

Page 164: Basic Control Theory-Dr. Hung Nguyen

35

3*. Consider the hydraulic servo system shown in the following figure. Assuming that the load reaction forces are not negligible, derive a mathematical model of the system. Assume also that the mass of the power piston is included in the load mass m. 4. Consider the liquid control system shown in the following figure. The controller is of the proportional type with proportional control gain KP. The set point of the controller is fixed. Draw a block diagram of the system, assuming that changes in the variables are small. Obtain the transfer function between the level of the second tank and the disturbance input qd. Obtain the steady state error when the disturbance qd is a unit step function.

h1

qi

V1 R1

Cross-sectional area A1

qd

h2qo

V2 R2

Cross-sectional area A2

Proportional controller

k

b

m

q

y

q

ps p0p0

p1 p2

1 2 3 4 x

y

Page 165: Basic Control Theory-Dr. Hung Nguyen

36

5*. Consider the liquid level control system shown in the following figure. The inlet valve is controlled by a hydraulic integral controller. Assume that the steady state pilot valve displacement is 0X = , and steady state valve position is Y . We assume that the set point R corresponds to the steady state head H . The set point is fixed. Assume also that the disturbance inflow rate qd, which is small quantity, is applied to the water tank at t = 0. This disturbance causes the head to change from H to hH + . This change results in a change in the outflow rate by qo. Through the hydraulic controller, the changes in head causes a change in the inflow rate from Q to iqQ + . (The integral controller tends to keep the head constant as much as possible in the presence of disturbances.) We assume that all changes are of small quantities. Assume the following numerical values for the system: C = 2 m2, R = 0.5 sec/m2, Kv = 1 m2/sec, a = 0.25 m, b = 0.75 m, K1 = 4 sec-1, obtain the response h(t) when the disturbance input qd is a unit-step function. Also obtain this response h(t) with MATLAB or Simulink. 6. A surface ship is represented by the following Nomoto’s manoeuvring model: δ=ψ+ψ KT where ψ is yaw angle (rad) and δ is rudder angle (rad), T = 7.5 seconds (time constant of ship), K = 0.11. Ship speed is constant, v = 15 knots (1NM = 1,852.00 m). The position of the ship is represented by the following model: ψ−ψ= sinvcosux ψ+ψ= cosvsinuy

H +h

Q +qi

VR

Cross-sectional area A

h

Q +qo

Y +yqd

ba x

Page 166: Basic Control Theory-Dr. Hung Nguyen

37

where u is surge velocity and v is sway velocity (assuming that v = 0). The ship’s heading is control by a PID autopilot system with control gains of KP, KI and KD. It is assumed that the rudder angle for the PID autopilot is in range of -10o (port) to +10o (starboard), rudder rate in range of -5 deg/s to +5 deg/s, error (between the actual yaw angle and set course) in range of -180o to +180o, and yaw angle in range of 0-360o. Using one of the steering machine models (for rudder) in previous section (Section 2.2.2), draw a block diagram and make a MATLAB program or Simulink for the PID autopilot.

Page 167: Basic Control Theory-Dr. Hung Nguyen

1

Basic Control Theory (35 Hours) Lecturer: Dr. Hung Nguyen 1. Prerequisites Mathematical foundation: matrix operations, complex number, differential equations Fundamentals of electric and electronic engineering 2. Aims The aims of the unit are: • To provide students with basic control theory, knowledge and understanding of control systems and their components and performance; • To introduce students to control applications in marine and offshore industries. 3. Learning Outcomes Upon the successful completion of this subject, students should be able to: • Describe methods used to represent a dynamic system; • Describe methods used in automatic control systems to reduce steady state error and deviation during a disturbance; • Describe linear first-order and second-order measuring and control systems, including PID control systems; • Explain the stability of the control systems and apply stability criteria to analyse stability of the control system; • Describe automatic control systems, which are common in the marine and offshore industries; • Develop very basic skills of using MATLAB/Simulink to perform technical computation for analysis of simple measuring and control systems. 4. Generic Graduate Attributes The unit covers the following generic graduate attributes: 1. Ability to apply knowledge of basic science and engineering fundamentals (Knowledge):

through applications of technical and information skills related to control systems. 2. Ability to understand problem identification, formulation and solution (Problem solving skills):

through conceptualization of problems, formulation of a range of solutions, and interpretation of experimental data, analysis and discussions of experimental data and evaluation of experimental methods.

Page 168: Basic Control Theory-Dr. Hung Nguyen

2

3. Ability to utilise a system approach to design and operational performance (Global perspective): through the demonstration of awareness of the advantages and disadvantages of control systems and of approach to design new systems or improve operational performance in order to meet the client’s demands and needs.

5. Learning Resources 5.1 Software MATLAB/Simulink: www.mathworks.com 5.3 Textbook and References Lecture Notes Module 1: Modelling 1. Mathematical Modelling of Dynamic Systems 1 2. Continuous Time Models – Ordinary Differential Equations 1 3. General Modelling Principles 2 3.1 Mechanical Systems 2 Example 1 A Simple Pendulum 2 Example 2 A Mass-Damper System 2 3.2 Liquid Level Storage Systems 4 Example 3 A Liquid Level Storage System 4 3.3 Electrical Systems 7 Example 4 Closed-Loop RLC Circuit 7 4. Review of Laplace Transform 8 4.1 Laplace Transform 8 4.2 Laplace Transform Theorems 10 4.3 Applications of Laplace Transform 13 Example 5 13 Example 6 15 Example 7 16 Example 8 17 Example 9 19 Example 10 19 Example 11 20 Example 12 21 4.4 Partial Fraction Expansion with MATLAB 23 Example 13 23 Example 14 24 Summary of Module 1 26 Exercises 26 Appendix – Numerical Integration Methods 30 Sample Program in MATLAB 31

Page 169: Basic Control Theory-Dr. Hung Nguyen

3

Module 2: Modelling (continued), Time Domain Analysis, Frequency Domain Analysis, Time Delay, Steady State Error, Disturbances 1. Transfer Function, Zeros and Poles 1 1.1 Transfer Function 1 1.2 Zeros and Poles 3 2. Block Diagram 5 2.1 Block Diagram 5 2.2 Block Diagram Algebra 8 3. Dynamic Performance 11 3.1 Time Domain Analysis 13 3.1.1 Zero-order Systems 13 3.1.2 First-order Systems 16 3.1.3 Second-order Systems 20 3.1.4 Transient Response Analysis with MATLAB/Simulink 29 3.2 Frequency Domain Analysis 34 3.2.1 Frequency Response of Closed-loop Systems 35 3.2.2 Frequency Domain Specifications 36 3.2.3 Frequency Response of Second-order Systems 38 4. Time Delays 42 4.1 Systems with Time Delays 42 4.2 Approximation of Time Delay 44 5. Steady State Errors 46 5.1 Concept of Steady State Error 46 5.2 Definition of Steady State Error 44 5.3 Steady State Error and Final Value Theorem 47 5.4 Steady State Error with Step Input 50 5.5 Steady State Error with Ramp Input 51 6. Disturbances 53 6.1 Concept of Disturbances 53 6.2 Effects of Disturbance on the System Output 54 6.3 Methods to Reduce Disturbances 54 6.3.1 Reduction at the Source 56 6.3.2 Reduction by Local Feedback 56 6.3.3 Reduction by Feed-forward 57 6.3.4 Reduction by Prediction 58 Summary of Module 2 58 Exercises/Problems 59 Module 3: Stability and PID Control 1. Stability of Linear Control Systems 1 1.1 Definitions of Stability 1 1.2 Concepts of Stability 1 Example 1 4 2. PID Control 6

Page 170: Basic Control Theory-Dr. Hung Nguyen

4

2.1 What Is PID Control? 6 2.2 Control Actions 6 2.2.1 Proportional (P) Control Action 6 2.2.2 Integral (I) Control Action 7 2.2.3 Derivative (D) Control Action 8 2.2.4 Proportional Integral (PI) Control Action 8 2.2.5 Proportional Derivative (PD) Control Action 9 2.2.6 Proportional Integral Derivative PID Control Action 9 2.3 Types of PID Controller 10 2.3.1 Pneumatic PID Controllers 10 2.3.2 Hydraulic PID Controllers 19 2.3.3 Electronic PID Controllers 25 2.4 Simulation of PID Control System (PID Autopilot) 30 2.4.1 Ship Manoeuvring Model 30 2.4.2 Simulation of PID Autopilot (Nomoto’s First-Order Model) 31 2.5 PID Controllers in Market 37 2.5.1 DTZ4 Controller of Instronics Inc. 37 2.5.2 More Information on the Internet 38 2.6 Examples 38 Example 2 38 Example 3 40 Summary of Module 3 42 Exercises 43 Module 4: Control Components 1. General Structure of a Control System 1 2. Comparison Elements 2 2.1 Differential Levers (Walking Beams) 2 2.2 Potentiometers 3 2.3 Synchros 4 2.4 Operational Amplifiers 5 3. Control Elements 7 3.1 Process Control Valves 7 3.2 Hydraulic Servo Valve 11 3.3 Hydraulic Actuators 15 3.4 Electrical Elements: D.C. Servo Motors 16 3.5 Electrical Elements: A.C. Servo Motors 18 3.6 Hydraulic Control Element (Steering Gear) 18 3.7 Pneumatic Control Elements 19 4. Examples of Control Systems 22 4.1 Thickness Control System 22 4.2 Level Control System 23 Summary of Module 4 23 Exercises 24 Module 5: Applications of Control

Page 171: Basic Control Theory-Dr. Hung Nguyen

5

1. Introduction 1 2. Pneumatic Control Systems 1 2.1 Essential Requirements 1 2.2 Basic Pneumatic Control Systems 2 3. Hydraulic Control Systems 6 3.1 Hydraulic Servo Valve and Actuator 6 3.2 Applications of Hydraulic Servo Valve 7 3.2.1 Speed Control System 7 3.2.2 Hydraulic Steering Machine 8 4. Electrical and Electronic Control Systems 10 4.1 Analogue Control Systems 10 4.2 Digital (Computer-based) Control Systems 12 4.3 PLCs (Sequence Control Systems) 13 4.3.1 The Processor Unit 13 4.3.2 The Input/Output Section 14 4.3.3 The Programming Device 14 5. Ship Autopilot Systems 15 5.1 Mathematical Foundation for Autopilot Systems 15 5.1.1 Autopilots of PID Type 15 5.1.2 P Control 16 5.1.3 PD Control 17 5.1.4 PID Control 18 5.2 Automatic Steering Principles 19 5.2.1 Proportional Control 19 5.2.2 Derivative Control 21 5.2.3 Integral Control 22 5.3 Marine Autopilots in Market 23 5.3.1 Autopilot System PR-6000 (Tokimec) 23 5.3.2 Autopilot System PR-2000 (Tokimec) 23 5.3.3 Autopilot System PR-1500 (Tokimec) 24 6. Dynamic Positioning Systems 24 6.1 Basic Principles of Dynamic Positioning Systems 25 6.2 IMO DP Classifications 27 7. Roll Stabilisation Systems 28 7.1 Fin Stabilisation Systems 29 7.2 Rudder Roll Stabilisation System 31 8. Trend of Control Systems 32 Summary of Module 5 32 Exercises 33


Recommended