Docsity

Control Systems: Frequency Response Methods and Compensator Design, Notas de estudo de Sistemas de Controle Avançados

Pré-visualização parcial do texto

Baixe Control Systems: Frequency Response Methods and Compensator Design e outras Notas de estudo em PDF para Sistemas de Controle Avançados, somente na Docsity!

INTRODUCTION TO

CONTROL SYSTEMS

Kamran Iqbal

University of Arkansas at Little Rock

University of Arkansas at Little Rock

Introduction to Control Systems

Kamran Iqbal

1 12/21/

TABLE OF CONTENTS

1: MATHEMATICAL MODELS OF PHYSICAL SYSTEMS

1.0: PRELUDE TO MATHEMATICAL MODELS OF PHYSICAL SYSTEMS 1.1: MODEL VARIABLES AND ELEMENT TYPES 1.2: FIRST-ORDER ODE MODELS 1.3: SECOND-ORDER ODE MODELS 1.4: AN ELECTRO-MECHANICAL SYSTEM MODEL 1.5: INDUSTRIAL PROCESS MODELS 1.6: STATE VARIABLE MODELS 1.7: LINEARIZATION OF NONLINEAR MODELS OCATVE EXAMPLES R EXAMPLES OCTAVE EXAMPLES

2: TRANSFER FUNCTION MODELS

2.0: PRELUDE TO TRANSFER FUNCTION MODELS 2.1: SYSTEM POLES AND ZEROS 2.2: SYSTEM NATURAL RESPONSE 2.3: SYSTEM STABILITY 2.4: THE STEP RESPONSE 2.5: SINUSOIDAL RESPONSE OF A SYSTEM BLANK

3: FEEDBACK CONTROL SYSTEM MODELS

3.0: PRELUDE TO FEEDBACK CONTROL SYSTEM MODELS 3.1: STATIC FEEDBACK CONTROLLER 3.2: FIRST-ORDER DYNAMIC CONTROLLERS 3.3: PI, PD, AND PID CONTROLLERS 3.4: RATE FEEDBACK CONTROLLERS BLANK

4: CONTROL SYSTEM DESIGN OBJECTIVES

4.0: PRELUDE TO CONTROL SYSTEM DESIGN OBJECTIVES 4.1: STABILITY OF THE CLOSED-LOOP SYSTEM 4.2: TRANSIENT RESPONSE IMPROVEMENT 4.3: STEADY-STATE ERROR IMPROVEMENT 4.4: DISTURBANCE REJECTION 4.5: SENSITIVITY AND ROBUSTNESS

5: CONTROL SYSTEM DESIGN WITH ROOT LOCUS

5.0: PRELUDE TO CONTROL SYSTEM DESIGN WITH ROOT LOCUS 5.1: ROOT LOCUS FUNDAMENTALS 5.2: STATIC CONTROLLER DESIGN 5.3: TRANSIENT RESPONSE IMPROVEMENT 5.4: STEADY-STATE ERROR IMPROVEMENT 5.5: TRANSIENT AND STEADY-STATE IMPROVEMENT 5.6: CONTROLLER REALIZATION

6: COMPENSATOR DESIGN WITH FREQUENCY RESPONSE METHODS

6.0: PRELUDE TO COMPENSATOR DESIGN WITH FREQUENCY RESPONSE METHODS 6.1: FREQUENCY RESPONSE PLOTS 6.2: MEASURES OF PERFORMANCE 6.3: FREQUENCY RESPONSE DESIGN

2 12/21/

6.4: CLOSED-LOOP FREQUENCY RESPONSE

7: DESIGN OF SAMPLED-DATA SYSTEMS

