LCS 6th Lab Manual
LCS 6th Lab Manual
LCS 6th Lab Manual
Objectives
The objective of this lab is to give a brief introduction to Modular Servo
System (MSS), its components and mathematical modeling. The student will
be able to conduct different experiments on this hardware in the forthcoming
labs.
Theory
The Modular Servo System (MSS) consists of the Inteco digital servomech-
anism and open architecture software environment for real-time control ex-
periments. The main concept of the MSS is to create a rapid and direct path
from the control system design to hardware implementation. The MSS sup-
ports the real-time design and implementation of advanced control methods
using MATLAB and Simulink tools and extends the MATLAB environment
in the solution of digital servomechanism control problems.
Servomechanism
In control engineering a servomechanism, sometimes shortened to servo, is
an automatic device that uses error-sensing negative feedback to correct the
action of a mechanism. It usually includes a built-in encoder or other posi-
tion feedback mechanism to ensure the output is achieving the desired effect.
54
• On-line process identification
Features
• The set-up is fully integrated with MATLAB/Simulink and operates in
real-time in MS Window 2000/XP/W7
2. DC motor
3. Inertial load
4. Backlash
5. Encoder
7. Magnetic brake
Tachogenerator
An electromechanical generator is a device capable of producing electrical
power from mechanical energy, usually the turning of a shaft. When not
connected to a load resistance, generators will generate voltage roughly pro-
portional to shaft speed. With precise construction and design, generators
can be built to produce very precise voltages for certain ranges of shaft speeds,
thus making them well-suited as measurement devices for shaft speed in me-
chanical equipment. A generator specially designed and constructed for this
use is called a tachometer or tachogenerator.
By measuring the voltage produced by a tachogenerator, we can easily
determine the rotational speed of whatever it’s mechanically attached to.
55
Figure 6.1: Construction of Techogenerator
One of the more common voltage signal ranges used with tachogenerators is
0 to 10 volts. Obviously, since a tachogenerator cannot produce voltage when
its not turning, the zero cannot be live in this signal standard. Tachogenera-
tors can be purchased with different full-scale (10 volt) speeds for different
applications. Although a voltage divider could theoretically be used with a
tachogenerator to extend the measurable speed range in the 0-10 volt scale,
it is not advisable to significantly overspeed a precision instrument like this,
or its life will be shortened.
Backlash
In mechanical engineering, backlash, sometimes called lash or play, is clear-
ance or lost motion in a mechanism caused by gaps between the parts. It
can be defined as, The maximum distance or angle through which
any part of a mechanical system may be moved in one direction
without applying appreciable force or motion to the next part in
mechanical sequence.
Working
The MSS setup consists of several modules mounted at the metal rail and
coupled with small clutches. The modules are arranged in the chain. The DC
motor together with tachogenerator opens the chain. The gearbox with the
56
Figure 6.2: Explaination of Backlash
output disk closes the chain. The potentiometer module is located outside the
chain. For example the DC motor can drive activates the following modules:
inertia, backlash, encoder module, magnetic brake and the gearbox with the
output disk. The rotation angle of the DC motor shaft is measured using an
incremental encoder. Anywhere the rotational angle measurement is required
we can place the encoder. A tachogenerator is connected directly to the DC
motor and generates a voltage signal proportional to the angular velocity.
57
signal. For this reason the dimensionless control signal is the scaled input
voltage, u(t) = v(t)/v max. The admissible controls satisfy |u(t)| ≤ 1 and
Vmax = 12V .
The measurement system is based on RTDAC/PCI acquisition board equipped
with A/D converters. The I/O board communicates with the power interface
unit. The whole logic necessary to activate and read the encoder signals and
to generate the appropriate sequence of PWM pulsesto control the DC mo-
tor is configured in the Xilinx chip of the RT-DAC/PCI board. All functions
of the board are accessed from the Modular Servo Toolbox which operates
directly in the MATLAB/Simulink environment
58
Ke ω(t) Back EMF
τ = Km i(t) Electro-mechanical torque
This model is linear because the static and dry kinetic friction, as well
as the saturation are neglected. By combining the electrical and mechanical
equations we obtain the equation of a first order inertial system.
The transfer function for the motor position has the form:
α(s) Ksm
Gs = = (6.7)
v(s) s(Ts s + 1)
Here Eq. 6.7 is Angle transfer function while Eq. 6.6 is Velocity trans-
fer function
This linear model can be expressed in the state space form as:
ẋ1 = x2
ẋ2 = ax2 + bu
Where
−1
a= <0
Ts
Ks
b= >0
Ts
The matrix state space notation has the form
59
ẋ = Ax + Bu
y = Cx
Where,
0 1 0
A= , B = Ks , C = I
0 − T1s Ts
The system can be classified as a multivariable (SIMO) because it has
two measurable state variables and one control variable. The parameters Ts
and Ks must be identified by a user.
Nonlinear model
Very often small changes of the state variables are assumed. Therefore, the
control system can be considered as a linear one. However, in some applica-
tions nonlinearities in the control loop have to be taken into account. This
includes non-linear static characteristics such as hysteresis and saturation,
which may occur if the following devices are applied: operational amplifiers,
actuators, finite word length in A/D and D/A converters. Often the signal
constraint first appears for the control variable.
We will assume a nonlinear model of the DC motor in the form:
ẋ1 = x2
60
Figure 6.5: Inverted static characteristics of the servo
Lab Tasks
1. Explain following in detail and their functions in modular servo system.
• Tachogenerator
• Backlash
• Inertial load
• Magnetic brake
• Gear box
61
2. Put the values of Ksm and Ts from Eq.6.4 and Eq.6.5 in the following
transfer function
ω(s) Ksm
G(s) = = (6.8)
v(s) Ts s + 1
(a) Simulate it for step and ramp response for the parameters taken
as: J = 3.2284e−6 , β = 3.5077e−6 , K = Ke = Km = 0.0274N −
m/Amp, R = 4Ω
(b) Now take J = 2 ∗ j + Roll − number and re-drive transfer function
62
3. Take into account the effect of Inductance L which was neglected in
Fig.6.4 for linearization
63
Kg
4. If the Techogenerator T (s) = Rf +sLf
block is connected in series with
the Motor block G(s)
64
5. Use the Velocity transfer function of motor derived in Eq. 6.6 and take
the same parameter values as given in task 2(a)
65