Documente Academic
Documente Profesional
Documente Cultură
Control Group
RMIT University
Preface
Note
Please check the Feedback website for THE HEALTH AND SAFETY AT
WORK ACT 1974, PRODUCT IMPROVEMENTS, COMPONENT
REPLACEMENT, DECLARATION CONCERNING ELECTROMAGNETIC
COMPATIBLITY and its COPYRIGHT NOTICE BEFORE starting the lab.
Declaration
The first chapter is a brief introduction of the Modular Servo System
MS150. The copyrights of the product, MS150 belong to Feedback
Company. Please contact Feedback Company or check its official
website to obtain the authorized manual book with detailed
datasheets. The xPC Target System which is a Mathworks product,
Mathworks holds the copyrights of it. The Second Chapter only
refers a part of its content which will be used in the lab system.
Copyright Notice
RMIT University reserves all the copyrights of the lab design. No part
of this publication may be reproduced, stored in a retrieval system,
or transmitted, in any form or by any means, electronic, mechanical,
photocopying, recording or otherwise, without the prior permission
of RMIT University.
School of Electrical and Computer Engineering
Control Group
Contents
MS150…….2
Lab……………….3
System……………………………………….5
Card………………………………………..6
Target……………………………………………………
……………..….7
Lab……………….11
Lab…………...12
1
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
Speed Control
Lab…………………………………………………………
………………………14
4. Lab
Activities…………………………………………………
……………….21
5. Further
Development……………………………………………
…….24
Reference………………………………………………………………
…………………………….25
Appendix………………………………………………………………
……………………………..26
2
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
MS150 System
MS150
The Feedback Modular Servo System was designed to help students
understand the principle of open or closed-loop control theory. Also,
it is ideally suitable to be used in basic engineering training
programs.
4
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
MS150 System
PS150E
The unit PS150E serves as the power supply of the system. Inputs
are 120v~2A(T) and 230v~1A(T), 50/60Hz. The unit supplies +24v
dc unregulated at 2A, +/-15v regulated at 0.5A, 18v ac at 1A, 9-0-9v
5
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
System
SA150D
This unit is used to operate either the DC motor in the lab, or an AC
motor system in MS150. There is a protection circuit built inside to
avoid overload of the motor.
DCM150F
The motor in this unit is a permanent magnet DC motor, which has
the limitation speed at 3000 radium/min. The torque is 2A for 0.1
Nm.
GT150X
The Reduction gear tacho unit installed a 30/1 reduction gear and a
tacho-generator. The speed feedback of the motor can be read
directly from the unit in terms of 2.75 volts/(1000r/min), or 5V/
(1800r/min).
6
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
System
real-time systems.”[4]
7
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
8
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
System
9
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
System
1) Physical Connection
As depicted in Fig2.2, XPC Target users should first set up the host
PC and target PC. Remember Simulink models will be built and
simulated on the host PC, and the real- time applications can be
operated on the target PC. In Fig2.2, the laptop is used as the host
PC with a Simulink model running on it, and the PC behind it is the
target PC which is connected to the monitor. The monitor is used to
observe signals from the xPC Target System. As the figure shows,
there are two scopes on the screen corresponding to the two Target
scopes in the Simulink model; the bar on the top describes the
setting of the current system. Once it has been finished, users can
connect the target pc to the host pc using available data cable.
Ethernet cable is recommended for its stability and high data
transmitting speed. Finally, the control target, namely in this lab,
MS150 system shown as on the left hand side of the figure can be
connected to the target pc through PCI and its interface card.
10
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
11
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
System
2) xPC Target Explorer Setting
Run the Matlab on the host PC, and type in the command “xpcexplr”
to run the xPC Target Explorer as shown below.
Using the xPC Target Explorer, users need to complete the following
operations:
a) To start with, user should select the C/C++ compiler from
“Compilers Configuration”.
d) Insert the CD into the target PC, and boot its system directly
from the CD drive. The target PC will log onto the xPC Target
System.
13
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
14
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
System
d) Solver: normally set start time as 0s, and set stop time long
enough for observation. In the lab environment, Fix-step type
of solver is highly recommended. Fundamental sampling time
should be faster than any of sample time setting of the blocks
in the model.
f) After the above three steps have been finished, model can be
downloaded by clicking on the “built” button.
g) Turn on the power of the control target and run the real-time
application normally or externally.
15
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
In this chapter, the connection of the MS150 system and the set up
of the xPC Target System for the DC Motor Speed Control Lab will be
introduced in the first and second section. The following section
explains how to precede system identification and PID control on
this platform. The last section generalizes the possibilities for further
development for this lab environment.
Features
• Graphical model design is intuitive for students to understand
the control theory.
• The lab can be easily extended using the potentio -meter unit of
MS150, and professional programmers can design GUI interface
for the lab with Microsoft Visual Basic Express or directly
generate from Matlab.
16
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
b) Lab connection
Please connect the wires to the ports on each unit according
to the following figure.
Fig3.2 NI CB-68LP
3) Trouble Shooting
Only the most frequently appeared problems and their possible
solutions are listed below.
• Motor noise: if the motor is too noisy even under low input
gain situation, please check the coupling between the unit
DCM150F and GT150X. Maybe, it was not tighten enough.
Another possible problem could be the misalignment
between the bearings of the two units.
19
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
1) xPC Explorer
Start Matlab and run xPC Target Explorer
The xPC Target Explorer is the interface for the xPC Target
System users to set up the configuration for the connection
between the host PC and one or several target PCs. As the
above figure shows, the xPC Target Hierarchy can be observed
from the left hand side of the window. It shows the compilers
20
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
21
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
22
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
23
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
24
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
The above configuration set the running time as from the very
beginning to infinite. For the DC Motor Speed Control Lab, the
solver type is expected to be fixed step. Since the lab is the
25
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
26
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
27
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
2) Trouble Shooting
Only the most frequently appeared problems and their
possible solutions are listed below.
• Cannot find xPC Target library: please install the toolbox of xPC
Target into your Matlab.
28
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
• Reference and Gain: these two blocks are used to set the
reference point for the control target DC motor. The amplitude
of the reference can be set in the parameter settings of the
Reference block, or it can be changed directly on Gain even
during the motor is running.
• Target Scope: these two blocks are found from the xPC Target
Library, and are specifically designed to show control
information on the monitor of the target PC. The data can be
shown in several ways according to the settings of the block.
For example, users can determine whether to show the data in
graphical mode, or numerical mode.
31
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
Remote Control Lab: with a local router, the xPC target and its host
and be connected to internet, which allows users could control it
from distance. A specific IP is required for the system in this case.
33
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
Reference
34
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
Appendix
2. GUI Interface
35
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
Appendix
36
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.
School of Electrical and Computer Engineering
Control Group
Appendix
2. GUI Interface
37
RMIT University
School of Electrical and Computer Engineering
Prof. Liuping Wang, Dr. N.V. Truong, Dae Yoo, Xuan Liu, Rex Lee.