Lecture Notes: EEEC4340318 Instrumentation and Control Systems - System Models
1. EEEC4340318 INSTRUMENTATION AND CONTROL SYSTEMS
System Models
FACULTY OF ENGINEERING AND COMPUTER TECHNOLOGY
DIPLOMA IN ELECTRICALAND ELECTRONIC ENGINEERING
Ravandran Muttiah BEng (Hons) MSc MIET
2. 1
Differential Equation Models
β’ Most of the systems that we will deal with are dynamic
β’ Differential equations provide a powerful way to describe
dynamic systems
β’ Will form the basis of our models
β’ We saw differential equations for inductors and capacitors.
β’ What about mechanical systems?
both translational and rotational
3. 2
Translational Spring
πΉ π‘ : resultant force in direction π₯
Recall free body diagrams and βaction and reactionβ
β’ Spring. π: spring constant, πΏr: relaxed length of spring
πΉ π‘ = π π₯2 π‘ β π₯1 π‘ β πΏr
π₯ π₯1 π‘ π₯2 π‘
πΉ π‘
11. 10
β’ Nature does not have many linear systems.
β’ However, many systems behave approximately linearly in the
neighbourhood of a given point.
β’ Apply first-order Taylorβs Series at a given point.
β’ Obtain a locally linear model.
β’ In this course we will focus on the case of a single linearized
differential equation model for the system, in which the
coefficients are constants.
β’ e.g., in previous examples mass, viscosity and spring constant
did not change with time, position, velocity, temperature, etc.
Taylorβs Series
12. 11
Pendulum Example
Assume shaft is light with respect to π, and stiff with respect to
gravitational forces.
Torque due to gravity: π π = πππΏ sin π
Apply Taylorβs series around π = 0:
π π = πππΏ π β
π3
3!
+
π5
5!
β
π7
7!
+ β―
For small π around π = 0 we can build an approximate model that
is linear,
π π β πππΏπ
14. 13
Laplace Transform
Once we have a linearised differential equation (with constant
coefficients) we can take Laplace Transforms to obtain the transfer
function.
We will consider the βone-sidedβ Laplace transform, for signals
that are zero to the left of the origin.
πΉ π =
0β
β
π π‘ eβπ π‘
dπ‘
What does
β
mean ? limπββ
π
.
Does this limit exist ?
If π π‘ < πeπΌπ‘
, then exists for all Re π > πΌ.
Includes all physically realisable signals.
Note: When multiplying transfer function by Laplace of input,
output is only valid for values of π in intersection of regions of
convergence.
15. 14
Poles And Zeros
In this course, most Laplace transforms will be rational functions,
that is, a ratio of two polynomials in π ; i.e.,
πΉ π =
πF π
πF π
where πF π and πF π are polynomials.
Definitions:
- Poles of πΉ π are the roots of πF π
- Zeros of πΉ π are the roots of πF π
Hence,
πΉ π =
πΎF π=1
π
π + π§π
π=1
π
π + ππ
=
πΎF π=1
π
π§π
π=1
π
ππ
π=1
π π
π§π + 1
π=1
π π
ππ + 1
where βπ§π are the zeros and βππ are the poles.
16. 15
Visualising Poles And Zeros
Consider the simple Laplace transform πΉ π =
π π +3
π 2+2π +5
zeros: 0, β3; poles: β1 + j2, β1 β j2
Figure 4: Pole-zero plot (left) and magnitude of πΉ π right
17. 16
πΉ π from above (left) and previous view of πΉ π right.
Figure 5
18. 17
Laplace Transforms Pairs
Simple ones can be computed analytically;
For more complicated ones, one can typically obtain the inverse
Laplace transform by:
- Identifying poles;
- Constructing partial fraction expansion;
- Using of properties and some simple pairs to invent each
component of partial fraction expansion.
21. 20
Final Value Theorem
Can we avoid having to do an inverse Laplace transform ?
Sometimes.
Consider the case when we only want to find the final value of
π π‘ , namely limπ‘ββπ π‘ .
If πΉ π has all its poles in the left half plane, except, perhaps, for a
single pole at the origin, then,
lim
π‘ββ
π π‘ = lim
π β0
π πΉ π
Common application: Steady state value of step response.
What if there are poles in Right Half Plane (RHP), or on the jπ -
axis and not at the origin ?
22. 21
Mass-Spring-Damper System
Horizontal (no gravity)
Set origin of π¦ where spring is βrelaxedβ
πΉ = π
dπ£ π‘
dπ‘
π£ π‘ =
dπ¦ π‘
dπ‘
πΉ π‘ = π π‘ β π
dπ¦ π‘
dπ‘
β ππ¦ π‘ π
d2
π¦ π‘
dπ‘
+ π
dπ¦ π‘
dπ‘
+ ππ¦ π‘ = π π‘
Mass
π
Wall
Friction, π
y
π
π π‘
Force
π
ππ¦
ππ¦
π π‘
y
Figure 7
24. 23
Response To Static Initial Condition
Spring stretched to a point π¦0, held, then let go at time π‘ = 0
Hence, π π‘ = 0 and
dπ¦ π‘
dπ‘ π‘=0
= 0
Hence,
π π =
π +
π
π
π 2 +
π
π
π +
π
π
π¦0
What can we learn about this response without having to invert π π
29. 28
Define π = πππ, πd = ππ 1 β π2. Response is:
π¦ π‘ = π1eβππ‘
cos πdπ‘ + π2eβππ‘
sin πdπ‘
= π΄eβππ‘
cos πdπ‘ + π
Homework: Relate π΄ and π to π1 and π2.
Homework: Write the initial conditions π¦ 0 = π¦0 and
dπ¦ π‘
dπ₯ π‘=0
= 0 in terms of π1 and π2, and in terms of π΄ and π
45. 44
Transfer Function
Definition:
Laplace transform of output over Laplace transform of input when
initial conditions are zero.
Most of the transfer functions in this course will be ratios of
polynomials in π .
Hence, poles and zeros of transfer functions have natural definitions.
Example:
Recall the mass-spring-damper system,
47. 46
Step Response
Recall that π’ π‘ β
1
π
Therefore, for transfer function πΊ π , the step response is:
ββ1
πΊ π
π
For the mass-spring-damper system, step response is,
ββ1
1
π ππ 2 + ππ + π
What is the final position for a step input ?
Recall final value theorem. Final position is
1
πΎ
.
What about the complete step response ?
48. 47
Step response:
ββ1
πΊ π
1
π
Hence poles of Laplace transform of step response are poles of πΊ π ,
plus an additional pole at π = 0.
For the mass-spring-damper system, using partial fractions, step
response is:
ββ1
1
π ππ 2 + ππ + π
= ββ1
1
π
π
β
1
π
ββ1
ππ + π
ππ 2 + ππ + π
=
1
π
π’ π‘ β
1
π
ββ1
ππ + π
ππ 2 + ππ + π
Consider again the case of π = π = 1, π = 3 β 0.
ππ = 1, π = 1.5 β 0.
63. 62
We will consider linearised model for each component.
Flux in the air gap: β π‘ = πΎfπf π‘
Torque: πm π‘ = πΎ1β π‘ πa π‘ = πΎ1πΎfπf π‘ πa π‘
Is that linear ? Only if one of πf π‘ or πf π‘ is constant.
We will consider βarmature controlβ: πf π‘ constant.
A DC Motor
Figure 9
64. 63
Armature Controlled DC Motor
πf π‘ will be constant (to set up magnetic field), πf π‘ = πΌf
Torque: πm π‘ = πΎ1πΎfπΌfπa π‘ = πΎmπa π‘
Will control motor using armature voltage π
a π‘ .
What is the transfer function from π
a π to angular position π π ?
Origin ?
65. 64
πm π‘ = πΎmπa π‘ β πm π = πΎmπΌa π
Kirchhoff Voltage Law: π
a π = π a + π πΏa πΌa π + πb π
πb π is back-emf voltage, due to Faradayβs Law.
πb π = πΎbπ π ,
where π π = π π π is rotational velocity.
Remember: transfer function implies zero initial conditions.
Towards Transfer Function
66. 65
Torque on load: πL π = πm π β πd π
πd π : disturbance. Often small, unknown.
Load torque and load angle (Newton plus friction):
πL π = π½π 2
π π + ππ π π
Now put it all together.
68. 67
Transfer Function
πΎm
π a + πΏaπ
Armature
1
π½π + π
1
π
πΎb
Disturbance
πd π
Position
π π
π
a π
+
β
+
β
πm π πL π
Speed
π π
Back Electromotive Force
Set πd π = 0 and solve (you MUST do this yourself)
πΊ π =
π π
π
a π
=
πΎm
π π a + π πΏa π½π + π + πΎbπΎm
=
πΎm
π π 2 + 2ππππ + ππ
2
Figure 10
69. 68
Second Order Approximation
πΊ π =
π π
π
a π
=
πΎm
π π a + π πΏa π½π + π + πΎbπΎm
Sometimes armature time constant, ππ =
πΏa
π a
is negligible
Hence (you MUST derive this yourself)
πΊ π β
πΎm
π π a π½π + π πΎbπΎm
=
πΎπ
π aπ + πΎbπΎm
π π1π + 1
where π1 =
π aπ½
π aπ+πΎbπΎm
70. 69
Model For A Disk Drive Read System
Uses a permanent magnet DC motor
Can be modelled using armature control model with πΎb = 0
Hence, motor transfer function:
πΊ π =
π π
π
a π
=
πΎm
π π a + π πΏa π½π + π
Assume for now that the arm is stiff.
Figure 11
72. 71
Time Constants
Initial model,
πΊ π =
5000
π π + 20 π + 1000
Motor time constant =
1
20
= 50 ms
Armature time constant =
1
1000
= 1 ms
Hence,
πΊ π β πΊ π =
5
π π + 20
73. 72
A Simple Feedback Controller
Now that we have a model, how to control ?
Simple idea: Apply voltage to motor that is proportional to error
between where we are and where we want to be.
Amplifier
Control Device Actuator and Read Arm
Input
Voltage Actual
Head
Position
+
β
DC Motor and Arm
Sensor
Read Head and Index Track on Disk
Desired
Head
Position
Error
Figure 12
74. 73
πΎa
Amplifier Motor and Arm πΊ π
π π
π π
+
β
πΊ π =
πΎm
π π½π + π πΏπ + π
Sensor
π» π = 1
π π
πΈ π
Here, π π = π
a π and π π = π π
Figure 13
75. 74
Simplified Block Diagram
πΎa π π
+
β
πΊ π
π π
What is the transfer function from command to position ? Derive this
yourself.
π π
π π
=
πΎaπΊ π
1 + πΎaπΊ π
Using second-order approximation, πΊ π β πΊ π =
5
π π +20
π π β
5πΎa
π 2 + 20π + 5πΎa
π π
For 0 < πΎa < 20: overdamped
For πΎa > 20: underdamped
Figure 14
76. 75
Response To π π = π. ππ π ; π²π = ππ
Slow. Slower than IBMs first drive from late 1950βs.
Disks in the 1970βs had 25 ms seek times; now < 10 ms
Perhaps increase πΎa ?
That would result in a βbiggerβ input to the motor for a given error.
Poles in s-plane Response
77. 76
Response To π π = π. ππ π ; π²π = ππ, ππ
Poles in s-plane Response
Changing πΎa changes the position of the closed loop poles.
Hence, step response changes.
78. 77
Response To π π = π. ππ π ; π²π = ππ, ππ, ππ
Changing πΎa changes the position of the closed loop poles.
Hence, step response changes (now critically damped).
79. 78
Response To π π = π. ππ π ; π²π = ππ, ππ, ππ, ππ
Changing πΎa changes the position of the closed loop poles.
Hence, step response changes (now underdamped).
80. 79
Response To π π = π. ππ π ; π²π = ππ, ππ, ππ, ππ, ππ
Changing πΎa changes the position of the closed loop poles.
Hence, step response changes (now more underdamped).
81. 80
Response To π π = π. ππ π ; π²π = ππ, ππ, ππ, ππ, ππ, ππ
What is happening to the settling time of the underdamped cases ?
Only just beats IBMβs first drive.
What else could we do with the controller ? Prediction ?
82. 81
Block Diagram Models
As we have just seen, a convenient way to represent a transfer function is via
a block diagram.
In this case, π π = πΊc π π π and π π = πΊ π π π
Hence, π π = πΊ π πΊc π π π
Consistent with the engineering procedure of breaking things up into little
bits, studying the little bits, and then put them together.
πΊc π π π
πΊ π
π π
Figure 15
Controller Process
π π
84. 83
Example: Loop Transfer Function
πΊc π
Controller
π π
π π
+
β
π π
πΈa π
Figure 17
πΊa π
Actuator
πΊ π
Process
π» π
Sensor
π π
π΅ π
πΈπ π = π π β π΅ π = π π β π» π π π
π π = πΊ π π π = πΊ π πΊa π π π = πΊ π πΊa π πΊc π πΈa π
= πΊ π πΊa π πΊc π π π β π» π π π
π π
π π
=
πΊ π πΊa π πΊc π
1 + πΊ π πΊπ π πΊπ π π» π
Each transfer function is a ratio of polynomials in π .
What is
πΈa π
π π
?
85. 84
Block Diagram Transformations
Combining Block In Cascade
Original Diagram Equivalent Diagram
πΊ1 π
π1 πΊ2 π π3
π2
πΊ1πΊ2
π1 π3
Moving A Summing Point Behind A Block
πΊ π3
+
Β±
π1
π2
πΊ
+
Β±
π1
π2
πΊ
π3
Original Diagram Equivalent Diagram
86. 85
Moving A Pickoff Point Ahead Of A Block
Original Diagram Equivalent Diagram
πΊ
π1 π2 πΊ
π1 π3
Moving A Pickoff Point Behind A Block
πΊ
π1
1
πΊ
π2
Original Diagram Equivalent Diagram
π2
πΊ
π2
πΊ
π1 π2
π1
π1
87. 86
Moving A Summing Point Ahead Of A Block
Original Diagram Equivalent Diagram
πΊ
π1 π3 πΊ π3
Eliminating A Feedback Loop
πΊ
1 Β± πΊπ»
π1
π2
Original Diagram Equivalent Diagram
π2
1
πΊ
π2
+
Β± Β±
π1
+
πΊ π2
π»
Β±
π1
+