Vous êtes sur la page 1sur 6

Using of Co-simulation ADAMS-SIMULINK for

Development of Mechatronic Systems


Tomas Brezina, Zdenek Hadas and Jan Vetiska
Faculty of Mechanical Engineering, Brno University of Technology, Brno, Czech Republic,
e-mail: brezina@fme.vutbr.cz, hadas@fme.vutbr.cz, vetiska@fme.vutbr.cz

AbstractThis paper deals with an efficient technique for and a user interface. A mechanical design of the
the development of mechatronic systems. Individual parts of mechanical system is designed and assembled in some 3D
such system as mechanics, actuators, sensors, control CAD software. This assembly of the mechanical system is
system, etc. are designed in several passes through V-model imported to ADAMS environment.
with respects to mutual feedbacks. Based on this The ADAMS model can be used for a control design or
methodology the developed system is made as a virtual the control design is developed in SIMULINK
prototype and can be tested and simulated using co- environment directly. State variables of the ADAMS
simulation technique. The ADAMS and SIMULINK co- model are connected with the control system in
simulation is used and it is based on direct embedding of SIMULINK and the whole virtual prototype is tested. This
dynamic model of the mechanical system with sensors and system, which is based on co-simulation techniques, is
actuators implemented in ADAMS into MATLAB
depicted in Fig. 1.
environment to a control system design and a virtual
prototype model tuning. So the complex model of
mechatronic system applies the same implementation for
design, simulation and testing.

KeywordsMechatronic, development, simulation, model,


control, ADAMS, SIMULINK.

