Labcomp Part1 Mds
Labcomp Part1 Mds
Labcomp Part1 Mds
Johansson Christian Larsson, Oscar Fl ardh, Mikael Johansson and Bjorn Automatic Control/School of Electrical Engineering/KTH Based on material developed by Krister Edstrom, and Jan-Erik Stromberg Thomas Schon, Automatic Control, Linkopings Universitet
Goal: The goal is to gain experience and insight in modeling and simulating a realistic industrial system. Models of an industrial measurement robot will be developed using Simulink and Dymola.
NB: You need to have a good understanding of the underlying phenomena when you develop a mathematical model of a real system. This means that modeling will take a lot of time. It is therefore crucial for you to thoroughly prepare before the laboratory exercises! Do the preparation tasks before the laboratory session. 1
Contents
1 Introduction 2 System Desription 2.1 Servo Motor . . . . 2.2 Toothed Belt Drive 2.3 Lead Screw Drive . 2.4 Robot Arm . . . . . 2.5 Current Regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 4 6 6 6 6 7 7 7 8 9 9 9 9 10 11
3 Laboratory Exercise 1 Modeling the Servo Motor 3.1 Purpose and Content . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Preparatory Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Laboratory Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 4 Laboratory Exercise 2 Modeling of the Complete Robot 4.1 Purpose and Content . . . . . . . . . . . . . . . . . . . 4.2 Modeling Tips . . . . . . . . . . . . . . . . . . . . . . . 4.3 Preparatory Exercises . . . . . . . . . . . . . . . . . . . 4.4 Laboratory Exercises . . . . . . . . . . . . . . . . . . . A Tables . . . . . . . . . . . . . . . . . . . . . . . .
1 Introduction
We will develop a model of an industrial measurement robot and verify that the model behaves as expected in simulations. The robot under consideration is shown in Figure 1.
Figure 1: Two pictures of the robot. The exercise is divided into two four-hour sessions. In the rst session, we will model the servo controlling the robot arm. We will develop a model based on a block diagram, which can be simulated in Simulink, and we will develop an object oriented model, which can be simulated in Dymola. Both Simulink and Dymola are described in the appendix. In the second session, the model will be extended to a more complete model of the complete robot arm. This extension is only done in Dymola. There are preparation tasks to be done before both sessions. It is very important that you have carefully done the preparation tasks, otherwise there will not be time to complete the exercise.
2 System Desription
An intuitive picture of the system is shown in Figure 2: an external voltage source serves as reference signal for a current regulator, which drives a servo motor. The servo motor is connected to transmissions, a toothed belt drive and a lead screw drive, that change the vertical position of the robot arm.
Figure 2: Explanatory sketch of the robot arm. An alternative picture of the subsystems and how they interact is shown in Figure 3. More detailed descriptions of the subsystems follow below.
Figure 3: The main components in the system and their interaction. The interaction quantities are expressed in SI-units.
Figure 5: The motor. The electrical data and mechanical data for the DC motor are given in Figure 9. The motor under consideration is M-586-0585. In Figure 9, there is a diagram with two curves corresponding to M-5860585. The upper curve species three constraints on the motor: maximum number of revolutions, maximum torque, and maximum power (try to nd out how!). The lower curve species the relationship between torque and angular velocity when the current to the motor is kept constant. This current is called continuous stall current and it can be read to be 3.9 A. In the section winding specications in Figure 9, there are two resistors and one inductor. The reason for this is that the winding is not an ideal inductor. The winding is both inductive and resistive. In Figure 5, RI corresponds to the armature resistance, Rr + RI corresponds to the terminal resistance, and II corresponds to the armature inductance.
In reality, the servo is connected to a tachometer, see Figure 4. The tachometer makes it possible to use the angular velocity of the servo in the feedback controller. However, since we are not going to do controller design, we neglect the tachometer.
6. If you have not used Dymola before it you should briey read through the Getting started guide (http://www.3ds.com/fileadmin/PRODUCTS/ CATIA/DYMOLA/PDF/Getting-Started.pdf).
use the libraries Electrical (Basic and Sources), Mechanical (Rotational and Translational), and Blocks (Sources). With some effort, you should be able to model the system using only these standard components.
10
APPENDIX
A Tables
11
12