Mec522 Part I
Mec522 Part I
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
The Watt steam engine is often used to mark the beginning of the Industrial Revolution in Great Britain. During the Industrial Revolution, Great Britain strides were made in the development of mechanisation, a technology preceding automation. Aim: to keep the steam engine at constant speed 1769 - James Watts flyball governor
2
Engine speeds up
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Triplanar
(MLaP, LCKEL/TRCHTLER)
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Controlled variable Quantity or condition that is measured and controlled. Manipulated variable Quantity or condition that is varied by the controller so as to affect the value of the controlled variable. Plant A plant is a piece of equipment, perhaps just a set of machine parts functioning together, the purpose of which to perform a particular operation. Any physical object to be controlled (such as heating furnace, a chemical reactor etc) is called a plant.
Processes A process can be defined as a natural, progressively continuing operation or development marked by a series of gradual changes that succeed one another in a relatively fixed way and lead towards a particular result or end. Disturbances A disturbance is a signal which tends to adversely affect the value of the output of the system. There are internal and external disturbances. Feedback control Feedback control is an operation which in the presence of disturbances, tends to reduce the difference between the output of a system and the reference input and which does so on the basis of the difference.
7
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
E.g. washing machine Soaking, washing, and rinsing in the washing machine are operated on a time basis. The machine does not measure the output signal, namely, the cleanliness of the clothes.
Advantages
Disadvantages
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
1. Simple construction and ease of 1. The system response very maintenance. sensitive to external disturbance and internal variations in system 2. Less expensive than a parameters. corresponding closed-loop control system 2. Recalibration is necessary from time to time in order to maintain 3. There is no stability problem the required quality in the output 4. Convenient when output is hard to measure or measuring the output precisely is economically not feasible.
A system that maintains a prescribed relationship between the output and the reference input is called a closed-loop system or a feedback control system.
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
10
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
The system uses a measurement of the output and feedback of the signal to compare it with the desired output.
11
12
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
2. Possible to use relatively inaccurate and inexpensive components to obtain the accurate control of a given plant. 3. Better control of transient & steady-state response 4. Increased accuracy - Increased ability to reproduce output with varied input.
13
In this speed control system, plant (controlled system) = the engine controlled variable = the speed of the engine error signal = the difference between the desired speed and the actual speed control signal = the amount of fuel to be applied to the plant disturbance = an unexpected change in the load 1769 - James Watts flyball governer
14
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
The equations can be obtained by utilizing physical laws governing a particular system, e.g. Newtons law of motion for mechanical systems.
15
Once the mathematical model of a system is obtained, various analytical and computer tools can be used for analysis and synthesis purposes. In general, in solving a new problem, we find it desirable first to build a simplified model so that we can get a general feeling for the solution. A more complete mathematical model may then be built and used for a more complete analysis.
A nth-order differential equation describing the input-output relation of a linear timeinvariant system.
16
Linear Systems
Linear systems are ones in which the equations of the model are linear. A differential equations is linear if the coefficients are constants or functions of the independent variable. The most important property of linear systems is that the principle of superposition is applicable. The principle of superposition states that the response produced by the simultaneous application of two different forcing forces is the sum of the two individual responses. In another word, the total effect on any output due to all the inputs acting simultaneously is obtained by adding up the outputs due to each input acting alone.
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
17
Transfer Function
Transfer functions are used to characterise the input-output relationships of systems.
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
The transfer function of a linear time-invariant, differential equation system is defined as the ratio of the Laplace transform of the output to the input under the assumption that all initial responses are zero.
If the transfer function of a system is known, the output or response can be studied for various forms of inputs. A transfer function does not provide any information concerning the physical structure of the system. Block diagram
G (s)
18
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
where c(t) is the output, r(t) is the input, and ais and bi s are constants. Taking Laplace transform of both sides and assuming all initial conditions are zero.
Rearrange
19
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
By using the concept of the transfer function, it is possible to represent system dynamics by algebraic equations in s. If the highest power of s in the denominator of the transfer function is equal to n, the system is called an nth-order system. The transfer function is said to be strictly proper if m<n . If m = n then the transfer function is proper. It is improper if m > n.
20
Characteristic Equation
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Characteristic Equation The characteristic equation of a LTI system is defined as the equation obtained by setting the denominator polynomial of the transfer function to zero. The stability of a linear single-input single-output system is governed completely by the roots of the characteristic equation
21
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Since the principle of superposition is valid for linear systems, we can write the simultaneous equations for the output variables as
22
Stability
A stable system is defined as a system which gives a bounded output in response to a bounded input.
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
stable neutral
unstable
23
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
u(t) = input y(t) = output g(t) = impulse response This response is bounded (stable) if and only if the absolute value of the impulse response, g(t), integrated over an infinite range, is finite. That is
Mathematically, this is satisfied when the roots of the characteristic equation, or the poles of G(s), are all located in the left-half of the s-plane.
24
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Stable
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
A system is open-loop stable if the poles of the open-loop transfer function G(s)H(s) are all in the left hand side of splane. A system is closed-loop stable (or simply stable) if the poles of the closed-loop transfer function (or zeros of 1+G(s)H(s)) are all in the left hand side of s-plane
26
Block Diagram
Example: DC Motor
Wiring Diagram
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Block Diagram
27
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
28
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
29
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
30
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
31
Prove of Rule 6
(i) (ii)
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Substitute (i)
Substitute (ii)
32
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
33
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
34
35
36
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
37
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
38
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
39
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
40
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
41
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Gain
Input
Output
42
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
43
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
44
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
45
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
46
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
3. 4.
5.
For a given system, a signal graph flow is not unique. Many different signal flow graphs can be drawn for a given system by writing the system equations differently.
47
SFG Algebra
1. The value of the variable represented by a node is equal to the sum of all the signals entering the node.
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
2. The value of the variable represented by a node is transmitted through all branches leaving the node.
48
SFG Algebra
3. Parallel branches in the same direction connecting two nodes can be replaced by a single branch with the gain equal to the sum of gains of the parallel branches.
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
4. A series connection of unidirectional branches can be replaced by one branch with gain equal to the product of branch gains.
49
SFG Algebra
5. A mixed node may be eliminated.
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
50
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
51
3. Identify the non-touching loops taken two at a time, three at a time and so on. Determine the product of the non-touching loop gains. 4. Determine and . 5. Substitute all of the above information into the gain formula:
Care must be taken when applying the gain formula to ensure that it is applied between an input node and an output node.
52
Example 1
Consider the SFG of a closed loop control system as given in Figure below. By using the gain formula, find the transfer function Y(s)/R(s).
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
1. Identify the no. of forward paths and determine the forward-path gains. 2. Identify the no. of loops and determine the loop gains. 3. Identify the non-touching loops taken two at a time, three at a time and so on. Determine the product of the non-touching loop gains. 4. Determine and . 5. Substitute into the gain formula.
Only 1 forward path between R(s) and Y(s). The forward-path gain is P1 = G(s) . Only 1 loop. The loop gain is L1 = -G(s)H(s)
No non-touching loops.
53
Example 2
For the system shown in Figure below, determine the gain between y1 and y5 .
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
1. Identify the no. of forward paths and determine the forward-path gains.
54
Example 2
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
L4 L1 L3 L2
55
Example 2
L4
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
L1
3. Identify the non-touching loops taken two at a time, three at a time and so on. Determine the product of the non-touching loop gains.
56
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Example 2
4. Determine and .
Fakulti Kejuruteraan Mekanikal Universiti Teknologi MARA
57
Example 2
5. Substitute into the gain formula.
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
58
2. Interconnect the nodes & indicate the directions of signal flow by using arrows. 3. Identify the blocks - they are replaced with branches. For each negative sum, a negative sign is included with the branch. 4. Add unity branches as needed for clarity or to make connections. 5. Simplify the SFG eliminate redundant nodes/branches 6. Label the input/output signals and the branches accordingly.
59
Example
Block Diagrams to SFG + Masons Rule
Convert the block diagram in the figure to a signal flow graph and determine the transfer function using Masons gain formula.
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
60
Example
Block Diagrams to SFG + Masons Rule
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Identify the input/output signals, summing junctions & pickoff points they are replaced with nodes.
61
Example
Block Diagrams to SFG + Masons Rule
Interconnect the nodes & indicate the directions of signal flow by using arrows.
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
62
Example
Block Diagrams to SFG + Masons Rule
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Identify the blocks they are replaced with branches. For each negative sum, a negative sign is included with the branch.
63
Example
Block Diagrams to SFG + Masons Rule
64
Example
Block Diagrams to SFG + Masons Rule
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
1. Identify the no. of forward paths and determine the forward-path gains.
65
Example
Block Diagrams to SFG + Masons Rule
L4
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
L5 L1 L3 L2
66
Example
Block Diagrams to SFG + Masons Rule
L4
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
L5 L1 L3 L2
3. Identify the non-touching loops taken two at a time, three at a time and so on. Determine the product of the non-touching loop gains.
67
Example
Block Diagrams to SFG + Masons Rule
4. Determine and .
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
68
Example
Block Diagrams to SFG + Masons Rule
5. Substitute into the gain formula.
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
69
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
70
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
71
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
72
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Using Newtons law: Taking Laplace transform, assuming zero initial conditions
Transfer function :
73
An Inverted Pendulum
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Cart motion
Given Rotational motion of pendulum rod about its cg Horizontal motion of pendulum rod about its cg Vertical motion of pendulum rod about its cg
74
An Inverted Pendulum
linearised Cart motion
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Rotational motion
= Laplace transform
Therefore
75
Two-position or on-off
Proportional (P) Integral (I) Proportional-plus-integral (PI) Proportional-plus-derivative (PD) Proportional-plus-derivativeplus-integral (PID)
A controller can realize these control actions by means of pneumatic circuits, analogue electronic circuits involving operational amplifiers or by the programming of a microprocessor or computer.
76
The controller is essentially just a switch which is activated by the error signal and supplies just an on-off correcting signal relatively simple and inexpensive widely used in both industrial and domestic control systems the output signal from the controller m(t) remains at either a maximum or minimum value, depending on whether the actuating error signal is positive or negative constants output signal from the controller actuating error signal
usually either zero or M1 Two-position controllers are generally electrical devices, electric solenoid-operated valve or pneumatic proportional controller (high gain)
77
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
Differential gap = the range through which the actuating error signal must move before the switching occurs
78
filling curve
emptying curve
79
e(t)
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
m(t)
The controller produces a control action that is proportional to the error. The bigger the error signal the bigger the correcting signal. Thus as the error is reduced, the amount of correction is reduced and the correcting process slows down. controller output transfer function actuating error signal proportional sensitivity/gain
80
e(t)
Ki s
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
The controller produces a control action that is proportional to the integral of the error with time. Thus a constant error signal will produce an increasing correcting signal. The correction continues to increase as long the error persists. The integral controller can be considered to be looking-back, summing all the errors and thus responding to changes that have occurred. transfer function
adjustable constant
81
The controller produces a control action that is proportional to the rate at which the error is changing. When there is a sudden change in the error signal the controller gives a large correcting signal. When there is a gradual change only a small correcting signal is produced. Can be considered to be a form of anticipatory control in that the existing rate of change of error is measured, a coming larger error is anticipated and correction applied before the larger error has arrived. Derivative control is not used alone but always in conjunction with proportional control and, often, integral control.
82
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
83
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
84
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
85
86
Compiled by Dr.-Ing. C.Y. Low, Faculty of Mechanical Engineering, Universiti Teknologi MARA
87