systems engineering in the design of mechatronic … · 2. mechatronic systems – the esp system...

17
SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC SYSTEMS R. Rothfuß, M. Lasa, H.-M. Heinkel, P. Tirgari Robert Bosch GmbH, Dept. FV/FLI P.O. Box 10 60 50 D-7 00 49 Stuttgart, Germany E-mail: {Ralf.Rothfuss, Mikel.Lasa, Hans-Martin.Heinkel, Pierre.Tirgari}@de.bosch.com To appear in the special issue "Mechatronics in Automotive Systems" of the International Journal of Vehicle Design Dr.-Ing. Ralf Rothfuß received the Diploma in Technical Cybernetics at University of Stuttgart in 1992. In 1997, he completed his PhD in the area of non-linear control. He joined Robert Bosch GmbH in 1997 and is currently working in the area of modelling, simulation and control of mechatronic systems. Areas of interest: non-linear control, modelling, simulation, CAE-environments and industrial design process. Dipl.-Ing. Mikel Lasa studied mechanical engineering at the Universities of Navarra (Spain) and Compiègne (France). He joined Robert Bosch GmbH in 1997, where he is pursuing a PhD in the mechatronic domain. Dipl.-Ing. Hans-Martin Heinkel studied Electrical Engineering at University of Stuttgart. Since 1986 he is working at the central research department of Robert Bosch GmbH. Areas of interest: Design of mechatronic systems, real-time simulation. Dipl-Ing. Pierre Tirgari graduated in 1995 from the Ecole Supérieure des Sciences et Technologies de l'Ingénieur de Nancy (FRANCE) in the Department of Fluid dynamic Engineering. Between 1995-1997 he worked as research engineer in the Environmental and Applied Fluid dynamics Department of the von Karman Institut for FLUID DYNAMICS, Brussels. Since May 1997, he is working for Robert Bosch GmbH in the research and pre-development division in the department of simulation of mechatronic systems. His scientific areas of interest are the modelling of hydraulic and magnetic components. Key words: Systems engineering, modelling and simulation of mechatronic systems, model exchange, design process, flatness-based non-linear control, Electronic Stability Program. Complex mechatronic systems, for example brake or injection systems (ESP, Common Rail), consist of a large number of components from different physical domains. The interaction of these components is essential for the function and behaviour of the overall system. The design of mechatronic systems can be facilitated using a methodology called systems engineering [8, 30,36,13]. Systems engineering unifies the product and process issues in the design process of mechatronic systems so that the design methodology, design process, CAE-environment and the organisational structure of the company are considered simultaneously. As a consequence, the controller and plant have to be planned at the same time. The controller and plant are designed in order to realise functions such as braking force regulation and control of the air-mass flow. The plant can be changed during the design process in order to fulfil a pre- defined function. By contrast, the classical control problem consists of designing a controller for a given - and usually unchanged - plant. Furthermore, different models are used to describe different viewpoints of the plant during the design process. These models are usually built using different simulation tools due to the multi- domain nature of the mechatronic components. As a result, the model exchange between different simulation tools plays a crucial role in the design of mechatronic systems.

Upload: hoangliem

Post on 21-Aug-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC SYSTEMSR. Rothfuß, M. Lasa, H.-M. Heinkel, P. TirgariRobert Bosch GmbH, Dept. FV/FLIP.O. Box 10 60 50D-7 00 49 Stuttgart, GermanyE-mail: {Ralf.Rothfuss, Mikel.Lasa, Hans-Martin.Heinkel, Pierre.Tirgari}@de.bosch.com

To appear in the special issue"Mechatronics in Automotive Systems" of the International Journal of Vehicle Design

Dr.-Ing. Ralf Rothfuß received the Diploma in Technical Cybernetics atUniversity of Stuttgart in 1992. In 1997, he completed his PhD in the area ofnon-linear control. He joined Robert Bosch GmbH in 1997 and is currently workingin the area of modelling, simulation and control of mechatronic systems. Areasof interest: non-linear control, modelling, simulation, CAE-environments andindustrial design process.

Dipl.-Ing. Mikel Lasa studied mechanical engineering at the Universities ofNavarra (Spain) and Compiègne (France). He joined Robert Bosch GmbH in 1997,where he is pursuing a PhD in the mechatronic domain.

Dipl.-Ing. Hans-Martin Heinkel studied Electrical Engineering at University ofStuttgart. Since 1986 he is working at the central research department of RobertBosch GmbH. Areas of interest: Design of mechatronic systems, real-timesimulation.

Dipl-Ing. Pierre Tirgari graduated in 1995 from the Ecole Supérieure desSciences et Technologies de l'Ingénieur de Nancy (FRANCE) in the Department ofFluid dynamic Engineering. Between 1995-1997 he worked as research engineer inthe Environmental and Applied Fluid dynamics Department of the von KarmanInstitut for FLUID DYNAMICS, Brussels. Since May 1997, he is working for RobertBosch GmbH in the research and pre-development division in the department ofsimulation of mechatronic systems. His scientific areas of interest are themodelling of hydraulic and magnetic components.

Key words: Systems engineering, modelling and simulation of mechatronic systems,model exchange, design process, flatness-based non-linear control, ElectronicStability Program.

Complex mechatronic systems, for example brake or injection systems (ESP, Common Rail),consist of a large number of components from different physical domains. The interaction of thesecomponents is essential for the function and behaviour of the overall system.

