Beruflich Dokumente
Kultur Dokumente
Simulink is a block diagram environment for multi-domain simulation and Model-Based Design. It supports
system-level design, simulation, automatic code generation, and continuous test and verification of embedded
systems. Simulink provides a graphical editor, customisable block libraries, and solvers for modelling and
simulating dynamic systems. It is integrated with MATLAB, enabling you to incorporate MATLAB algorithms
into models and export simulation results to MATLAB for further analysis.
Drives are found in everyday life applications such as drills, elevators, fans, robotics and many other systems
that require speed/motion control. Drives that use electric motors as their prime movers are known as
electrical drives. As such, in this experiment, you will build and simulate a dc motor drive system.
Procedure
1. Open a new window and give it a name of your choice. Using Simulink, build a subsystem of the
following figure and name it ‘Current Controller’. Set the relay’s switch on point to h/2 and switch off
point to -h/2. Left click the controller and select mask subsystem and in the parameters column define
the hysteresis band and name it h. Now, double click the masked subsystem and set h to 2 A.
2
Ia
1
g
1 Relay
Iref
Figure 1 Current Controller
Kp
1
1
Wm 1
Ki Iref
s
2
Wref
Figure 2 Speed Controller
3. After you have built the two subsystems, build the main drive model shown in figure 3 and integrate
the current and speed controllers into the main model as shown below.
<Speed wm (rad/s)>
Speed Controller
Current Controller
Wm
Iref 120
Iref
Wref Ref Speed (rad /s)
g
Ia
Ref Speed
Selection Speed Step
Scope
+ Torque (N.M)
v
- 5
Vd
LS
g
k A+ dc A-
Gto F+ F-
240 V
Vf
Circuit Description
The DC motor is fed by the DC source through a chopper which consists of GTO thyristor and free-wheeling
diode D1. The motor drives a mechanical load characterised by inertia J, friction coefficient B (internal
parameters), and load torque TL. The hysteresis current controller compares the sensed current with the
reference and generates the trigger signal for the GTO thyristor to force the motor current to follow the
reference. The speed control loop uses a proportional-integral controller which produces the reference for the
current loop. Current and Voltage Measurement blocks provide signals for visualization purpose.
Simulation
Motor starting
Start the simulation. Observe the motor current, voltage, speed and torque during the starting on the scope. At
the end of the simulation time, the system has reached its steady-state operation point.
The initial conditions to start with wm = 120 rad/s and TL = 5 N.m has been saved in the speed and torque
steps respectively.
Now, double click the Manual Switch block (Ref speed selection) to switch from the constant "Ref.
Speed (rad/s)” and restart the simulation and observe the drive’s response to successive changes in
speed reference (Save the scope graphs).
Set it back to constant Ref speed and double click the Manual Switch block (Torque selection) to
switch from the constant "Torque (N.m)” and Restart the simulation and observe the drive response to
successive changes in load torque (Save the scope graphs).
Finally, switch both of them from the Ref speed and torque selection points (simultaneously), restart
the simulation and observe the drive’s response to successive changes in speed reference and load
torque (Save the scope graphs).
General rules about lab reporting (applicable to all following lab reports of this semester):
1. Please use a word processor to typeset your report.
2. Please write the following info on the front page of your report:
Course code & name
Experiment number & name
Your Programme of study
Your name and student ID
3. Your report should include at least the following sections:
Objectives
Introduction
Simulation results
Helpful Tips
Q: How to copy the circuit diagram from Matlab/Simulink to MS Word?
A: Select the diagram using copy (Ctrl-C) and paste (Ctrl-V) into MS Word.
Q: How to copy output graph from Matlab/Simulink MS Word?
A: In the scope output window, copy (Ctrl-Print screen) and paste (Ctrl-V) into MS Word.