7.0: PRELUDE TO DESIGN OF SAMPLED-DATA SYSTEMS 7.1: MODELS OF SAMPLED-DATA SYSTEMS 7.2: PULSE TRANSFER FUNCTION 7.3: SAMPLED-DATA SYSTEM RESPONSE 7.4: STABILITY OF SAMPLED-DATA SYSTEMS 7.5: CLOSED-LOOP SYSTEM RESPONSE 7.6: DIGITAL CONTROLLER DESIGN BY EMULATION 7.7: ROOT LOCUS DESIGN OF DIGITAL CONTROLLERS

8: STATE VARIABLE MODELS

8.0: PRELUDE TO STATE VARIABLE MODELS 8.1: STATE VARIABLE MODELS 8.2: STATE-TRANSITION MATRIX AND ASYMPTOTIC STABILITY 8.3: STATE-SPACE REALIZATION OF TRANSFER FUNCTION MODELS 8.4: LINEAR TRANSFORMATION OF STATE VARIABLES

9: CONTROLLERS FOR STATE VARIABLE MODELS

9.0: PRELUDE TO CONTROLLERS FOR STATE VARIABLE MODELS 9.1: CONTROLLER DESIGN IN SATE-SPACE 9.2: TRACKING WITH FEEDFORWARD CONTROLLER 9.3: TRACKING PI CONTROLLER DESIGN

10: CONTROLLERS FOR DISCRETE STATE VARIABLE MODELS

10.0: PRELUDE TO CONTROLLERS FOR DISCRETE STATE VARIABLE MODELS 10.1: STATE VARIABLE MODELS OF SAMPLED-DATA SYSTEMS 10.2: CONTROLLERS FOR DISCRETE STATE VARIABLE MODELS

BACK MATTER

INDEX INDEX GLOSSARY

1.0.1 12/21/2021^ https://eng.libretexts.org/@go/page/

1.0: Prelude to Mathematical Models of Physical Systems

This chapter describes the process of obtaining the mathematical description of a dynamic system, i.e., a system whose behavior changes over time. The system is assumed to be assembled from components. The system model is based on the physical laws that govern the behavior of various system components.

Physical systems of interest to engineers include, for example, electrical, mechanical, electromechanical, thermal, and fluid systems. By using lumped parameter assumption, their behavior is mathematically described in terms of ordinary differential equation (ODE) models. These equations are nonlinear, in general, but can be linearized about an operating point for analysis and design purposes.

Models of interconnected components are assembled from individual component describptions. The components in electrical systems include resistors, capacitors, and inductors. The components used in mechanical systems include inertial masses, springs, and dampers (or friction elements). For thermal systems, these include thermal capacitance and thermal resistance. For hydraulic and fluid systems, these include reservoir capacity and flow resistance.

In certain physical systems, properties (or entities) flow in and out of a system boundary, e.g., a hydraulic reservoir, or thermal chamber. The dynamics of such systems is described by conservation laws and/or balance equations. In particular, let Q represent an accumulated property, and represent the inflow and outflow rates, then the model is described as:

where and denote the internal generation and consumption of that property.

The Laplace transform converts a linear differential equation into an algebraic equation, which can be manipulated to obtain an input-output description described as a transfer function. The transfer function forms the basis of analysis and design of control systems using conventional methods. In contrast, the modern control theory is established on time- domain analysis involving the state equations, that describe system behavior as time derivatives of a set of state variables.

Linearization of nonlinear models is accomplished using Taylor series expansion about a critical point, where the linear behavior is restricted to the neighborhood of the critical point. The linear systems theory is well-estabished and serves as the basic tool for controller design.

qin qout

= − + g − c

dQ dt

qin qout (1.0.1)

g c

Kamran Iqbal (^) 1.1.1 12/21/2021 https://eng.libretexts.org/@go/page/

1.1: Model Variables and Element Types

Flow and Across Variables

Modeling of a physical system involves two kinds of variables: flow variables that ‘flow’ through the components, and across variables that are measured across those components.

For example, in electric circuits, potential (voltage) is measured across elements, whereas electrical charge (current) flows through the circuit elements.

In mechanical linkage systems, displacement and velocity are measured across elements, whereas force or effort ‘flows’ through the linkages.