The design of mechatronic systems can be facilitated using a methodology called systemsengineering [8, 30,36,13]. Systems engineering unifies the product and process issues in the designprocess of mechatronic systems so that the design methodology, design process, CAE-environmentand the organisational structure of the company are considered simultaneously.

As a consequence, the controller and plant have to be planned at the same time. The controllerand plant are designed in order to realise functions such as braking force regulation and control ofthe air-mass flow. The plant can be changed during the design process in order to fulfil a pre-defined function. By contrast, the classical control problem consists of designing a controller for agiven - and usually unchanged - plant.

Furthermore, different models are used to describe different viewpoints of the plant during thedesign process. These models are usually built using different simulation tools due to the multi-domain nature of the mechatronic components. As a result, the model exchange between differentsimulation tools plays a crucial role in the design of mechatronic systems.

Page 2: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

1. INTRODUCTION

Today, the reduction of development costs and time-to-market dominates the design process ofalmost every technical product. This is especially true for mechatronic systems in the automotiveindustry. These systems consist of components from different physical domains, which are closelycoupled and therefore interact with one another [19]. Moreover, the behaviour of the components ishighly non-linear. The focus of this paper stems mainly from the automotive industry which ishighly competitive and where cost and time requirements play a crucial role.

For time and cost reduction, it is fundamental to achieve a first-shot-yield during the designprocess. Use of modelling and simulation is therefore essential. Moreover, dividing the systembehaviour into different functions (e.g. braking, control of the air-mass flow, etc.) facilitates thehandling of complex mechatronic systems. The aim of this process is to achieve the desired overallfunctional behaviour (i.e. braking of the car) rather than designing a component in a particulardomain (e.g. the main brake cylinder or the ESP controller). The design process is an appropriatecombination of "top-down" and "bottom-up" methods in order to meet customer requirements. As aresult, the plant and controller have to be designed simultaneously due to the high degree ofinteraction.

Fig. 1: Schematic of the DSC system: (1) wheel brakes, (2) wheels, (3) speed sensor, (4) electroniccontrol unit (ECU), (5) precharge pump, (6) steering-wheel angle sensor, (7) brake boosterwith brake master cylinder, (8) hydraulic unit with admission pressure sensor, (9) yawsensor with lateral-acceleration sensor [15] of an ESP system with inputs and outputsincluding engine management and ABS/ASR functions [15].

During the design process a large number of simulation runs are required using models atdifferent levels of abstraction. Simulation models are required in particular during the early stagesof the development process for the verification of alternative designs and parameterisations.Furthermore, these models are necessary for understanding the overall system. Since mechatronicsystems cover a wide range of physical domains including control, specialised simulation tools areavailable in the field of mechatronics. Unfortunately, the exchange of simulation models is difficultbecause of different numerical methods, model description languages, etc., of the individual tools.

Nevertheless, the behaviour of mechatronic systems and their components has to be verified inthe early stages of the design process in order to reduce costs and time-to-market even if hardware

Page 3: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

samples are not available. As a result, model exchange is an essential requirement for the design ofmechatronic systems.

The only way to fulfil these demands is the extensive use of systems engineering methods [33,8, 30, 36, 13] throughout all stages of the design process. Systems engineering provides a unifiedmethodology including both product and design process. The design methodology and the designprocess are considered together with the CAE tool environment and the organisational structure ofthe company. Hereby, design decisions can be verified with customer demands even if hardwareprototypes of the system are not yet available at the time for an experimental verification.Establishing complete test criteria is therefore an essential part of the design process.

In this paper, the use of systems engineering for the design process of mechatronic systems isdescribed using the example of an ESP system [40]. The next section briefly describes the structureof the ESP system with some focus on the engine management system and the hydraulic unit. Byconsidering the air-mass regulation within an electronic throttle control (ETC), typical requirementsfor a safety-related design of automotive systems are presented. In Section 3, the results aregeneralised and an overview of the general design process is given based on a V-cycle [8, 30, 28,6].

Particular problems arise during the modelling of mechatronic systems due to the variousphysical domains involved. In general, excellent results for all physical domains cannot be obtainedfrom one simulator. Therefore, the simulation of the entire system requires the system level modelsof the components to be exchanged between different simulators. The various aspects of this modelexchange will be discussed in Section 4 and a pragmatic approach will be introduced to overcomethe important problem of model exchange [17].

Fig. 2: Simplified schematic of an ESP system with inputs and outputs including enginemanagement and ABS/ASR functions [15].

Measured quantities:• Steering wheel angle• Yaw velocity• Lateral acceleration• Wheel speed• Brake circuit

Engine managementwith ETC

Hydraulic group

ESP – Electronic Stability Program

Observer (state, parameters)

Set point for yaw angle/side slip angle

State control for yaw moment

Set point braking torque/tire slip

ABS brake slip controlASR drive slip control

MSR engine-drag torque control

Page 4: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLEIn the following section, the ESP system is used as a typical example of a modern mechatronic

system. It consists of a large number of components that are used to achieve certain functions(braking, stabilisation of yaw motion, etc.). Many of these components have to be described usingnon-linear models in order to cope with the wide operation regime. The ESP system has aninterface to the engine management and the brake system. Lastly, it is a safety-critical part of thecar.