I. INTRODUCTION
This paper deals with an efficient technique for the Fig. 1. Co-simulation of mechatronic system
development of mechatronic systems. Individual parts of a
developed mechatronic system as mechanics, actuators, Efficient using of the co-simulation techniques for
sensors, control system, etc. are designed on the base of a development of the mechatronic system with respect to
mechatronic approach, it means the mechatronic design mechatronic is demonstrated on an example of a simple
passes several times through development cycles with manipulator.
respects to mutual feedbacks [1].
The methodology of a complex mechatronic system III. MECHATRONIC APPROACH
design is presented in VDI 2206 [2]. Based on this The traditional design of a new product consists of
methodology the developed cycle contains a model of the several subsystems with different physical nature (e.g.
mechatronic system, which is made as a virtual prototype mechanics, electrical engineering, electronics, control and
and it can be tested and simulated using a co-simulation data processing, etc.). These subsystems are developed
technique. individually on the base of individual subsystem
requirement.
II. BREIFLY ABOUT CO-SIMULATION TECHNIQUE The mechatronic approach [2] is based on an
The co-simulation technique based on ADAMS and integration of knowledge from different areas of physics
SIMULINK cooperation can be useful tool for improving and technical disciplines and then the synergic effect is
of the development cycle [3]. This technique is suitable achieved. The mechatronic approach solves the
for a design of a mechatronic system like robots [4], development process as only one task and development
manipulators, cars [5] and other mechatronic system with task like mechanics, electronics, electronic, control system
a complex mechanical structure and a dynamic behavior (including software) are processed together.
with a control system [6]. A new product, which is developed with such
The co-simulation technique is used in a development mechatronic approach, has the highest possible technical
phase, where physical or mathematic model of the and economical parameters [9].
mechatronic system and model of a control system is The development of a new mechatronic system with
designed. This technique is suitable for testing of the respect to the mechatronic approach [1] goes through
mechanical design [7], a setup of system parameters [8], following design cycles:
analyses of a whole system behavior and testing of the
Micro-level cycle,
control system.
Generally the mechatronic system consists of a Macro-level cycle,
mechanical system, actuators, sensors, control systems Recurrent working tasks (cycles).
The modeling and simulation of the mechatronic supported by engineering tools for simulation modeling of
system and subsystems under development cycles individual mechatronic subsystems. For complex
represent very important parts of the development process. development of the mechatronic system the mechatronic
engineer can use several simulation tools like
IV. DESIGN OF SYSTEM BASED ON MODEL MATLAB/SIMULINK. It is complex programmable
Models of a system and subsystems of the new environment for control systems, mathematic modeling,
mechatronic system in a computer environment are optimization study [11], image and signal processing,
required for the efficient development of models of the SimScape, FEM and other toolbox etc. The engineering
systems. These models are created for all components of software represents fundamental tool for an engineering
the considered mechatronic structure. development [12], for example:
Very important is an investigation of goals and tasks of Computer-aided design (CAD)
the mechatronic system and analysis of requirements for o Catia
modeling. The object of a model design is an appropriate o ProEngineer
model of the mechatronic system with respects to o SolidWorks
requirements.
o Inventor
A. Models of Mechatronic System o Etc.
The procedure of a model design is varied for different Finite Element Method and Analysis (FEM, FEA)
domains of mechatronics. The required quality of the o ANSYS
model and the model tasks fundamentally depended on the o MARC
considered problem.
o NASTRAN
In order to describe the model behavior with the
required accuracy, substitute models of the system are o Etc.
formed on various abstraction levels: Multi-body Systems (MBS)
Topological model, o ADAMS,
Physical model, o Pro/Mechanica,
Mathematical model, o DYMOLA,
Numerical or Computing model, o Etc.
Experimental model, Computational Fluid Dynamics (CFD)
Simulation modeling. o Fluent
o Etc.
The setup and identification of model parameters and a
verification and validation of the complex mechatronic Commonly the broad usage of the computer software to
model is very important for successful development of the aid in engineering tasks is marked as Computer-aided
mechatronic system. engineering (CAE). It usually includes CAD, stress
analysis on components and assemblies - FEM, kinematic
B. Simulations and Analysis and dynamic of assemblies MBS, thermal and fluid flow
The mechatronic system can exist in reality or as the analysis - CFD and usually also the computer-integrated
complex system of a simulation model [10]. The manufacturing (CIM), computer-aided manufacturing
simulation model is derived from a real system and the (CAM), and computer-aided planning (CAP). The
real parts and subsystems are interpreted as an ideal optimization of the product or process is included in the
behavior of ideal model elements. An accordance of the CAE software too. The product of Computer-aided
real system and the model affects the accuracy and the engineering (CEA) is distributed by companies:
model analysis. Such created model of the mechatronic PTC,
system is prepared as the mechatronic system where the MSC,
simulation model is substituted for the real mechatronic
system. I-DEAS,
This system model is used for an investigation of Etc.
individual subsystem properties (e.g. displacement,
velocity, acceleration, load, strength, etc.) and the These engineering and simulation tools are very useful
behavior of the basic mechatronic system is simulated and for development of the traditional design of some machine
analyzed. system consists of several subsystems with different
The model is created as a parametric system. Therefore physical nature.
the complex system of the mechatronic model can be Our aim is a use of the CAE tool and computing or
improved and expanded during passing through each programing environment (Matlab, LabView, etc.) together
development cycle. with cooperation in the subsystem simulation and an
exchange of individual subsystems results. Cooperation of
C. Simulations Tools such simulation tool is called a co-simulation and this
The development of mechatronic systems requires the simulation tool can create analysis of several subsystems
use of a large number of computing methods and together. The whole simulation model of the mechatronic
computer science skills. The use of these methods is
system is simulates and tested as the virtual prototype of they can be optimized on the base of co-simulation results
the real mechatronic system. afterwards.
Such parametric model in ADAMS View can be used
V. EXAMPLE OF MECHATRONIC SYSTEM DEVELOPMENT for an optimization or sensitivity analysis and the optimal
length of arms can be adjusted to a minimal energy
A. Manipulator demand during operation in working space with a
The presented methodology of the co-simulation transporting load.
ADAMS-SIMULINK for the development of the Additionally, ADAMS View environment is able to
mechatronic system is shown on a manipulator with 3 provide the multi-body model (MTB) for static, kinematic
DOF. The topological model of this manipulator is shown and dynamic analysis.
in Fig. 2 and the model consists of a revolving base, two The MTB model can be driven through a joint motion
arms and holder on an effector. The revolving base and and kinematic analysis of the manipulator effector can be
arms are driven by DC motors. studied. However, the bodies can be driven by the applied
torque, which represent a motor shaft torque, and so the
dynamic study of the manipulator behavior can be
analyzed.
This mechatronic model of the manipulator contains a
model of a DC motor for dynamic study of a manipulator
operation [13] and [14]. The model of DC motor is
described by well-known equations (1) and (2). The
equation (1) describe an electrical behavior of the DC
motor and equation (2) represents a dynamic behavior of
the DC motor:

di R c 1
= i + u (1)
dt L L L

d
J + b = c i (2)
dt
where i is the instantaneous value of the electrical
current, R is a terminal resistance, L the terminal
inductance, J is the inertia, is the shaft velocity, b is the
Fig. 2. Mechatronic system - manipulator with 3 DOF linear approximation of a viscous friction in motor
bearings, c is DC motor constant and , u is the
B. Model of Manipulator in ADAMS View instantaneous driving voltage.
A simple parametric model of the manipulator was The ADAMS View environment can solve also explicit
created in ADAMS View and it is shown in Fig. 3. The and implicit differential equations and the DC motor
model contains bodies, gear boxes, DC motors, joints, equation (1) is added to the MTB model of the
gears, gravity, applied torques and forces, damping forces manipulator.
and friction in joints. The left side of the differential equation (2) describes
dynamic behavior of the driven manipulator body and this
part is used by ADAMS solver automatically during the
dynamic analysis. The right side of the differential
equation (2) is applied as the torque to the MTB model of
the manipulator. The left side of the real differential
equation (2) in the MTB model is more complicated due
to applied friction in an arms contact. The user does not
derive this side of the motion equation. The inertia
changes of the manipulators arms during moving and
frictions are solved automatically by the ADAMS.
C. Model in ADAMS/Control Toolkit
This electromechanical model of the manipulator is
prepared for a feeding by instantaneous voltage. The
feeding voltage has to be controlled. Such controlled
system can manipulate with the effector with respect to
planning trajectory. The control system of the driving
Fig. 3. ADAMS View model of manipulator voltage can be realized in ADAMS/Controls toolkit. A
control tools with a PID regulator is prepared in the
The length of arms is understood as a design variable ADAMS/Controls toolkit for mechatronic studies. The
and these arm lengths can be adjusted to chosen working ADAMS/Controls toolkit can provide opportunity of the
space. The inertia moment, mass, material and cross co-simulation in SIMULINK.
section geometry represent parameters of this system and
The input and output of the MTB model in the ADAMS The co-simulation system on Fig. 4 opens the MTB
View were determined as state variables. The information model in ADAMS and also the co-simulation system call
exchange between the ADAMS/Controls toolkit and the ADAMS Solver. The dynamic behavior of the MTB
control system in SIMULINK is passed by the state model is calculated by ADAMS Solver in individual steps
variables of the virtual prototype of the mechatronic of the co-simulation. The output state variables are solved
system. and values of the state variables is provided to
The co-simulation of the MTB model of the SIMULINK model in each step of the co-simulation. The
manipulator with the control system of 3 DC motors in control system in SIMULINK drives the inputs voltage of
SIMULINK was prepared for presentation of this DC motors for a required system behavior.
technique.
VII. CO-SIMULATION RESULTS
VI. CO-SIMULATION OF MECHATRONIC SYSTEM The results of the co-simulation can be shown in
SIMULINK environment or the final results file of
A. Building of ADAMS model for Co-Simulation ADAMS Solver can be used in ADAMS Postprocessor for
The MTB model in the ADAMS View is imported into presentation of results. The ADAMS Postprocessor can
SIMULINK model with defined state variables. The provide charts and animations of the MTB model behavior
ADAMS/Control toolkit can import a linearized state with respect to the behavior of the control system in
space model or nonlinear complex model of mechatronic SIMULINK.
system with defined state variables for connection in The designed control system can drive the voltage of
SIMULINK environment. We used the second choice DC motors of the base, arm 1 and arm 2 with respect to
with these state variables: required position of manipulator parts. The required
Inputs state variables to the MTB model: behavior of manipulator simulates a passage of a
manipulator effector movement. This movement is shown
driving voltage of the base motor,
in Fig. 5. The effector of the manipulator passes this
driving voltage of the arm 1 motor, trajectory in direction outwards and back.
driving voltage of the arm 2 motor.
Outputs state variables from the MTB model:
position of the motors,
current of the motors,
torque of the motors,
position of effector in global coordinate system.