In thermal and fluid systems, heat and mass serve as the flow variables, whereas temperature and pressure constitute the across variables.

A physical element is characterized by the relationship between flow and across variables. The three basic types are the resistive, inductive, and capacitive elements. The terminology, taken from electrical circuits, extends to other types of physical systems as well.

While the resistive element dissipates energy, both the capacitive and inductive elements store energy. For example, a capacitor stores electrical energy and a moving mass stores kinetic energy. The energy storage accords memory to the element that accounts for it dynamic behavior modeled by an ODE.

Let denote a flow variable and denote an across variable associated with an element; then, the element type is defined by their mutual relationships, described as follows:

A resistive element is described by a proportional relationship:

Figure : A resistive element.

For example, the voltage and current relationship through a resister is described by a proportional relationship called Ohm’s law :.

Similarly, the force–velocity relationship though a linear mechanical damper is a proportional one:.

A capacitive element is described by the relation:

i.e., the across variable varies in proportion to the accumulated amount of the flow variable. Whereas, the flow variable varies proportionally with the rate of change of the across variable:

Figure : A capacitive element.

q ( t ) x ( t )

Definition: Resistive Element

x ( t ) = k q ( t ) (1.1.1)

1.1.

V ( t ) = R i ( t ) v ( t ) = (^1) bf ( t )

Definition: Capacitive Element

x ( t ) = k ∫ q ( t ) dt + x 0 (1.1.2)

q ( t ) =

k

dx ( t ) dt

1.1.

Kamran Iqbal (^) 1.2.1 12/21/2021 https://eng.libretexts.org/@go/page/

1.2: First-Order ODE Models

First-Order ODE Models Electrical, mechanical, thermal, and fluid systems that contain a single energy storage element are described by first-order ODE models. Let denote a generic input, denote a generic output, and denote the time constant; then, a generic first-order ODE model is expressed as:

The time constant, , denotes the time when the system response to a constant input rises to 63.2% of its final value. The time constant is measured in.

Examples

A series RC network is connected across a constant voltage source, (Figure 1.2.1). Kirchhoff’s voltage law (KVL) is used to model the circuit behavior as: In the above capital letters represent constant values and small letters represent time-varying quantities. Let define the circuit output; then, , hence

The time constant of the RC circuit is given as:.

Figure : A series RC circuit driven by a constant voltage source.

A parallel RL network is connected across a constant current source, (Figure 1.2.2). The circuit is modeled by a first-order ODE, where the variable of interest is the inductor current, , and Kirchhoff’s current law (KCL) is applied at a node to obtain:. By substituting we obtain the ODE description of the RL circuit as:

The time constant of the RL circuit is given as:.

Figure : A parallel RL circuit driven by a constant current source.

The motion of an inertial mass, , acted by a force, , in the presence of kinetic friction, represented by , is governed by Newton’s second law of motion (Figure 1.2.3). Let represent the velocity; then, the resultant force on the mass element is:. Hence

u ( t ) y ( t ) τ

τ + y ( t ) = u ( t )

dy ( t ) dt

τ [ sec ]

Example 1.2.

V s vR + vC = Vs

vC = v 0 vR = iR = RCd dtv^0

RC + ( t ) =

d v 0 ( t ) dt

v 0 Vs (1.2.2)

τ = RC

1.2.

Example 1.2. I s iL iR + iL = I s iR = (^) Rv =^ L R^ d dt iL

  • ( t ) =
L
R

d iL ( t ) dt

iL Is (1.2.3)

τ = L R

1.2.

Example 1.2.

m f ( t ) b v ( t ) f − bv

m + bv ( t ) = f ( t )

dv ( t ) dt (1.2.4)

Kamran Iqbal (^) 1.2.2 12/21/2021 https://eng.libretexts.org/@go/page/

The time constant for the mechanical model is: , which describes the rate at which the velocity builds up in response to a constant force input.