ABS and ASR functionality has now become almost standard in modern passenger cars. TheESP (Electronic Stability Program) algorithm not only improves the basic ABS and ASRfunctionality in critical situations with respect to longitudinal dynamics (complete deceleration,acceleration), it also supports the driver in critical situations with regard to lateral dynamics byinitiating highly dynamical active braking at the four individual wheels based on a modifiedhydraulic ABS/ASR unit. The ESP attempts to keep the longitudinal, lateral and yaw velocity ofthe vehicle within certain limits in order to guarantee the stability of the vehicle [14, 15]. For thispurpose, according to the simplified block diagram in Figure 2, the ESP algorithm controls the statevariables yaw velocity and side slip angle, and calculates an appropriate yaw torque that enforcesthe desired behaviour of the vehicle. The non-measured quantities are estimated using a dynamicobserver.

The ESP algorithm influences the ABS brake slip and ASR drive slip control using the hydraulicmodulator as an actuator. In addition, the yaw torque control is influenced using an interface to theengine management. The hydraulic unit is shown in Figure 3. It mainly consists of the brake mastercylinder (1), pressure sensor (2), precharge pump (3), and the hydraulic modulator (4). The lattercomprises the floating circuit (5), different valves (suction, switching) (7)-(8), damping chambers(9), return pump (10), inlet and outlet valves (13)-(14), and the wheel brakes (15).

Fig. 3: Hydraulic modulator of the ESP system: 1 brake master cylinder, 2 pressure sensor, 3precharge pump, 4 hydraulic unit, 5, 6 braking circuit, 7 suction valves, 8 pilot valves, 9damping chamber, 10 return pump, 11 non-return valves, 12 accumulators, 13 inlet valves,14 outlet valves, 15 wheel brakes [6].

Page 5: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

A description of the design process for the entire ESP would exceed the scope of this paper.Therefore, only the throttle plate shown in Figure 4 is considered in the following section. Thethrottle plate is by itself a mechatronic system used for controlling the air-mass flow in the injectionsystem as shown in the following chapter.

2.1 Control of the Air-Mass Flow

As shown in the previous section, the ESP uses an interface to the engine management in orderto control the vehicle. The most essential part of the engine management is the ETC (electronicthrottle control). The following section describes two important aspects in the design process of theETC:

a) The function of the ETC is to control the air-mass flow. For environmental reasons, aprecisely controlled low idle speed is important in order to achieve low fuelconsumption.

The corresponding control loop with the A/D converter has the following structure:

During the idle mode, the throttle plate is operated with relatively small values of φ. Forthis, either a high resolution A/D converter has to be used in combination with a simplecontroller or a less expensive A/D converter together with an advanced controller that canhandle the effects caused by a rough discretisation. Therefore, the function of the entiresystem has to be optimised with respect to cost and precision requirements around φ=0. Ifneither solution is satisfactory, the mechanical structure of the plate has to be modified.

In general, the plant may have to be modified during the design phase of the controllerfor a mechatronic system. This may result in a complete redesign of the control scheme(including the controller). This differs from the situation of the classical controller designwhere the plant is already defined and the design is relatively fixed. Nevertheless, a control-oriented point of view during the design process can save time and reduce costs when thecontroller and plant are designed simultaneously to achieve the desired function.

dm/dtuφd (t)

Controller Plate

A/D

φ

m&

Page 6: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

Fig. 4: Schematic of the throttle plate.

b) When realising a desired function of a mechatronic component, it is often useful toformulate the design problem as a tracking problem, i.e. by imposing a motion of thestate variables of the system along a predefined desired trajectory. The tracking problemis important in the area of mechatronics. For the throttle plate, the control task consists of imposing a rest-to-rest motion

for the throttle angle φ within a predefined time interval T. The system can be describedfor the controller design using a simple model based on the following differential

equations for the state variables [ ]TIx φφ &,,= [34]:

The coefficients have the following meaning: R is the resistance of the motor, Cm isthe motor constant, and L describes the inductance of the motor. The constant J is themoment of inertia, Cf(x2) represents the mechanical spring constant, and D describes themechanical damping. The torque in (1c) is described as

In addition to this nominal function of the throttle plate, an important safetyrequirement has to be fulfilled for the ETC. If the power supply of the electric motor failsor if an error occurs in the control scheme, the flap returns to the limp home position.This position ensures a minimal airflow in order to keep the engine running. Aconsequence of this safety feature is that some parameters of the model state equation (1)are different for angular blade positions over and under the limp home position φLHP.Thus, the following relations are obtained for the spring constant Cf(x2), the pretension ofthe springs Mpre(x2) at φLHP, and for the Coulomb friction Mfr(x2):

Throttle plate

SpringTransmission

DC motor