B. Control in SIMULINK
The ADAMS/Control toolkit creates m-file, which
connects adams_sub system in the SIMULINK
environment with a solver of the ADAMS enviroment.
This adams_sub system is shown in Fig. 4 and the Control
System can be used for a control of the driving voltage of
individual DC motors.
Only a simple control system with PID regulators was
designed for this presented example of the manipulator Fig. 5. Control System and ADAMS Connection
with 3 DOF. The position of the effector in the global coordinate
system during the simulation is shown in Fig. 6.

Fig. 6. Effector position X, Y, Z in global coordinate system


Fig. 4. Control System and ADAMS Connection
This movement is provided by a controlled relative The co-simulation study of the parametric system can
position of DC motors. The positions of the individual by very useful for the development and the optimization
motor shafts are shown in Fig. 7. of this developed mechatronic system. The structural
analysis can be included in the MTB model in the
ADAMS View environment and the appropriate virtual
prototype can be used for several simulation studies of a
virtual behavior of the real mechatronic system.
This technique of the virtual prototyping can be very
useful for the design of modern mechatronic systems with
respect to development time, power consumption,
accuracy, etc.

ACKNOWLEDGMENT
Published results were acquired using the subsidization
of the Ministry of Education, Youth and Sports of the
Czech Republic, research plan MSM 0021630518
"Simulation modeling of mechatronics systems".
F
ig. 7. Positions (orientation) of individual bodies during simulation REFERENCES
[1] Z. HADAS, S. VCHET, V. SINGULE, C. ONDREK,
The required torque moment of the individual arm Development of Energy Harvesting Sources for Remote
motors is shown in Fig. 8. These moments of arm motors Applications as Mechatronic systems,14th International Power
are measured during simulation of DC motor behavior. Electronics and Motion Control Conference, Ohrid, Macedonia,
The behavior of motors depends on the control system and pp.13-19, 2010.
requirements on the effector position or requirements on [2] VDI 2206 - Design methodology for mechatronic systems,
the angular velocity of arms during simulation. Verband Deutscher Ingenieure / Association of German
Engineers, 118 pages, 01-Jun-2004.
On the base of this computer experiment of the [3] D.L. ZHU, J.Y. QIN, Y. ZHANG, H. ZHANG, M.M. XIA,
manipulator virtual prototype the geometry of arms, Research on Co-simulation Using ADAMS and MATLAB for
specification of motors, velocity of bodies and more Active Vibration Isolation System, Proceedings of the 2010
another manipulator parameters can be adjusted. International Conference on Intelligent Computation Technology
and Automation (ICICTA '10), Vol. 2. IEEE Computer Society,
Washington, DC, USA, pp. 1126-1129, 2010.
[4] Z. ZHU, M.P. NAING, A. AL-MAMUN, Integrated ADAMS +
MATLAB environment for design of an autonomous single wheel
robot, 35th Annual Conference of the IEEE Industrial Electronics
Society, Porto, Portugal, pp. 2253-2258, 2009.
[5] C. ANYU, D. XILIANG, H. SHUGEN, Co-simulation Study on
EPS System Based on ADAMS and MATLAB, Third
International Conference on Measuring Technology and
Mechatronics Automation ICMTMA, pp. 791-794, 2011.
[6] C. LIQING, C. WUWEI, Z. QUAN, Study of Active Suspension
Adaptive Fuzzy Control Based on Co-simulation, Journal of
System Simulation. Vol. 3(2008), pp. 1340-1343, 2008.
[7] M. YUEFENG, L. ZHAODU, Z. JINGBO: Co-simulation of
ACC with ADAMS/CAR and MATLAB, Computer Simulation.
Vol. 4(2007), pp. 252-254, 2007.
[8] L. WEI, L. DAWEI, C. HUANMING, Ride Comfort of MR-
damper Semi-active Suspension Systems Based on Co-
simulations, Society of Agricultural Machinery. Vol. 6(2009), pp.
Fig. 8. Torque moment of individual motor during simulation 16-22, 2009.
[9] Z. HADAS, J. ZOUHAR, V. SINGULE, C. ONDRUSEK,
The aim of paper was not the manipulator design. The Design of Energy Harvesting Generator Base on Rapid
results shown in this paper have only an illustrative and Prototyping Parts, IEEE 13th Power Electronics and Motion
education character and main aim of the presented Control Conference. Poznan - Poland. pp 1688 1692, 2008.
simulation was present the modern technique of the virtual [10] Z. HADAS, C. ONDRUSEK, V. SINGULE, Power sensitivity of
prototype design using co-simulation ADAMS vibration energy harvester, Microsystem Technologies. Vol. 16,
SIMULINK. No. 5, pp. 691 702, 2010.
[11] Z. HADAS, C. ONDRUSEK, J. KURFURST, Optimization of
Vibration Power Generator Parameters Using Self-Organizing
VIII. CONCLUSIONS Migrating Algorithm, Recent Advances in Mechatronics 2008-
The presented methodology in this paper creates the 2009, Springer-Verlag Berlin Heidelberg, pp. 245 250, 2009.
simulation model of the mechanical (electro-mechanical) [12] J.J. WIJKER, Spacecraft structures, Springler-Verlag Berlin
system. This model is derived directly from the ADAMS Heidelberg, 2008.
to SIMULINK and the control system in SIMULINK [13] T. BEZINA, L. BEZINA, Controller design of the Stewart
environment can affect behavior of this MTB model. The platform linear actuator, Recent Advances in Mechatronics 2008-
2009, Springer-Verlag Berlin Heidelberg, pp.341-346, 2009.
complex behavior of this mechatronic system can be
[14] L. HOUFEK et al, Development of Experimental Devices for
simulated as behavior of the virtual prototype of the Testing of the Biomechanical Systems, 13th International
manipulator with 3 DOF. Conference on Biomedical Engineering, pp.256-260, 2008.
[15] P. FABO, A. SIROKA, D. MAGA, P. SIROKY, Interactive
Framework for Modeling and Analysis, Przeglad
Elektrotechniczny, 2007, 83 (11), pp. 79-80, ISSN 0033-2097.
[16] S. PAVLIKOVA, Linear Systems in Mechatronics, State-of-the-
Art in Mechatronics. Alphen aan den Rijn: Simulation Research
Press, 2007, pp. 253 277, ISBN 978-90-807898-2-1.
[17] D. MAGA, J. SITAR, J. DUDAK, R. HARTANSKY, P.
SIROKY, J. HALGOS, P. BAUER, Electromechanical Actuators
Web-Lab 13th EPE-PEMC, 2008, pp. 2399-2401, ISBN 978-1-
4244-1742-1.
[18] P. FABO, S. PAVLIKOVA, Gsim - Software for Simulation in
Electronics, Proceedings of EPE-PEMC 2010 - 14th
International Power Electronics and Motion Control Conference,
pp. S414-S417. ISBN 978-142447854-5.
[19] WAGNER, J., HAJEK, V., FUHRICHOVA, R., MAGA, D.,
GUBA, R., OPATERN, J., Analysis of the magnetic field of a
DC Machine, Compel The International Journal for
Computation and Mathematics in Electrical and Electronic Eng,
1994, Vol. 13, Nr. 1, pp.145-149, ISSN 0332-1649.

Vous aimerez peut-être aussi