Figure : Motion of an inertial mass with applied force under surface friction.

A model for room heating is developed as follows (Figure 1.2.4): let , denote heat inflow, denote the thermal capacity of the room, denote the room temperature, denote the ambient temperature, and denote a thermal resistance representing wall insulation; then, the heat energy balance equation is given as:

In terms of the temperature differential, , the governing ODE is:

By comparing with the generic first-order ODE model, , the thermal time constant is described as:

. Further, the temperature is measures in , heat flow is measured in , thermal capacitance is measured in , and thermal resistance is measured in.

Figure : A model of room heating with heat source and outflow through the walls.

A cylindrical reservoir is filled with an incompressible fluid supplied from an inlet with a controlled exit through a hydraulic valve at the bottom (Figure 1.2.5). Let denote the hydraulic pressure, denote the area of the reservoir, denote the height, denote the volume, denote the mass density, denote the valve resistance to the fluid flow, denote the volumetric flow rates, and denote the gravitational constant; then, the base pressure in the reservoir is obtained as:

The reservoir capacitance is defined as: ; then, the governing equation for hydraulic flow through the reservoir is given as:

In terms of the pressure difference, the equation is written as:

By comparing with generic first-order ODE model, , the hydraulic time constant is described as: .

τ = m b

1.2.

Example 1.2.

qi Cr θr θa Rw

Cr + =

dθr dt

θr − θa Rw

qi (1.2.5)

Δ θ = θr − θa

Rw Cr^ d Δ θ + Δ θ = dt

Rw qi (1.2.6)

τ^ dy dt+ y = u τ = Rw Cr [ ∘ C^ ] [ W ] [ (^) ∘ J C ] [ C ]

∘ W

1.2.

Example 1.2.

P A h V ρ Rl qin , qout g

P = Patm + ρgh = Patm + V

ρg A

Ch = dV dP = ρg^ A

Ch = −

dP dt

qin

P − Patm Rl

Rl Ch^ d Δ P + Δ P =. dt

Rl qin (1.2.9)

τ dy dt + y = u τ = Rw Cr

Kamran Iqbal (^) 1.2.4 12/21/2021 https://eng.libretexts.org/@go/page/

Output Response For zero initial conditions, , the output is expressed as:

The system response for is plotted in Figure 1.5. The output values at selected times, are compiled in the following table. By convention, the output is assumed to have reached steady-state when it attains 98% of its final value. Hence, the settling time of the system is expressed as:.

Table 1.1: The step response of a first-order model at selected time instances. Time Output value 0 1 2 3 4 5

Figure : Response of a first-order ODE model ( ).

run restart restart & run all

y 0 = 0

y ( t ) = (1 − e − t / τ^ ) u ( t ) (1.2.17)

τ = 1 sec t = kτ , k = 0, 1, …

ts = 4 τ

y (0) = 0 τ 1 − e −1≅0. τ 1 − e −2≅0. τ 1 − e −3≅0. τ 1 − e −4≅0. τ 1 − e −5≅0.

1.2.6 τ = 1 sec

pkg load control s=tf('s'); Gs=1/(s+1); step(Gs), hold plot(1:5,1-exp(-(1:5)),'x')

Kamran Iqbal (^) 1.3.1 12/21/2021 https://eng.libretexts.org/@go/page/

1.3: Second-Order ODE Models

Second-Order ODE Models A physical system that contains two energy storage elements is described by a second-order ODE. Examples of second- order models are discussed below:

A series RLC circuit with voltage input and current output has a governing relationship obtained by applying the Kirchoff’s voltage law to the mesh (Figure 1.3.1):

The above integro-differential equation can by converted into a second-order ODE by expressing it in terms of the electric charge, , as:

Alternatively, the series RLC circuit can be described in terms of two first-order ODE’s involving natural variables, the current, , and the capacitor voltage, , as:

Figure : A series RLC circuit driven by a constant voltage source.

The motion of a mass element of weight, , pulled upward by a force, , is described using position output, , by a second-order ODE:

The second-order ODE expresses the fact that the moving mass has both the kinetic and potential energies (Figure 1.3.2).

Figure : Motion of an inertial mass under gravitational field.

A mass–spring–damper system includes a mass affected by an applied force, ; its motion is restrained by a combination of a spring and a damper (Figure 1.8). Let denote the displacement of the mass from a fixed reference; then, the dynamic equation of the system, obtained by using Newton’s second law of motion, takes a familiar form:

Example 1.3. Vs ( t ) i ( t )

L + Ri ( t ) + ∫ i ( t ) dt = ( t )

di ( t ) dt

C Vs^ (1.3.1)

q ( t )

L + R + q ( t ) = ( t )

d^2 q ( t ) dt^2

dq ( t ) dt

C

Vs (1.3.2)

i ( t ) Vc ( t )

L + Ri ( t ) + ( t ) = ( t ), C = i ( t )

di ( t ) dt

Vc Vs^ dVc dt

1.3.

Example 1.3. mg f ( t ) y ( t )

m + mg = f ( t )

d^2 y ( t ) dt^2

1.3.

Example 1.3. f ( t )

x ( t )

Kamran Iqbal (^) 1.3.3 12/21/2021 https://eng.libretexts.org/@go/page/

Transfer function of a physical systems is a proper fraction, i.e., the degree of the denominator polynomial is greater than the degree of numerator polynomial. The roots of its denominator polynomial characterize the response of the second-order ODE model. The response is monotonic in the case of real roots, and oscillatory for complex roots.

Consider the mass-spring-damper model (Example 1.3.3), where the following parameter values are assumed:

. Then, the second-order ODE is given as:

The application of the Laplace transform assuming zero initial conditions gives:

The characteristic equation of the model is given as:. The equation has real roots at:. Next, let ; then, the output is solved as:

We use partial fraction expansion (PFE) to obtain:

By applying the inverse Laplace transform, the output response of the spring-mass-damper system is obtained as (Figure 1.9):

