In this chapter a range of systems will be considered including mechanical, electrical, thermal & fluid examples.. Systems can be made up from a range of building blocks from a number of
Trang 1ME 1402 – MECHATRONICS (UNIT – III)
SYSTEM MODELS
This chapter determines how the systems behave with time when subjected to some disturbance E.g A microprocessor switches on a motor The speed will not attain immediately but it will take some time to attain full speed
In order to understand the behavior of the systems, mathematical models are needed These models are equations which describe the relationship between the input and output of a system The basis for any mathematical model is provided by the fundamental physical laws that govern the behavior of the system In this chapter a range of systems will be considered including mechanical, electrical, thermal & fluid examples
Systems can be made up from a range of building blocks from a number of basic building blocks
MECHANICAL SYSTEM BUILDING BLOCKS
The basic building blocks of the models used to represent mechanical systems are
1) Springs 2) dashpots 3) masses
Springs
Springs represents the stiffness of the system The fig shows a spring subjected to force F
1
Trang 2In case of spring the extension (or) compression is proportional to the applied forces.
x K
F – Applied force x – extension k – a constant
The spring when stretched stores energy, the energy being released when the spring back to its original length The energy stored,
K
F x K E
2
2
In ideal case damping or resisting force F is proportional to the velocity of the piston Thus
Trang 3Masses represent the inertia or resistance to acceleration
According to Newton’s II law F = ma
=m dv dt = 22
dt
x d m
There is also energy stored in mass, when it is moving with velocity V1 The energy being referred to as kinetic energy, and released when it stops moving
P = C V 2
ROTATIONAL SYSTEMS
The spring, dashpot and mass are the basic building blocks for
mechanical systems when forces and straight line displacementsare involved without any rotation
If there is rotation then the equivalent three building blocks are a
torsional spring, a rotary damper and the moment of inertia, i.e,
3
Trang 4the inertia of a rotating mass With such building blocks the inputs are torque and the outputs angle rotated
With a torsional spring the angle θ rotated is proportional to the toque T Hence
With the rotary damper a disc is rotated in a fluid and the resistive toque T is proportional to the angular velocity ω, and since angular velocity is the rate at which angle changes i.e d dtθ
The moment of inertia building block exhibits the property that
the greater the moment of inertia I the greater the torque needed
to produce an angular acceleration α
Thus, since angular acceleration is the rate of change of angularvelocity, i.e
dt
dω, and angular velocity is the rate of change ofangular displacement, then
4
Trang 5The torsional spring and the rotating mass store energy; the rotary damper just dissipates energy The energy stored by a torsional spring when twisted through an angle θ is ½ kθ2 and since T = k θ this can be written as
The energy stored by a mass rotating with an angular velocity ω
is the kinetic energy E, where
The power P dissipated by the rotary damper when rotating with an angular velocity ω is
5
Trang 6BUILDING UP A MECHANICAL SYSTEM
TRANSLATIONAL MECHANICAL SYSTEM
Spring mass damper system:
A spring mass damper system is shown in fig The system is fixed
at one end and the mass is supported by a spring and damper The mass is excited by force and free to oscillate The equation of motion related to horizontal motion x of mass to applied force can be developed with of a free body diagram
Net force applied to mass
v B x k F
6
Trang 7dt
dx B kx
m - (2)
Equation (1) = (2) Apply Newton’s II law of motion
2
2
dt
x d m
dt
dx B kx
=
dt
dx B kx dt
x d m
Trang 88
Trang 9
9
Trang 10ELECTRICAL SYSTEM BUILDING BLOCKS
The basic building blocks of electrical building blocks are inductors, capacitors, and resisters
Capacitors are used to stored charge to increase the voltage by
iV A capacitor consists of two parallel plates separated by insulating material and capacitor act as a strong device of energy The voltage equation for a capacitor is
idt C
10
Trang 112 The voltage law state that the sum of the voltage input equal the sum of the voltage drop in any closed loop.
BUILDING UP A MODEL FOR ELECTRICAL SYSTEM
NODE ANALYSIS
11
Trang 12MESH ANALYSIS
12
Trang 13RESISTOR CAPACITOR SYSTEM (RC SYSTEM)
13
Trang 14RESISTOR INDUCTOR SYSTEM (RL SYSTEM)
14
Trang 15RESISTOR INDUCTOR CAPACITOR SYSTEM (RLC SYSTEM)
15
Trang 16ANOTHER ILLUSTRATION FOR RLC SYSTEM
16
Trang 17FLUID SYSTEM BUILDING BLOCKS
The three basic building blocks of a fluid flow system can be considered to be equivalent of electrical resistance, inductance and capacitance Fluid systems can be considered to fall in to two categories
1 Hydraulic 2 Pneumatic
In hydraulic the fluid is a liquid and considered to be incompressible In pneumatic gas is used and which can be compressed
HYDRAULIC SYSTEMS
1. Hydraulic resistance(R)
It is the resistance to flow which occurs as a result of a liquid flowing through valves or changes in pipe diameter The relationship between the volume flow rate and resistance element and the resulting pressure difference
q R P
P1 − 2 = Where R = hydraulic resistance
17
Trang 182 Hydraulic capacitance
This term is used to describe energy storage with a liquid when it
is stored in the form of potential energy
hydraulicc g
A whereC
P d A q
AH d q
q
ρ
ρ
ρ ρ
Trang 193 Hydraulic inertance
It is equivalent of inductance in electrical systems or a spring in mechanical systems To accelerate a fluid and so increase its velocity a force is required Consider a block of liquid of mass m The net force acting on the liquid,
2 1 2
L P
2 1
19
Trang 20PNEUMATIC SYSTEM
20
Trang 23Building up a model for fluid system
23
Trang 24Derive the relationship between the height of liquids in the two containers with time.
Capacitor for the container 1
dt
dp c q
q1 − 2 = 1
g h p g
A q
2 1 2
1 p R q
∴
2 1 2
1 g h . g R .q
(h1 −h2)ρg =R1.q2
24
Trang 25( )
2 1
2
R
h h
=
- (2)Sub (2) in (1) ( )
dt
dh A g R
h h
1 1
2 1
1 − − ρ = -(3)The above equations describe how the height of liquid in container 1 depends on the input rate of flow
Capacitor for container 2
dt
dp c q
at which it leaves the valve R2
For resistor p2 −p3 =R2.q3 p3 = 0
3 2
2 2
2
2 − ρ = - (6)Sub (2) in (6)
dt
dh A R
g h R
g h
2 2
2 1
Trang 28THERMAL SYSTEM BUILDING BLOCKS
For thermal system, there are only two building blocks
1 Thermal Resistance.2 Thermal Capacitance
KA
L
R th =When mode of heat transfer is convection
Trang 29It is a measure of the store of energy in a system.
dt
dT c m Q
dt
dT C Q
Q1 − 2 = h×Q1= rate of flow of heat into the system
Q2= rate of flow of heat out from the system
M= mass C= specific heat Ch= thermal capacitance
=
dt
dT
Rate of change of temperature
BUILDING UP A MODEL FOR THERMAL SYSTEM
29
Trang 3232
Trang 33ADDITIONAL PROBLEMS
33
Trang 35ROTATIONAL – TRANSLATIONAL SYSTEMS
35
Trang 36ELECTRO- MECHANICAL SYSTEMS
POTENTIOMETER
36
Trang 37
HYDRAULIC – MECHANICAL SYSTEMS
37
Trang 3838
Trang 3939
Trang 4040
Trang 41
41
Trang 4242
Trang 43Open-loop control is essentially just a switch on-switch off form
of control, e.g an electric fire is either switched on or off in order to heat a room With closed-loop control systems, a controller is used
to compare the output of a system with the required condition and convert the error into a control action designed to reduce the error
In this chapter we are concerned with the ways in which controllers
can react to error signals, i.e the control modes as they are termed,
which occur with continuous processes
Control modes:
43
Trang 44TWO – STEP MODE
44
Trang 45Oscillations with two step mode Two step control with two
controller switch points
45
Trang 46PROPORTIONAL MODE (P)
46
Trang 48DERIVATIVE CONTROL (D)
48
Trang 49PROPORTIONAL PLUS DERIVATIVE CONTROL (PD)
49
Trang 50INTEGRAL CONTROL (I)
50
Trang 52PROPORTIONAL PLUS INTEGRAL CONTROL (PD)
52
Trang 53PID CONTROLLERS
53
Trang 54DIGITAL CONTROLLERS
The digital controller requiring inputs which are digital, process the information in digital form and give an output in digital form The controller performs the following functions:
1) Receives input from sensors
2) Executes control programs
3) Provides the output to the correction elements
As several control systems have analog measurements an analog – to digital converters (ADC) is used for the inputs The fig shows the digital closed – loop control system which can be used with a continuous process
The clock supplies a pulse at regular time intervals, and dictates when samples of controlled variables are taken by ADC
These samples are then converted into digital signals which are compared by the microprocessor with the set point value to give the error signal The error signal is processed by a control mode and digital output is produced
54
Trang 55The digital output, generally offer processing by an DAC since correction elements generally require analog signals, can be used to initiate the corrective action.
Sequence of operation
1) Samples the measured value
2) Compares this measured value with the set value and stored values of previous inputs and outputs to obtain the output signal
3) Send the output signal to DAC
4) Waits until the next samples time before repeating the cycle
55
Trang 56A higher speed response, with fewer oscillations, can be obtained by using the PD control An alternative of achieving the same effect and this is by the use of a second feedback loop that gives a measurement related to the rate at which the displacement is changing This is termed as velocity feed back.
The velocity feed back might involve the use of a tacho-generator giving a signal proportional to the rotational speed of the motor shaft and hence the rate at which the displacement is changing and the displacement might be monitoring using a rotary potentiometer
ADAPTIVE CONTROL
The adaptive controllers change the controller parameter to adapt
to the changes and fit the prevailing circumstances Often the control parameters of the process changes with time (or) load This will alter the transfer functions of the system Therefore returning of the system is desirable, for the controllers OR
For a control system it has been assumed that the system once tuned retains its value of proportional, derivative, and integral constant until the operator decides to retune The alternative to this
is an adaptive control system which adapts to changes and changes its parameters to fit the circumstances prevailing
The adaptive control system can be considered to have three stages of operation,
1) Starts to operate with controller conditions set on the basis of an assumed condition
2) The designed performance in continuously compared with the actual system performance
56
Trang 573) The control system mode and parameters are automatically and continuously adjusted in order to minimize the difference between the desired and actual system performance.
Adaptive control system can take a number of forms The three commonly used forms are:
1 Gain scheduling control
2 Self – tuning control
3 Model – reference adaptive control
Gain scheduling control
With gain scheduling control, present changes in the parameter of the controller are made on the basis of some auxiliary measurement
of some process variable The term gain – scheduled control was used because the only parameter originally adjusted was to gain is kp
Self tuning
57
Trang 58With self tuning control system continuously tunes its own parameter based on monitoring the variable that the system is controlling.
Self- tuning is found in PID controllers It is generally refers to auto- tuning When the operator presses a button, the controller injects a small disturbance into the system and measures the response This response is compared to the desired response and the control parameters are adjusted
Model – reference control
Model reference system is an accurate model of the system
is developed The set value is then used as input to both model systems and actual systems and the difference between the actual output and output from the model compared The difference in these signals is then used to adjust the parameters of the controller to minimize the difference
58
Trang 59Microprocessors made possible the advent of the microcomputer in the mid- 1970s.Before this period, electronic CPUs were typically made from bulky discrete switching devices (and later small-scale integrated circuits) containing the equivalent of only a few transistors By integrating the processor onto one or a very few large-scale integrated circuit packages (containing the equivalent of thousands or millions of discrete transistors), the cost of processor power was greatly reduced Since the advent of the IC in the mid-1970s, the microprocessor has become the most prevalent implementation of the CPU, nearly completely replacing all other forms.
Definition
The microprocessor is a program controlled semiconductor device (IC), which fetches (from memory), decodes and executes instructions It is used as CPU (Central Processing Unit) in computers
Microprocessors are now rapidly replacing the mechanical cam operated controllers and being used in general to carry out
59
Trang 60control functions They have the great advantage that a greater variety of programs became feasible.
60
Trang 6161
Trang 621 General purpose registers
registers but access is not required, it is an internal operation Thus it provides an efficient way to store intermediate results and use them when required The efficient programmer prefers to use these registers to store intermediate results than the memory locations which require but access and hence more time to perform the operation
2 Temporary Registers
a) Temporary Data Register
62
Trang 63The ALU has two inputs One input is supplied by the accumulator and other from temporary data register The programmer cannot access this temporary data register However, it is internally used for execution of most of the arithmetic and logical instructions For example, ADD B is the instruction in the arithmetic group of instructions which adds the contents of register A and register B and stores result in register
A The addition operation is performed by ALU The ALU takes inputs from register A and temporary data register The contents
of register B are transferred to temporary data register for applying second input to the ALU
b) 'W and Z Registers
W and Z registers are temporary registers These registers are used to hold 8-bit data during execution pf some instructions These registers are not available for programmer, since 8085 uses them internally
Use of W and Z Registers
The CALL instruction is used to transfer program control to
a subprogram or subroutine This instruction pushes the current
PC contents onto the stack and loads the given address into the
PC The given address is temporarily stored in the W and Z registers and placed on the bus for the fetch cycle Thus the program control is transferred to the address given in the instruction XCHG instruction exchanges the contents of H with D and L with E At the time of exchange W and Z registers are used for temporary storage of data
63