0)()0( with )()0( :)( ==→ TTtd φφφφφ &&

),()( 3232213

32

211

xxMDxxxCxCxJxx

uxCRxxL

fm

m

+−−==

+−−=

&&&

)(sign )()()(),( 322*

232 xxMxMxCxxJM frpref −−= φ

(1a)

(1b)

(1c)

(1d)

Page 7: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

This yields a model (1), (2), which is non-linear with a sudden change in theparameters around the limp home position φLHP.

The control problem for (1), (2) is to follow a desired trajectory φd(t) for the angularposition x2. This tracking problem has an elegant solution if the system is differentiallyflat in the sense of [10, 11, 12, 35, 31, 25, 3]. The flatness property can be exploited inorder to design a control input u that imposes a desired trajectory φd(t) and stabilises themotion around this trajectory (refer to [34] for details).

Fig. 5: V-cycle of the design process for mechatronic systems [8, 28, 6].

The requirements for designing a controller for mechatronic systems can be summarised as follows:• The overall objective is to realise certain behaviour for the entire system (controller and plant).

The optimisation is based on the overall objective.• In classical control, one often tries to build a rather complex controller for a single and well-

defined plant. Mechatronic controller design has to deal with multiple plants with possiblychanging structures during the design process. Simple controllers (as well as simple plantmodels) are often used here.

• It is of increasing importance to use controller design methods for non-linear mechatronicsystems that allow the predefined desired trajectories to be tracked in a wide range ofoperations. An already well-established approach is one based on flatness (refer to the industrialapplications in [39, 20, 34, 32, 2, 4] and the references therein.).

<>

=

<>

=

<>

=

*22

*21

2

*22

*21

2

*22

*21

2

: :

)(

: :

)(

: :

)(

φφ

φφ

φφ

xMxM

xM

xMxM

xM

xCxC

xC

fr

frfr

pre

prepre

f

ff

(2a)

(2b)

(2c)

Page 8: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

3. DESIGN PROCESS FOR MECHATRONIC SYSTEMSIn this section, the aspects from the previous section are collected in a more general description

of the design process of mechatronic systems from a systems engineering point of view [22, 23,24]. The design process of mechatronic systems can be divided into several stages as shown inFigure 6. During the system requirement analysis, the supplier and the client specify the desiredfunctions of the product. This results in a written specification that forms the basis for thesubsequent design process.

Fig. 6: Design process for mechatronic systems.

The functional behaviour of the entire system is defined based on this specification anddecisions regarding design can also be made at the system design level (e.g. the decision to use asolenoid as an actuator rather than a piezo actuator). Hereafter, single design processes for thecomponents can be defined on the component design and development level.

Since the whole design process is neither "top-down" nor "bottom-up", it can be represented inthe well-known V-cycle [8, 28, 6]. Figure 5 shows the use of simulation models at different levels.The models can be used to test the behaviour of the component versus test cases that are derivedfrom the specification. Therefore, the proper function of the components can already be verified atearly stages of the design process using simulation models even if hardware samples are not yetavailable. The test cases can be applied to the real hardware at a later stage (see Figure 5). For amore detailed description of tests performed during the early stages of the design process see [37,16]. Note that recursions in the early stages of the process (based on models) are fast andinexpensive whereas ones used in the later stages of the process (using hardware samples) areexpensive and time-consuming.

In the following section, the hydraulic modulator as shown in Figure 3 is used to discuss someaspects of the design process. Basic design questions can often be answered by means of rathersimple component models. More complex models (on the component level) are required fordecisions relating to details. The focus of the latter is mostly on a particular physical domain:

Page 9: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

• Detailed models of the hydraulic valves and pumps are available, which are based on physicaland geometrical parameters. These models largely depend on the numerical capabilities of thesimulation tools. These tools are specialised for the simulation of hydraulic effects such as thetransition from laminar to turbulent flow, cavitation, etc. The mathematical basis is formedmostly by ordinary differentials or differential-algebraic equations.

• Specialised simulation tools are also available for the electrical and magnetic domains. Thesetools are specialised for conservative models (energy conservation, bi-directional signal flow)that can be expressed in terms of differential-algebraic equations.

• The controller is mainly designed using non-conservative models (unidirectional signal flow).Thus, the resulting mathematical system of ordinary differential equations can often be solvedsequentially by sorting the equations.

In the mechatronic domain a large variety of domain-specific simulation tools are used. Some ofthese simulation tools are listed below:• AMESim [18]: Simulation of hydraulic systems with geometry-oriented and physical

parameterisation.• ASCET-SD/CT [9]: (Real time) simulation of mechatronic systems, discrete and analogue

simulation, and development environment for embedded control systems.• MATLAB/Simulink [27]: Signal processing, control design, (Real time) simulation of

mechatronic systems, and development of automatic control systems.• Saber [1]: Electronic circuit simulator; simulation of mechatronic systems.

Since the interaction between components is an essential property of mechatronic systems,simple models of the neighbouring elements (e.g. the solenoid, power stage) are required fordesigning particular components (e.g. the hydraulic part of a valve). The simulation of a detailedhydraulic valve model, for instance, requires a simple model of the power stage, and vice versa.Use of different simulation tools during the design process is only efficient if the model can beexchanged between the tools. Direct model exchange is difficult due to tool-specific modellinglanguages, different numerical solvers, etc.

4. MODEL EXCHANGE

An analysis of mechatronic systems shows that the component models can usually be built usingjust a small number of domain-specific elements. These are called the standard elements [22, 23,24]. In the hydraulics domain typical examples of these standard elements are an orifice, pressure-relief valve, chamber, pipe with and without wave propagation, in the electronics domain, resistor,capacitor, transistor, etc., as well as DC motors, AC motors, and in the mechanics domain, a masswith friction and end stops, spring, gear box, clutch, etc. In the following section, a pragmaticapproach is presented to overcome the aforementioned problems of model exchange betweendifferent simulation tools. At the centre of this approach is the Robert Bosch Standard SimulationLibrary [21, 22, 23, 24].

4.1 Robert Bosch Standard Simulation Library

The main features of this library are the following:• The library provides a structured collection of models for some important elements of each

domain. These elements are referred to as standard elements.• Each standard element is described by means of mathematical equations (including a detailed

description of parameters, state variables, inputs, outputs, state events, etc.) that provide aphysical understanding. These equations are exactly the same for all implementations of thestandard element in the different tools supported by the library. Tool-specific details (such as

Page 10: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

handling of state events, step size control, etc.) are taken into account so that the behaviour ofthe standard element is the same in each simulation tool.

• The library contains physical documentation for each element as well as a complete list ofparameters, state variables, inputs, and outputs. The availability of this documentation does notdepend on the use of a particular simulation tool. The documentation and the model areaccessed via Intranet (Figure 7) in order to avoid dependence on the computer platform in use.

Fig. 7: Example of WWW-based documentation for a hydraulic chamber and a fragment of codefrom the Simulink implementation.

The use of the library is described according to Figure 8 with the example of an ESP valve.• During the first steps of the design process (see Figure 6), the specification of the ESP valve is

given in terms of a simple model at the system level. This is implemented in one tool (e.g.ASCET) using standard elements.

• This simple model can be built in other simulation tools such as SABER or AMESim by meansof the tool-specific schematic entry. The structure is copied using the standard elements (Figure8). The problem of model exchange is reduced to the simpler problem of parameter exchange.For this, a computer-aided solution can be provided.

• Standard elements are also useful for the detailed design of components. Each simulation toolcontains specialised models for its original domain. These are called core elements. Sinceinteraction between different domains plays a crucial role for components of mechatronicsystems, one has to take into account the influence of neighbouring domains. For the detaileddesign in AMESim of the hydraulic part of the ESP valve, for example, a simple model of thesolenoid is necessary in order to represent the influence of the magnetic circuit. In the sameway, for the detailed investigation of the solenoid in SABER, a simple model of the hydraulicsis required. In both cases, the simple models can be built using standard elements.

• Once detailed component models have been built and validated using measurements, one caneasily fit the parameters of the simple model with standard elements using the results of themore detailed model in one simulation tool. It is therefore easy to keep all the models depictedin Figure 8 up-to-date during the whole design process by propagating the parameter valuesfrom one tool to the other.

The RB Standard Simulation Library approach has the following advantages:• A structured set of models is available at an appropriate level of abstraction. While in the case

of co-simulation a large number of parameters are used to describe the entire system, the

static void mdlOutputs(SimStruct *S, int_T tid){real_T V0 = *mxGetPr(V0(S)); /* Chamber dead volume */ real_T qsum = 0; /* Total flow rate in the chamber */ real_T *RWV = ssGetRWork(S); real_T *state = ssGetContStates(S); int_T i = 0; real_T DensityRef,p,dp; InputRealPtrsType in1=ssGetInputPortRealSignalPtrs(S,0); InputRealPtrsType in2=ssGetInputPortRealSignalPtrs(S,1); InputRealPtrsType in3=ssGetInputPortRealSignalPtrs(S,2); InputRealPtrsType in4=ssGetInputPortRealSignalPtrs(S,3); real_T *y1 = ssGetOutputPortRealSignal(S,0); real_T *y2 = ssGetOutputPortRealSignal(S,1); real_T *y3 = ssGetOutputPortRealSignal(S,2); real_T *y4 = ssGetOutputPortRealSignal(S,3); real_T q1=**in1;real_T q2=**in2; real_T q3=**in3; real_Tq4=**in4; DensityRef = RWV[1]; V0 *= cm3_m3; q1 *= lmin_m3s; q2 *= lmin_m3s; q3 *= lmin_m3s; q4 *=lmin_m3s;/* RWV points on RWV[0] = derivative of p = p' */ p = *state; qsum = q1 + q2 + q3 + q4;/* computation of the derivative of P */dp=bar_pa*RB_E(pa_bar*p)*DensityRef/RB_dens(pa_bar*p)/ V0*qsum; RWV[0] = dp;/* write output:*/ *y1 = p * pa_bar;}

Page 11: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

models in the approach presented above include only the parameters that are needed forinvestigating the current problem. The understanding of the problem is thereby augmented.

• In most cases, this allows us to solve the problem with only one simulation tool, which is moreappropriate from a user’s point of view.

• The parameterisation of the models in different simulation tools can easily be kept consistent.

The RB Standard Library currently supports the simulation tools ASCET-SD/CT,MATLAB/Simulink, AMESim, and SABER. In addition, each component model is described usingVHDL-AMS [17] as a unified representation. Each tool that supports VHDL-AMS is automaticallyincluded in the Standard Library approach. The VHDL-AMS description is considered to be areference since its behavioural semantics are well defined. These descriptions shall be used as asingle source for all simulators using code generation.

Fig. 8: Model exchange using the Robert Bosch Standard Simulation Library.

4.2 Single Source Approach with the VHDL-AMS Language Unified Modelling

The creation and maintenance of the all the standard elements of the RB Standard SimulationLibrary is a complex and tedious task. The variety of implementations in all the simulation toolscan be reduced using the standardised modelling language VHDL-AMS [17].

More than 30 years ago, the Simulation Software Committee of Simulation Councils, Inc. (SCi)developed a unified modelling language for system simulation called Continuous SystemSimulation Language (CSSL) [38]. ACSL [29] is a language following these recommendations.

CSSL focuses on system simulation alone and does not address the needs of physical systems(e.g. electronics with conservative communication and highly structured components). With theIEEE standardisation 1076.1 (VHDL-AMS) in March 1999, this deficiency no longer exists.Furthermore, with the mathematically well-founded semantics of all VHDL-AMS concepts, thelanguage is much more suitable for unified modelling [17].

Page 12: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

VHDL-AMS is a superset of the IEEE standard 1076 (VHDL) and therefore all issues as far as aregular programming language are concerned (e.g. expressions, functions) are already preciselydefined. Furthermore, it provides tools for structuring systems and communication. The power fordescribing complex discrete time systems might be the only drawback, since a VHDL-AMScompliant simulator has to support full VHDL. Special purpose simulators (e.g. for hydraulics orreal time) may only support some language subsets as described below.

The following section contains a short introduction to some aspects of VHDL-AMS that areimportant for control domain modelling. Most of the information about VHDL-AMS can be foundin [17]. Its discrete modelling capabilities (from conventional VHDL) are already well documented(e.g. [26]).• Structural decomposition and communication: As heritage of VHDL any model might be

structurally divided into smaller units (blocks, components). Each component is defined with aninterface entity and one or more architectures. For the information flow between thesecomponents VHDL-AMS provides two different mechanisms:• Signal flow (non-conservative): Data is transmitted in one direction from one unit to

another (block diagram approach).• Energy flow (conservative): Two units are physically connected and communicate energy

between one another (bi-directionally). The physical connection might be a nodecommunicating pressure and flow.

• Variable objects: quantities are objects within VHDL-AMS whose values are determinedaccording to a system of differential equations (see below). The derivative and integral of aquantity are again a quantity (q'dot, q'integ). A signal is the discrete state variable thevalue of which changes only at discrete points in time and is determined within a process (seebelow). If its values are changed, an event occurs, which may activate some suspended process.

• Differential algebraic equations: The basic concepts for describing analogue behaviour inVHDL-AMS are differential and algebraic equations (DAE). They can be written assimultaneous equations. There is a simple form e.g. q'dot == f(q) and conditional forms e.g.IF condition USE x'dot == v ELSE x'dot == 0 END USE.

• A process is coded as a list of sequential statements, which are executed within a closed loop(forever), and represents a finite state machine. It can be activated by some events (on aprocess) making it perform a transition and is suspended until some condition is met (waituntil condition).

• Discontinuous behaviour: The interaction between the analogue kernel (solving the behaviourdescribed by DAEs) and the digital kernel (solving the event driven behaviour) permits thedescriptions of discontinuous behaviour similar to the powerful means of ACSL. An analogueevent (e.g. detecting a threshold crossing of some quantity) raises a discrete event and mayactivate a process. The process might force the analogue kernel to continue its calculation withreinitialised values of some quantities.

• For real-time simulation, an appropriate subset of VHDL-AMS can be defined with necessarydescriptive power and reduction of many time consuming mechanisms. This subset supportsonly signal-flow communication, ordinary differential equations and basic event mechanism forsignal assignment, process, wait, and break statements.

In Figure 9, the VHDL-AMS model for the throttle plate in section 1.1. is given as an example. Forthe sake of simplicity, the coefficients in the model are assumed to be constant.

Based on a reference formulation of a standard element, directly executable code for a particularsimulation tool can be generated. For this, after parsing the VHDL-AMS code, the architecture isexamined with respect to its concurrent and simultaneous statements. The system of equations ischecked to verify that it fulfils the given restrictions.

Since the inputs and outputs of a component are explicitly known (only unidirectionalcommunication) and because of the restrictions on the equations, the algebraic system equations

Page 13: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

can be easily sorted according to the order mentioned above. This simple symbolic calculationeliminates the need for a numeric DAE solver.

The code generation already works for some simulators including the hydraulic simulatorAMESim [3] and the control simulator MATLAB/Simulink [12]. The resulting code is used toprove the feasibility of the approach without commercial interests.

Fig. 9: VHDL-AMS implementation of the model (1) of the throttle plate in section 2.1.

4.3 Model Exchange with Respect to the Hydraulic UnitIn this section, the use of the RB Standard Simulation Library will be discussed using the

example of the hydraulic modulator of the ESP system.The application of an ESP system for a particular car is usually done using simulation models of

all the relevant components (hydraulic modulator, car, controller) at the system level as shown inFigure 10. The supplier of the ESP hydraulics and controller uses detailed simulation models inorder to design the hydraulic actuator and controller. Today, the tool chain between the detailedcomponent models provided by the supplier and the simple models used by the car manufacturer isby no means perfect. Moreover, customer and client do not necessarily use the same simulationtool. Suppliers and car manufacturers can overcome the problem of model exchange by using theRB Standard Simulation Library together with one of the commercial tools such as ASCET,AMESim, Simulink or SABER or any VHDL-AMS compatible tool.

During the early stages of the design phase, the components of the hydraulic modulator areimplemented and connected in the hydraulic simulation tool. This gives a simple model of theoverall hydraulic system that allows us to carry out primary simulation runs. The same standardelements are used in the simulation tools for the electronics and the controller design, in order toreproduce the simple model of the hydraulic modulator. All parties involved in the design have thesame model of the overall system with the same behaviour and an identical set of parameters,which serves as a basis for further development.

GENERIC ( damping: real := 0.01; cm : real := 0.02; Rmot: real := 1.0; Lmot: real := 1.0e-3 ); PORT ( QUANTITY Umot: in real; QUANTITY Mload: in real; QUANTITY I: out real; QUANTITY x: out real; QUANTITY omega: out real );END throttle;

ARCHITECTURE behaviour OF throttle IS FUNCTION CalcTorque(real i; real omega; real Mload) RETURN real IS BEGIN RETURN cm * i - d * omega - Mload; END; QUANTITY MSum: real;BEGIN BREAK MSum => 0.0, omega => 0.0, pos => 0.0; PROCESS -- Wait for zero crossing of velocity omega. The construct below represents abs(MSum) =Mstick WAIT ON omega'above(0.0) UNTIL MSum'above(-Mstick) AND NOT MSum'above(Mstick); FricState <= stick; BREAK omega => 0.0; WAIT UNTIL MSum'above(Mstick) OR NOT MSum'above(-Mstick); FricState <= slip; BREAK; END PROCESS; i'dot == ...; MSum == CalcTorque(i,omega,Mload); IF ( FricState == stick ) THEN omega'dot == 0.0; ELSE omega'dot == (MSum-Mslip * sign(omega))/Jmot; END IF; x'dot == omega;END ARCHITECTURE;

Page 14: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

More detailed investigations into the hydraulic or electronic components using tool and domain-specific elements can therefore be based on a common model of the entire system. If the hydraulicvalve is changed, both the complex model and the corresponding simple model have to bemodified. The parameters of the simple model can be obtained from the behaviour of the complexone using parameter fitting techniques. The domain-specific elements are only needed in thedomain-specific simulation tool and it is easy to keep parameterisation consistent.

Fig. 10: Model simplification and exchange between customer and supplier.

The RB Standard Simulations Library supports this type of model exchange and provides amodel of the entire system that can be updated automatically during the entire design process.Specific tools used by the customer can easily be integrated due to the use of VHDL-AMS and theautomatic code conversion.

This allows a consistent flow of information that is currently still far from well established in thedesign process. In this respect, the picture in Figure 10 shows a somewhat idealised perspective thathas to be accomplished in the future.

CONCLUSIONSSystems engineering is an important and efficient means to meet future requirements in the

design of mechatronic systems. The most important challenges are:• Reduction of the time-to-market while the complexity of the products and the interaction

between their components (from the hydraulics, mechanics, electronics and control domains) isincreasing.

• Correctness of design, i.e. minimising the risk of incorrect design decisions (function, costs,quality, manufacturability) using CAE-based validation of design proposals in the early phasesof the design process.

In this respect, design methodology, design processes, CAE tool chain and the organisationalstructure have to be taken into account simultaneously. The use of systems engineering allowsdesign alternatives and changes to be easily created, compared and verified with specificationsthroughout the entire design process.

Page 15: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

References [1] Analogy, Inc. SABER - Designer Reference, 1999.

[2] R. Bindel, R. Nitsche, R. Rothfuß, and M. Zeitz. Flachheitsbasierte Regelung eineshydraulischen Antriebs mit zwei Ventilen für einen Großmanipulator. at -Automatisierungstechnik, 48(3):124-131, 2000.

[3] L. Bitauld, M. Fliess, and J. Lévine. A flatness based control synthesis of linear systems andapplication to windshield wipers. In Proc. 4th European Control Conference ECC '97,Brussels/Belgium, 1997. Paper TH-A-I 3.

[4] J. Boichot, E. Delaleau, N.V. Diep, J. Lévine, and E. Parzy. Modelling and control of a 2d.o.f. high-precision positioning system. In Proc. 5th European Control Conference ECC'99,Karlsruhe/Germany, Paper number 1009-1, 1999.

[5] J. Bortolazzi. Untersuchungen zur rechnergestützten Erfassung, Verwaltung und Prüfung vonAnforderungsspezifikationen und Einsatzbedingungen elektronischer Steuerungs- undRegelungssysteme. Dissertation, Universität Erlangen, 1994.

[6] J. Buxton and J. McDermid. Architectural design. In J. McDermid, editor, SoftwareEngineer's Reference Book, chapter 17, pages 17/1-17/33. Butterworth-Heinemann Ltd.,1991.

[7] M. Eckrich. Methodische Unterstützung zur Spezifikation, Validierung undDiagnoseentwicklung beim Entwurf mechatronischer Systeme. Dissertation, TechnischeUniversität München, 1996.

[8] Roger Bate et al., editor. A Systems Engineering Capability Maturity Model. CarneghieMellon University, 1995.

[9] ETAS GmbH&Co. KG., Stuttgart, Germany. ASCET-SD V4.0 User's Guide, 2000.

[10] M. Fliess, J. Lévine, P. Martin, and P. Rouchon. On differentially flat nonlinear systems. InM. Fliess, editor, Nonlinear Control Systems Design, pages 408-412. Pergamon Press, 1992.

[11] M. Fliess, J. Lévine, P. Martin, and P. Rouchon. Linéarisation par bouclage dynamique ettransformations de Lie-Bäcklund. C. R. Acad. Sci. Paris, S\'erie I, 317:981-986, 1993.

[12] M. Fliess, J. Lévine, P. Martin, and P. Rouchon. Flatness and defect of nonlinear systems:Introductory theory and examples. {\em Int. J. Control}, 61:1327-1361, 1995.

[13] M. Fuchs. Systems Engineering im Hause BMW. In Steuergeräte-Design im Automobilbauund in der Industrieautomation. Haus der Technik e.V., Munich, 1997.

[14] Robert Bosch GmbH, editor. Automotive Handbook. SAE Society of Automotive Engineers,Warrendale, U.S.A., 1996.

Page 16: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

[15] Robert Bosch GmbH. Fahrdynamikregelung ESP - Fahrsicherheitssysteme für Personen-kraftwagen. Technical report, Dept. KH/VDT, 1998.

[16] R. Gmehlich and H.-M. Heinkel. Entwicklungsbegleitender Test mit LabCar Automation amBeispiel eines Fensterhebermoduls. In Proc. Competence Exchange Symposium 2000,Munich/Germany, 2000.

[17] IEEE: http://www.eda.org/vhdl-ams/. VHDL-AMS - IEEE 1076.1, 1999.

[18] IMAGINE S.A., 5, rue Brison, F-42300 Roanne, France. AMESim - Advanced ModellingEnvironment for Simulation, 1999.

[19] R. Isermann. Mechatronische Systeme. Springer-Verlag, 1999.

[20] A. Kugi, K. Schlacher, and G. Grabmair. A flatness based approach for thickness control inrolling mills. In Proc. MTNS 2000, Perpignan/France, 2000.

[21] M. Lasa, U. Becker, H.-M. Heinkel, and R. Rothfuß. Modelling injection valves from 3D toreal-time. In Proc. 1st IFAC-Conference on Mechatronic Systems, Darmstadt/Germany, 2000.

[22] M. Lasa, H.-M. Heinkel, E. Moser, and R. Rothfuß. Modelling mechatronic systems atdifferent levels of abstraction. In Proc. 4. Magdeburger Maschinenbautage, 1999.

[23] M. Lasa, H.-M. Heinkel, E. Moser, and R. Rothfuß. Expeditious design of mechatronicsystems using a VHDL-AMS based standard element library - a Common Rail example. InProc. SAE 2000 World Congress, Detroit/U.S.A. Paper number 2000-01-0581 in SAETechnical Papers Series, 2000.

[24] M. Lasa, H.-M. Heinkel, R. Neul, and R. Rothfuß. Towards a tool independent standardsimulation library - a pragmatic approach to model exchange and simplification. In Proc. 5thEuropean Control Conference ECC'99, Karlsruhe/Germany. Paper number 0823, 1999.

[25] J. Lévine. Are there new industrial perspectives in the control of mechanical systems? In P.M. Frank, editor, Advances in Control, pages 197-226. Springer-Verlag, 1999.

[26] R. Lipsett, C. Schäfer, and C. Ussery. VHDL: Hardware Description and Design. KluwerAcademic Publisher, 1989.

[27] The MathWorks. Simulink - Dynamic System Simulation for Matlab, 1999.

[28] J. McDermid and P. Rook. Software development process models. In J. McDermid, editor,Software Engineer's Reference Book, chapter 15, pages 17/1-17/33. Butterworth-HeinemannLtd, 1991.

[29] Mitchell & Gauthier Associates. ACSL Reference Manual, 10th edition, 1991.

[30] K.D. Müller-Glaser. Smart Systems Engineering. In Steuergeräte-Design im Automobilbauund in der Industrieautomation. Haus der Technik e.V., Munich, 1997.

[31] R. Rothfuß. Anwendung der flachheitsbasierten Analyse und Regelung nichtlinearerMehrgrößensysteme. VDI-Fortschritt-Berichte Nr. 8/664, VDI-Verlag. Dissertation.Universität Stuttgart, 1997.

Page 17: SYSTEMS ENGINEERING IN THE DESIGN OF MECHATRONIC … · 2. MECHATRONIC SYSTEMS – THE ESP SYSTEM AS AN EXAMPLE In the following section, the ESP system is used as a typical example

[32] R. Rothfuß, U. Becker, and J. Rudolph. Controlling a solenoid valve - a distributed parameterapproach. In Proc. MTNS 2000, Perpignan/France, 2000.

[33] R. Rothfuß, H.-M. Heinkel, M. Lasa, and P. Tirgari. Ingénierie des systèmes - le rôle ducontrôle dans le développement des systèmes mécatroniques. In Proc. ConférenceInternationale Francophone d'Automatique, Lille/France, pages 14-25. Ecole Centrale deLille, 2000.

[34] R. Rothfuß, H.-M. Heinkel, R. Sedlmeyer, S. Stoll, and J. Winkelhake. Flatness-basedcontrol of a throttle plate. In Proc. MTNS 2000, Perpignan/France, 2000.

[35] R. Rothfuß, R. Rudolph, and M. Zeitz. Flachheit: Ein neuer Zugang zur Analyse undRegelung nichtlinearer Systeme. at - Automatisierungstechnik, 45(11):517-525, 1997.

[36] E. Sax, Y. Tanurhan, and K.D. Müller-Glaser. Austauschformate und Möglichkeiten zurvirtuellen Organisation. In Steuergeräte-Design im Automobilbau und in derIndustrieautomation. Haus der Technik e.V., Munich, 1997.

[37] D. Simmes. Entwicklungsbegleitender Systemtest für elektronische Fahrzeugsteuergeräte.Dissertation, Technische Universität München, 1997.

[38] J.C. Strauss. The SCi continuous system simulation language (CSSL). Simulation, 9(6):281-304, 1967.

[39] J. v. Löwis, R. Rudolph, and F. Woittenek. Discrete-time flatness-based control of anelectromagnetically levitated rotating shaft. In Proc. MTNS 2000, Perpignan/France, 2000.

[40] A. van Zanten, R. Erhardt, and G. Pfaff. FDR - Die Fahrdynamikregelung von Bosch. ATZAutomobiltechnische Zeitschrift, 11(96), 1994.