where represents the unit-step function. Note: The solution of an ODE generally involves the PFE. We may use the online SimboLab partial fraction calculator for this purpose (https://www.symbolab.com/solver/part...ns-calculator/).

Consider the mass-spring-damper model (Example 1.3.3), with following parameter values:. Then, the second-order ODE is given as:

The application of the Laplace transform assuming zero initial conditions gives:

The characteristic equation of the model is given as:. The equation has complex roots at: . Let ; then, the output is solved as:

Next, a PFE of the output is carried out to obtain:

The quadratic factor is expressed as: ; the quadratic term is split to obtain:

Example 1.3.

m = 1, k = 2, b = 3 x ¨ ( t ) + 3 x ˙ ( t ) + 2 x ( t ) = f ( t ) (1.3.15)

( s^2 + 3 s + 2) y ( s ) = f ( s ) (1.3.16) s^2 + 3 s + 2 = 0 s = −1, − 2 f ( t ) = 2 u ( t ) , f ( s ) = (^2) s

x ( s ) =

s ( s + 1) ( s + 2)

x ( s ) = − +

s

s + 1

s + 2

x ( t ) = (1 − 2 e − t^ + e −2 t )^ u ( t ) (1.3.19)

u ( t )

Example 1.3.

m = 1, k = 2, b = 2

x ¨ ( t ) + 2 x ˙ ( t ) + 2 x ( t ) = f ( t ) (1.3.20)

( s^2 + 2 s + 2) y ( s ) = f ( s ) (1.3.21)

s^2 + 2 s + 2 = 0 s = −1 ± j 1 f ( t ) = 2 u ( t ) , f ( s ) = 2/ s

x ( s ) = 2 s ( s^2 + 2 s + 2)

x ( s ) = −

s

s + 2 s^2 + 2 s + 2

( s + 1) 2 + 12

x ( s ) = − −

s

s + 1 ( s + 1) 2 + 12

( s + 1) 2 + 12

Kamran Iqbal (^) 1.3.4 12/21/2021 https://eng.libretexts.org/@go/page/

By applying the inverse Laplace transform, the output response of the spring-mass-damper system is obtained as (Figure 1.9):

where represents the unit-step function.

Figure : Time response of second-order system models: characteristic equation with real roots (left); with complex roots (right).

run restart restart & run all

x ( t ) = (1 − e − t^ cos t − e − t^ sin t ) u ( t ) (1.3.25)

u ( t )

1.3.

Hello world! Hello world!

pkg load control s=tf('s'); Gs1=1/(s^2+3s+2); Gs2=1/(s^2+2s+2); step(Gs1) step(Gs2)

Kamran Iqbal (^) 1.4.2 12/21/2021 https://eng.libretexts.org/@go/page/

A small DC motor has the following parameter values: ; then, the motor transfer function from armature voltage to angular velocity is obtained as:

The two motor time constants are given as: , where matches the time constant of an RL circuit ( ) and matches the time constant of inertial mass in the presence of friction ( ). Assuming a unit-step input, , is applied to the motor, the motor speed is obtained as:

By applying the inverse Laplace transform, the time-domain output is given as (Figure 13a):

where denotes a unit-step function. The motor response is plotted in Figure 1.4.2.

Simplified Model of a DC motor A simplified model of the DC motor is obtained by ignoring the coil inductance ( ). Then, the electrical side equation is modified as:

By substituting into the torque equation, the mechanical side equation is given as:

The resulting first-order motor transfer function is given as:

The first-order model has a single motor time constant , and is written as:

Using the parameter values for a small DC motor (Example 1.4.1), its reduced first-order transfer function is obtained as:

The resulting motor time constant evaluates as: , which approximates the slower mechanical time constant in the second-order model. Assuming a unit-step input, the motor response is obtained as:

By applying the inverse Laplace transform, the motor output is given as:

The motor response to a unit-step input is plotted in Figure 1.4.2.

Example 1.4.

R = 1Ω, L = 0.01 H , J = 0.01 kg m^2 , b = 0.1 N rad^ − s , and kt = kb = 0.

ω ( s ) Va ( s )

( s + 100)( s + 10) + 25

( s + 10.28)( s + 99.72)

τe ≅1 0 ms , τm ≅100 ms τe τe = L / R τm τm = J / b u ( s ) = (^1) s

ω ( s ) = 500 = − + s ( s + 10.28) ( s + 99.72)

s

s + 10.

s + 99.

ω ( t ) = [0.488 − 0.544 e −10.28 t^ + 0.056 e −99.72 t ]^ u ( t ) (1.4.11)

u ( t )

L → 0

R ia ( s ) + kbω ( s ) = Va ( s ) (1.4.12) ia ( s ) R ( Js + b ) ω ( s ) + kt kbω ( s ) = kt Va ( s ) (1.4.13)

ω ( s ) Va ( s )

kt / R Js + b + kt kb / R

( τm = (^) bRJR + kt kb )

ω ( s ) Va ( s )

kt / JR s + 1/ τm

Example 1.4.

ω ( s ) Va ( s )

s + 10.

τm ≅97.6 ms

ω ( s ) = = −

s ( s + 10.25)

s

s + 10.

ω ( t ) = [0.488 − 0.488 e −10.25 t ]^ u ( t ) (1.4.18)

Kamran Iqbal (^) 1.4.3 12/21/2021 https://eng.libretexts.org/@go/page/

Figure : DC motor response to unit-step input: second-order motor model (left); first-order motor model (right).

run restart restart & run all

1.4.

pkg load control R=1; L=.01; J=.01; b=.1; kt=.05; kb=.05; s=tf('s'); Gs=kt/((Ls+R)(Js+b)+ktkb) step(Gs), hold L=0; Gs1=kt/((Ls+R)(Js+b)+ktkb) step(Gs1)