Professional Documents
Culture Documents
Article is describing a controller synthesis for two- program package. Since the characteristics of actuators
dimensional electromechanical system of the ball and and sensors demand work in the real-time, the program
plate intended for a study of the system dynamic and Real-Time Toolbox that allocate, with help of additional
laboratory experiments with different proceeding of sorter, the processor time to the operating system and to
the control based on the classical and modern control the program performing in the real time, have been added.
theory. The system includes the quadratic metal plate, The picture-framing interface receives the analogous video
which is movably fixed in the center. Its inclination can signal, which digitizes with A D converter and saves as
be changeable in two rectangular directions. For the data-sheet into storage. A computer determines, from the
inclination of the plate a servo-drive with a controller received data, the position of the ball and calculates the,
and two stepping motors are used 151. difference between reference and real value on which basis
The control problem of the described system is to hold the controller generates a signal that is needed for the
the freely rolling ball in the specific position on the driving-gear of the stepping motors. According to the
plate. For measuring the ball position, the intelligent characteristics of the system dynamic a discrete phase-lead
video system composed from CCD camera, picture- controller has been chosen [2].
framing interface and program equipment for real- Performing experiments up to the sample of a ball on the
time picture processing are used. According to the plate, the modern method of experimenting, called ))Rapid
characteristics of the object dynamic a discrete lead Prototypinga, has been chosen. The main aim was to pass
compensator was chosen as a controller 12). over the phase of simulation up to the real object
Performing experiments up to the sample of a ball on experiments with the least changes possible.
the plate, the modern method of experimenting, called
))Rapid Prototypingu 161, has been chosen. The main 2 Modeling and linearization of the object
aim was to pass over the phase of simulation up to the
real object experiments with the least changes possible. The starting point of modeling is the Lagrange’s equation
1 Introduction daw,
dt aii
aw,+aw,=<
aqi aqj (1)
Figure 2: The block scheme of the linear object model To fulfill the condition (7) a next expression must be true:
y-ay-6 >0 (12)
Associating the linear models of electrical and mechanical Since parameters6 and y are positive from where it
subsystems we obtain the transfer function describing the
linear object model (Figure 2): follows that a can assume the highest value:
1065
We obtain an interval in which we search the value fof When searching the controller that would be optimal in the
parameter a : ISE sense, its calculation needed to be done in the most
6 Y points possible inside spaceF(K, (S),a(S),S) .
a,,<a<a,, 3 -<a<!-- (14)
0- 6 The ))Brute Forcea method, performed with Matlab
The area of changing parameter a and consequently program, has been used for searching the criterion index
positioning controller’s pole depends on chosen controller minimum. Figure 5 represents a chart of the criterion index
zero 6 . in dependence on KRand parameter a.
We obtain two straight lines (Figure 3), the valid area is on
the interval where the straight line a,, lies above the
straight line G,,, The
. next step is to calculate the
controller gain KRmo= f ( a , S ) , where the system is still
stable over the area a ~ ( a ~ , ~ ( ~ ) , a - ( ~ ) ) ~ ~ € ( ~ ~ , ~ , ~ ~ ) .
We obtain a plane defining the maximum controller gain at
chosen values a and 6 (Figure 4).
Error has been used [41. In the experimental phase the so called ))Rapid
The characteristic of ISE is, because of squaring, to Prototyping(( method [6] has been used. Rapid Prototyping
increase an effect of bigger signals and to reduce an effect of control systems is generally referred to as methods and
of smaller error signals. That’s why the controlled systems, tools to solve control problems fast and efficiently. This
for which we optimize the controller according to this includes
criterion, are quick and have pretty large gradient at the theoretical methods of control engineering from
stepping change of reference, which is the consequence of designing a system model and system analysis to
high square error value in the beginning of transient. the design of a control strategy,
test and optimization of the control strategy in a
simulation environment
automatic code generation for a real-time system
operating a test stand and
verification and optimization of the controller
with the target object on the test stand.
The experiment-simulations part has been performed with
Matlab-Sirnulink program package and for the real object
experimentation’s the additional Real-time Toolbox has
been used. The Real-time Toolbox is a tool package
associating the Matlah and the Simulink with the outside
world to attain the data from environment in real time,
Figure 4 Maximum allowed controller gain according to their immediate treatment with the Matlab and the
the chosen controller zero and pole position Simulink orders and models and then sending them back to
the outside world. The setting of performing concept: a
driver is simply called by input/output device orders
without knowing its details.
1066
The Real-time Toolbox translates the Simulink diagram The simulation and actual controlled system results
(Figure 6) into a program code and then by using a obtained are in accordance with appointed demands and
specific object translator into an executive cod [6,7]. expectations (Figure 7 and 8). The stationary error is a
consequence of an object non-linearity (irregular ball
e
h .w
..
geometry) and of a sensor resolution limitation.
5 Conclusion
0I-
References
D. DonlagiC, T. ZoriE, R. SveEko, Diskrefni
regulacijski sistemi, Univerza v Mariboru, TehniSka
fakulteta, Elektrotehnika, raEunalniStvo in
infonnatika, Maribor, 1992.
B. ZupanEiE, Zvezni regulacijski sistemi 1. del,
Univerza v Ljubljani, Fakulteta za elektrotehniko,
1996.
D. Matko, Diskretni regulacijski sisfemi, Univerza
1:
I
; A & ;o ;5 3s
' ;
I i Edvarda Kardelja v Ljubljani, Fakulteta za
elektrotehniko, 1986.
A. Chowdbury, Robustna sinteza regulacijskih
Figure 7 Response on a step reference signal sistemov z upoitevanjem performaninih kriterijev :
doktorska disertacija, Univerza v Mariboru,
-8Ww
Fakulteta za elektrotehniko, raEunalniStvo in
informatiko, 2001.
HUMUSOFT CE151 Ball&Plate Apparatus Users
Manual.
HUMUSOFT Real Time Toolbox for use with
MATLAB Users Manual.
Matlab-Simulink User Guide
1067