contribution the grafcet formallsation a …fei.edu.br/sbai/sbai1999/artigos/iv_sbai_4.pdf · 40....

10
40. SBAI-Simp6sio Brasileiro de Automação Inteligente, São Paulo, SP, 08-10 de Setembro de 1999 CONTRIBUTION TO THE GRAFCET FORMALlSATION A PROPOSAL FOR A STATIC META-MODEL Florent Couffin, Sandrine Lampériêre,Jean-Marc Faure E-mail: J[email protected] Laboratoire d'Ingénierie Intégrée des Systêmes Industriels (LIISI) CESTI - ISMCM Toulon Place Georges Pompidou - Quartier Mayol 83000 TOULON - FRANCE Phone: (33) (0)4.94.03.88.00 Fax: (33) (0)4.94 .03.88.04 KEY WORDS. Meta-modelling, Grafcet, Automation Engineering, Entity - Relationship, Constraints. The Grafcet is a tool for lhe modelling of logical system behaviour. Two French standards [UTE 93], [AFN 95] and an intemational one [lEC 91] define in a textual shape elements of lhe Grafcet syntax and describe its evolution rules ; some examples of these roles are represented on schemata show íns the evolution of some typical grafcets in different cases. <> Unfortunately each one of these standards includes some lacks and ambiguities in lhe definition of the concepts (identification ABSTRACT. This paper presents a meta-mo dei of lhe Grafcct tool the aim of which is to improve its formalisation. This meta-model is described with an enriched Entity - Relationship formalism. After having describcd this forrnalism, we show how to build lhe meta-modelo The Grafcet basic concepts and lhe links between them are detailed. This meta-model enables to formalise lhe Grafcet syntax and to fill lhe ambiguities due to the use of the naturallanguage in the standards and reference books describing lhe Grafcet. It can also be a basic model for the data structure of tools supporting Grafcet designo RESUME. Cet article présente un m éta-rnodêle du Grafcet dont I'objet est d'en améliorer la formalisation. Ce méta-modêle est décrit au moyen d'un formalisme Entité - Relation enrichi. Aprês avoir décrit ce formalisme, nous montrons comment construire le méta-modêle visé. Nous mettons en évidence les concepts de base du Grafcet et les Iiens entre ces concepts. Ce méta-modêle permet de formaliser précisément la syntaxe du Grafcet et d'éliminer les imprécisions dues à la description en langage naturel utilisé dans les normes et ouvrages de r éférence décrivant le Grafcet. TI peut également servir de base pour la structure de donn ées d'outils d'assistance à une conception utilisant le Grafcet. " MOTS·CLÉS. Méta-modélisation, Grafcet, Automatíque, Entité - Relation, Contraintes. 1 INTRODUCTION Génie 41 of a transition, links between steps and actions, ...). Furthermore, lhe scope of these standards (number of concepts and accuracy of concepts definitions) is not lhe same, which is an other source of ambiguity. This situation induce different interpretations of this modelling tool, which is contrary to lhe wishes of the original Grafcet designers and harinful to an approach of integrated engineering of automated systems. From our point of view, these lacks and ambiguities come mainly from the only textual definition of concepts. Some attempts have been made in order to solve these problems by using forrnalisms enabling accurate definitions of the Grafcet concepts [LHO 93]. We intend to try and improve lhe Grafcet formalism by proposing more formal definitions elaborated with meta-modelling techniques. This meta-modelling process is useful iri Automation Engineering and Software Engineering, fields in which a correct formalisation of lhe functional, informational and behavioural modelling tools is necessary [DEN 89], [MOR 91], [DEN 92], [STE 93], [REV 95], [pIE 96]. A meta-model of lhe Grafcet tool enables a precise definition of the syntax, that means the set of the concepts and lhe links between these concepts, and a description of the evolution roles . In the first case, we try and elaborate a static meta-model ; in lhe second case, a dynarnic meta -model, taking into account evolutions, is searched. In this paper, the presentation is Iimitcd to a static meta-model ; for a global definition of lhe Grafcet, this meta-roodel has to be completed by the formal definition of lhe evolution roles, as described for example in [APC 83], [FRA 87], [BON 94], [LHO 94], [BIE 96]. In order to precise lhe vocabulary, we first give the definition of meta-model , Model and model, some examples are given for lhe Grafcet too1. We call Model a set, a priori consistent and complete; of concepts, association rules of these concepts and interpretation rules, A model is a structure built by association of occurrences of lhe Model concepts ; the interpretation rules described in the Model enabIe lhe construction and lhe reading of the models. In our case, the Model is the Grafcet, with its syntax and its evolution roles (enabling the models interpretation). Every grafcet is a model of lhe wished behaviour of a logical system defincd previously.

Upload: doantruc

Post on 05-May-2018

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: CONTRIBUTION THE GRAFCET FORMALlSATION A …fei.edu.br/sbai/SBAI1999/ARTIGOS/IV_SBAI_4.pdf · 40. SBAI-Simp6sio Brasileir o SP, 08-10 de 1999 CONTRIBUTION THE GRAFCET FORMALlSATION

40. SBAI-Simp6sio Brasileiro de Automação Inteligente, São Paulo, SP, 08-10 de Setembro de 1999

CONTRIBUTION TO THE GRAFCET FORMALlSATIONA PROPOSAL FOR A STATIC META-MODEL

Florent Couffin, Sandrine Lampériêre, Jean-Marc FaureE-mail: [email protected]

Laboratoire d'Ingénierie Intégrée des Systêmes Industriels (LIISI)CESTI - ISMCM Toulon

Place Georges Pompidou - Quartier Mayol83000 TOULON - FRANCE

Phone: (33) (0)4.94.03.88.00Fax: (33) (0)4.94 .03.88.04

KEY WORDS. Meta-modelling, Grafcet, AutomationEngineering, Entity - Relationship, Constraints.

The Grafcet is a tool for lhe modelling of logical systembehaviour. Two French standards [UTE 93], [AFN 95] and anintemational one [lEC 91] define in a textual shape elements oflhe Grafcet syntax and describe its evolution rules ; someexamples of these roles are represented on schemata showínsthe evolution of some typical grafcets in different cases. <>

Unfortunately each one of these standards includes some lacksand ambiguities in lhe definition of the concepts (identification

ABSTRACT. This paper presents a meta-mo dei of lhe Grafccttool the aim of which is to improve its formalisation. Thismeta-model is described with an enriched Entity - Relationshipformalism. After having describcd this forrnalism, we showhow to build lhe meta-modelo The Grafcet basic concepts andlhe links between them are detailed. This meta-model enablesto formalise lhe Grafcet syntax and to fill lhe ambiguities dueto the use of the naturallanguage in the standards and referencebooks describing lhe Grafcet. It can also be a basic model forthe data structure of tools supporting Grafcet designo

RESUME. Cet article présente un m éta-rnodêle du Grafcetdont I'objet est d'en améliorer la formalisation. Ce méta-modêleest décrit au moyen d'un formalisme Entité - Relation enrichi.Aprês avoir décrit ce formalisme, nous montrons commentconstruire le méta -modêle visé. Nous mettons en évidence lesconcepts de base du Grafcet et les Iiens entre ces concepts. Ceméta-modêle permet de formaliser précisément la syntaxe duGrafcet et d' éliminer les imprécisions dues à la description enlangage naturel utilisé dans les normes et ouvrages de r éférencedécrivant le Grafcet. TI peut également servir de base pour lastructure de donn ées d'outils d'assistance à une conceptionutilisant le Grafcet. "

MOTS·CLÉS. Méta-modélisation, Grafcet,Automatíque, Entité - Relation, Contraintes.

1 INTRODUCTION

Génie

41

of a transition, links between steps and actions, ...).Furthermore, lhe scope of these standards (number of conceptsand accuracy of concepts definitions) is not lhe same, which isan other source of ambiguity. This situation induce differentinterpretations of this modelling tool, which is contrary to lhewishes of the original Grafcet designers and harinful to anapproach of integrated engineering of automated systems.

From our point of view, these lacks and ambiguities comemainly from the only textual definition of concepts. Someattempts have been made in order to solve these problems byusing forrnalisms enabling accurate definitions of the Grafcetconcepts [LHO 93]. We intend to try and improve lhe Grafcetformalism by proposing more formal definitions elaboratedwith meta-modelling techniques. This meta -modelling processis useful iri Automation Engineering and Software Engineering,fields in which a correct formalisation of lhe functional,informational and behavioural modelling tools is necessary[DEN 89], [MOR 91], [DEN 92], [STE 93], [REV 95],[pIE 96].

A meta-model of lhe Grafcet tool enables a precise definitionof the syntax, that means the set of the concepts and lhe linksbetween these concepts, and a description of the evolutionroles . In the first case, we try and elaborate a static meta-model; in lhe second case, a dynarnic meta -model, taking intoaccount evolutions, is searched. In this paper, the presentationis Iimitcd to a static meta-model ; for a global definition of lheGrafcet, this meta-roodel has to be completed by the formaldefinition of lhe evolution roles, as described for example in[APC 83], [FRA 87], [BON 94], [LHO 94], [BIE 96].

In order to precise lhe vocabulary, we first give the definitionof meta-model , Model and model, some examples are given forlhe Grafcet too1. We call Model a set, a priori consistent andcomplete; of concepts, association rules of these concepts andinterpretation rules, A model is a structure built by associationof occurrences of lhe Model concepts ; the interpretation rulesdescribed in the Model enabIe lhe construction and lhe readingof the models. In our case, the Model is the Grafcet, with itssyntax and its evolution roles (enabling the modelsinterpretation). Every grafcet is a model of lhe wishedbehaviour of a logical system defincd previously.

Page 2: CONTRIBUTION THE GRAFCET FORMALlSATION A …fei.edu.br/sbai/SBAI1999/ARTIGOS/IV_SBAI_4.pdf · 40. SBAI-Simp6sio Brasileir o SP, 08-10 de 1999 CONTRIBUTION THE GRAFCET FORMALlSATION

EntityTypc2

EntityTypel

P.Q '- --'#Idenl fl #Iden2,

/

-, cardinalityattributes identifier

Figure 1. Representation of the basic concepts of themodelling tool

Note:

The relationship types are sornetimes given a reference Rxx tornake easier their notation.

1, this paper we introduce the forrnalism chosen to express themeta-model ; then we show in what way this forrnalism enablesto improve the definition of the Grafcet concepts by buildingstep by step its meta-mode!. The conclusion indicates thepossible applications of the work and the evolutionperspectives.

40. SBAI- Simpósio Brasileiro de Automação Inteligente , São Paulo, SP, 08-10 de Setembro de 1999

A meta-model is a representation in a suitable formalism of the occurrence of the entity type can only appear once. Theseconcepts and roles of the Model, This forrnalism replaces the attributes are then called identifiers (there are preceded by a #) .naturallanguage to define the discourse universe ; in our case, rolethe discourse universe is the Grafcet Mode!. So a meta-modelis a model of the Model.

In the meta-modelling approacli, the choice of the forrnalismused to describe the meta-model is important. This forrnalismmust be accurate enough and have an expression powersufficient to describe the structural characteristics of theMode!.

2 THE MODELLlNG TOOL USED FOR THEDESCRIPTION OF THE META-MODEL 2.2 Extensions

Only the extensions used in the meta-model are described.

Figure 3. Representatíon of a constraint C 00 relationships

Figure 2. Representation of a constraint C 00 roles .

EntityType2

EntityType2

EntityType3

EntityTypel

EntityTypel

2.2.1 Constraints on rolesA constraint on roles expresses existence conditions of anoccurrence of an entity type with regards to its participation tooccurrences of several relationship types.

2.2.2 Constraints on relatlonshipsA constraint on relationships expresses existence conditions ofoccurrences of ·relationship types, what means the existenceconditions of a couple of occurrences of entity types withregards to its participation to occurrences of severalrelationship types.

Symbol Name DefinitionC

Cf)Totality Eaeh oeeurrcnee of lhe Entity Typel must be linkedeonstraint to at least one oceurrcnce of one of the twoon roles eonsidcred relationship types ,ExcIusion Each oceurrcnee of lhe Entity TypeJ ean be linked

® eonstrnint to eilher one oceurrcnce of lhe relationship type wilhon roles the Entity Typeê, or to one occurrence of lhe

reJationship type wilh lhe Entity Typeê , but not loboth of lhem.

The meta-model built in this paper is a conceptual data mode!described with a modelling toei named OMD-GA for "Outil deModélisation des Données pour le Génie Automatique", whatmeans Data Modelling Tool for Automation Engineering[LAM94].

2.1 Basic conceptsThe modelling tool is based on the concepts of entity type andrelationship type [CRE 76]. Ao entity type gathers the entities(elements of the discourse universe) of the same nature andhaving the same properties . A relationship type gathers therelationships (semantic links between the entities) of the samenature and having the same properties ; these links arespecified by roles. The cardinalities limit the number of timesan occurrencc of an entity type can be linked to a givenrelationship type. Moreover the entity types and therelationship types are characterised by attributes representingtheir elementary properties. Aniong the attributes associated toan entity type, one or several of thern characterise that an

This toei is based on . the Entity - Relationship formalism[CRE 76]. The aim of that kind of modelling toei is therepresentation of a discourse universe regardless of anyimplementation constraint.

Since the origin of the modelling tool [BAS 89], [pER 89], theobject way has been let apart because the model designers wasonly interested in the structural aspect of the systems ; they didnot consider the dynamic description.

Nevertheless some object modelling constructs have beenintroduced to answer the Automation Engineering specificneeds. The modelling toei OMD-GA is an extension of thebasic Entity - Re1ationship forrnalism; the extensions consistin the specialisation - generalisation and a particularrelationship type for identification: the aggregation relationshiptype. Within the framework of the BASE-PTA modelstandardisation [AFN 96], other extensions stemming from thestudies of some formalisms of the same type [HAB 88],[ROC 88], [MOR 94], especially constraints on roles and onrelationships, and explicit constraints have been introduced.These constraints improve the expression power of the originalmodelling tool ,

42

Page 3: CONTRIBUTION THE GRAFCET FORMALlSATION A …fei.edu.br/sbai/SBAI1999/ARTIGOS/IV_SBAI_4.pdf · 40. SBAI-Simp6sio Brasileir o SP, 08-10 de 1999 CONTRIBUTION THE GRAFCET FORMALlSATION

40. SBAI- Simpósio Brasileiro de Automação Inteligente, São Paulo, SP, 08-10 de Setembro de 1999

SvmbolC Desiznation DefinitionExclusion Each couple of occurrences

® constraint on of entity types (Entityrelationships Type l, Entity Type2) can

not be linked to anoccurrence of bothrelationship types.

2.2.3 Aggregation relationship typeThe aggregation relationship type is a particular relationshiptype enabling to specify that an entity type is identified byanother one. The identified entity type is called 'aggrcgatedentity type, lhe identifying entity type is called aggregatingentity type. The relative identifier term replaees the absoluteidentifier termo Each occurrence of the aggregated entity type(Entity Type2) is identified by an occurrence of lheaggregating entity type (Entity Typel) and by its relativeidentifier IdenR2 (see Figure 4). ,

EntityTypel

#JdenR2

Figure 4. Representation of ao aggregation relationshiptype

2.2.4 Explicit constraintsAs for constraints on roles or cardinalities, lhe explicitconstraints affect occurrences and aim to specify someproperties of the discourse universe that can not be representedwith other constraints. The defined constraints are describedwith a declarative language based on the predieate ealculus[KLE 71].

We describe more precisely the constraints enabling toformalise scope rules (manipulation rules) betweenoccurrences of entity types.

Let us introduce a function labelled ':R lhe definition set ofwhich is the set of lhe couples (Ri, e) defined on lhe Cartesianproduct of lhe set of lhe relationship types and the union of theparts (within lhe meaning of lhe theory , of sets) of lheoccurrences ofeach entity type, so that e is a subset of lheoccurrences of one of lhe two entity types (called entity typesource) linked to lhe relationship type Ri. ':R gets a couple (Ri"ejand sends back lhe set of the occurrences of lhe other linkedentity type (called entity type target) of the relationship typeRi, these occurrences being linked to an element of e by anoccurrence o(Ri.

For example, let us formalise lhe scope mies between theelements of a program (see Figure 5). Our aim is to specify thata function (modelled by lhe entity type FCT) can onlymanipulate (modelled by lhe relationship type R3) a softwarevariable (modelled by lhe entity type SV) if this function isdefined in (modelled by the relationship type R2) lhe program(modelled by the entity type PRG) in which the variable is

43

declared (modelled by lhe relationship type RI). We can notethat this scope mie is a condition of membership of a set, whatis often found .

?JInstaatiatloD

Figure 5. Model and instanced models: examples of explicitconstraints

The different elements represented on lhe instanced model(Figure 5) are:

the occurrences of entity types represented by:

a big rectangle containing the values of lhe identifiers,

a small rectangle (on the bottom right of lhe big rectangle)containing lhe abbreviation of lhe instaneed entity type,

lhe oceurrenees of relationship types represented by:

a diamond eontaining lhe reference (Rxx) of lhe instaneedrelationship type,

the ares linking these occurrences to lhe oecurrenees of lhesource and target entity types.

To specify that lhe relationship type R3 can only be instancedbetween two occurrences of lhe entity types FCT and SV ifthese occurrcnces are linked to a same occurrence of lhe typeentity PRG respeetively by an occurrence of the relationshiptype R2 (for FCT) and by an occurrence of lhe relationshiptype RI (for SV), an explicit constraint is defined: .

v X E FCT, V Y E SV • (R3(x, y)) => (':R(R2, {x}) =':R(Rl,{y})) in which:

• E means "denotes ao occurrence of lhe type" and • means"so that",

• the predicate R3(x, y) denotes the existence of anoccurrence of lhe relationship type R3,

• lhe equality in lhe second predicate is an equality betweensets.

Let us apply this constraint to these two occurrences of a model(see Figure 5):

• case 1: ':R(R2, {(FCT, fonc)}) = {(PRG, prg)} = ':R(Rl,{(SV, var)n, lhe proposition corresponding to the secondpredicate is true, so lhe relationship type R3 .can beinstanced between the oecurrences of entity types (FCT,fone) and (SV, var).

• case 2: (':R(R2, {(FCT, fonc)}) = {(PRG, prgI)});t: (':R(RI.{(SV, var)}) = {(PRG, prg2)}), lhe propos itioncorresponding to the second predicate is false, lhe

Page 4: CONTRIBUTION THE GRAFCET FORMALlSATION A …fei.edu.br/sbai/SBAI1999/ARTIGOS/IV_SBAI_4.pdf · 40. SBAI-Simp6sio Brasileir o SP, 08-10 de 1999 CONTRIBUTION THE GRAFCET FORMALlSATION

of the Grafcet concepts3.2.2

40. SBAI- Simpósio Brasileiro de Automação lnteliqente, São Paulo, SP. 08-10 de Setembro de 1999

relationship type R3 ean not be instaneed between lhe speeifieation or design of a Iogieal system, what implies thatoecurrenees of entity types (FCT, fone) and (SV, var). every entity type must have a IabeI, a definition and an

identification mechanism. The first two items have beenpointed out from the mentioned standards and from the book[BOU92a].

As an oeeurrence of an entity type is identified by the couple(label of lhe type, value of the identifier of the oeeurrence), lhefunction 9t is written down:

Notes:

':R(reference, {(abbreviation, occurrencejdentifier, value)}), inwhich:

reference denotes lhe referenee of the eonsidered relationshiptype,

A global grafeet (GG) describes lhe behaviour of a. logicalsystem.

A step (ST) charaeterises an invariant behaviour of a part or oflhe whole considered logical system.

abbreviation denotes the abbreviation of lhe considered entitytype,

occurrencejdentifier, value denotes a value of lhe identifier oflhe oecurrences of lhe entity type.

Moreover a shortened notation ean be used in the ease ofaggregated entity types to write down lhe relative identificationof their oeeurrenees:

<oeeurrencc_identifier> ::= { -caggregatingentitytype Iabel>' , }

<relative_identifier>

3 PRESENTATION OF THE GRAFCETMETA-MODEL

An aetion (AC) is associated to a step and defines what mustbe done eaeh time the associated step is activated.

A transition (TR) expresses lhe evolution ability betweenseveral steps by following a directed Iink . This evolution isrealised by the clearing of the transition what implies a ehangein lhe step aetivity.

A reeeptivity (RE), also called transition condition, is a logicalproposition associated to a transition ; it ean either be true orfalse .

A eonnected grafeet (CG) is a grafcet (what means here a setof steps and transitions) so that it always exists a continuouspath between two elements (step or transition). We will showlatter in this paper that the definition of this eoncept is toaweak (aecording to us) and ean be diseussed.

3.1 Method and hypothesesThe meta-model aims at deseribing lhe Grafeet diseourseuniverse; the following steps, usually used during theeoneeption of a eoneeptual data model, are proposed:

definition of the entity types ,

A partial grafeet (pG) is defined as a set of several eonneetedgrafeets. As we disagree with lhe notion of eonneeted grafeet,too topological and not enough. structuring, we ehoose todefine in this paper lhe partial grafeet as a subset of a globalgrafcet whose aim is lhe description of the behaviour of alogical subsystem ; so that we provide lhe partial grafcet with astructuring nature .

ehoice of an identifieation mechanism for each entity type(absolute or reiative identification),

defmition of lhe simple relationship types,

definition of the constraints on roles and on relationships, andof lhe explicit cons traints,

definition of the attributes (non identifiers) of lhe entity typesand of the relationship types.

The proposed meta-model is a data coneeptual model of agrafcet in its finale version, what means that lhe meta-modeldoes not represent a grafcet during its designo

The meta-model does not depend on any treatment. To ensureits consistency, we must check that every objeet (entity type,relationship type, attribute, ...) can not be dedueted from anytreatment of other objeets. This ensures information are notduplieated during the ereation of lhe modeIs, what eouldintroduee ineonsistency during these models update.

3.2 Entity types

3.2.1 ObjectivesThe relevant entity types for a grafcet description are defined inthis chapter, these are all the objeets involved in an aetivity of

A maero-step (MS) is lhe only representation of an unique setof steps and transitions, this set is ealled expansion of themacro-step.

An externai variable (EV) is a Boolean variable charaeterisinglhe system whieh behaviour is described by the global grafeet.These variables eorrespond to the system inputs and outputs .

An internai variable (IV) is a Boolean variable charaeterisingthe state (activity) of a step. This limitation of the notion ofinternal variable to lhe only variable of step can be seen asrestrictive, but it is in aecordanee with the one of [AND 94].

3.3 Identification mechanisms

3.3.1 Objectives

The designer of a model (and more especially of a grafcet, inthis paper) has to manipulate objects, so he must be able topoint out without ambiguity eaeh of these objects. Moreoverthis identifieation of eaeh objeet must be consistent with theusual roles or eonventions (lhe model must be as accurate aspossible to lhe objeet it represents) . That is the reason why lhechoice of an identification mechanism is of a great importance.The chapter concerning lhe modelling tooI explains that anentity type could either have an absolute identifier, or a reiative

44

Page 5: CONTRIBUTION THE GRAFCET FORMALlSATION A …fei.edu.br/sbai/SBAI1999/ARTIGOS/IV_SBAI_4.pdf · 40. SBAI-Simp6sio Brasileir o SP, 08-10 de 1999 CONTRIBUTION THE GRAFCET FORMALlSATION

40. SBAI - Simpósio Brasileiro de Automação Inteligente, São Paulo, SP, 08-10 de Setembro de 1999

one (modelled by an aggregation relationship type). Let usdefine an identification hierarchy for lhe Grafcet objects,

Figure 6.ldentification ofthe entity types

The following chapters deal with lhe problem of theidentification of the entity types and demonstrate that somedefinitions ofthe grafcet model are still, according to us,inaccurate and even non-exístent,

3.3.2 Gl.obal grafcet and systemBy definition a global grafcet describes the behaviour of alogical system, it must be identified with regards to this system .Moreover this grafcet corresponds to a particular point of viewon the system (aim of the grafcet designer), for examp legraf cet of the wished behaviour of the machine 100. So lheentity type global grafcet is identified through an aggregationrelationship type by an entity type system (SY) . This entitytype represents the system which behaviour is descríbed. Therelative identifier of the entity type global grafcet is lhe pointof view of lhe grafcet designer (command, working ways, "0) '

Mcta-model

Figure 7. Identification of the global grafcet

3.3.3 Partial grafcet

Every partial grafcet is defined with regards to the globalgrafcet to which it belongs ; that means to lhe set of theoccurrences of the entity type partial grafcet. Two partialgrafcets can have the same label if they do not belong to lhesame global grafcet. Then lhe entity type partial grafcet isaggregated to lhe entity type global grafcet. This constraint isimportant since the partial grafcet is in an explicit way definedwith regards to the global grafcet, and no more as a gathering

45

of connected grafcets. We express this constraint through anaggregation relationship type. It is quite interesting to note thatthis point of view is not inconsistent with lhe definition of lhepartial grafcet as a way to deseribe the behaviour with a givenstructuratíon criterion. .

3.3.4 Connected grafcetIn aeeordance to lhe structuration principle, lhe connectedgrafcet is defined as a component of a partial grafcet. Theentity type connected grafcet is aggregated to lhe entity typepartial grafcet. The relative identifier of lhe entity typeconnected grafcet can be lhe result of a particular structuration,for example the label of a task (FRO 93]. Nevertheless as lhemeaning of this reIative identifier is difficult to define, it is justreplaeed by a label.

3.3.5 Macro-stepThe same reasoning as for lhe entity type conneeted grafcet isavailable for lhe identifieation of the entity type macro-step.Nevertheless in praetieal uses macro-steps are designed by analphanurnerieal referential Mxx to shorten their meaning. Thesereferentials (designations) are bijeetive to their meaning, forexample, M3: Building-up of a set of rods. 80 lhe referentialand its meaning are equivalent in a formal point of view. Themeaning is considered as lhe label (identifier) of lhe entity typemacro-step.

3.3.6 Step and transitionThe identifieation of the entity type step could be done relativeto either lhe entity type eonnected grafeet or the partial grafeetone, As the step characterises lhe whole system or a part of it,we ehoose to aggregate lhe entity type step to the entity typepartial grafcet anel lhe numcrical referential of lhe step is therelative identifier. By the same lhe transitions characterise lheevolution of lhe whole considered system or a part of it ; so lheentity type transition is aggregated to the entity type partialgrafcet.

To distinguish an initial step, one just needs to add a Booleanattribute initial to lhe entity type step.

3.3.7 Action and receptlvityAn action (respeetively a receptivity), for example put out jack,can occur several times in a same partial grafcet ; the actionsare associated to lhe steps (respectively the receptivities to lhetransitions). In order to distinguish the actions (respectively lhereceptivities) the entity type action is aggregated to lhe entitytype step (respectively lhe entity type receptivity to lhe entitytype transition). The entity type action can be identified by itscontent ; so a step can not be linked to several equal actions(lhe standards and books do not explain this). As on1y onereceptivity can be associated to a transition (cardinality 1.1),lhe receptivity has no specific identifier. Formally the entitytypes receptivity and transition could be gathered in one entitytype.

To insure lhe proposed model is consistent, lhe content of lhereceptivities and actions are to be formalised ; lhe Conwaydiagrams or lhe Backus-Naur Form could be used.

Page 6: CONTRIBUTION THE GRAFCET FORMALlSATION A …fei.edu.br/sbai/SBAI1999/ARTIGOS/IV_SBAI_4.pdf · 40. SBAI-Simp6sio Brasileir o SP, 08-10 de 1999 CONTRIBUTION THE GRAFCET FORMALlSATION

Figure 9. Communícation between the entity types

Use of lhe relationship types RII and RI2

To give an example, the following schema (see Figure 10)shows parts of grafcets whose occurrences schemata are typicalstructures [BOU 92a) .

3.3.9 Use of the identification of the main entitytypes

To give an example , the following schema shows a part of aglobal grafcet (command of the workshop WSI) and thecorresponding occurrences schema. The decomposition of thesecond partiaI grafcet (machine too12) in occurrences of theentity types PG, ST, TR, AC and RE, and the identification ofeach occurrence are describcd. In this occurrences schema, theoccurrences of the entity types are referenced by theabbreviation of the label of their type and by its identifier (orits content for the type receptivity). The occurrences of therelationship types are referenced by the label of their type andby the occurrences of linked entity types.

40.SBAI- SimpósioBrasileirode Automação Inteligente, SãoPaulo,SP,08-10 de Setembrode 1999

3.3.8 Externai variableThe externaI variable characterises the described system ; so itis identified by it. The internaI variable characterises the stateof a step. So the entity type externaI variable is aggregated tothe entity type system and the entity type internaI variable isidentified with regards to the entity type step. In the case of theentity type externaI variable, its label is its reiative identifier ;the entity type internaI variable and the entity type receptiv ityhave no specific identifier . Their label is sometimes given butis formally useless (in the model we propo se it is only areference, as it is for the content of the macro-step).

Figure 8. Example ofidentification

3.4 Simple relationship typesThe definition of the simple relationship types enables toexpress the communication links between grafcet objects, thatis the sharing of data (by variables) and lhe d épendencies(explicit commands and inter-dependencies of state) .

3.4.1 lntra- connected gnlfcet communicationThe proposed meta-model is not yet complete. Even if eachstep and each transition are completely identified, we can notdefine what step follows what transition and what transitionfollows what step. The grafcet sequentiai structure is notdescribed. The links representing the grafcet connectivity(expressed by the strueture of the conneeted grafcets) have tobe defined. These links charaeterise the links intra- connectedgrafeet. The defined relationship types (Rll and R12) arecaIled communication infra- connected grafcet relationshiptypes. They eharacterise the directed links step - transition. Thecardinalities O.N mean that a step can come before (can follow)Oor several transitions (and the same for the transitions withregards to the steps).

Figure 10. Examples oftypical structures

These schemata describe oceurrences of the entity types STand TR, and oceurrences of the relationship types RII andRI2. The relationship type RI2 eharacterises lhe directed linktransition - step and the relationship type RI I characterises thedirected link step - transition. To describe lhe alternation step -transition that characterises the execution cornmand, one onlyneeds to use the relationship type RI2 for a transition comingbefore a step and lhe relationship type RII for a step comingbefore a transition. This linear structure is caIled sequence.

The AND divergence enables to define that sequentiaItreatrnents (sequences) are done simultaneously. It iseharacterised by a transition coming before several steps ; lherelatio nship type R12 is used to model this structure. The ORconvergence is eharacterised by a step following severaItransitions. The relationship type R12 is used to model thisstrueture.

Note:

The representations of the AND convergence and of the ORdivergenee are modeIled by using the relationship type RIl.

46

Page 7: CONTRIBUTION THE GRAFCET FORMALlSATION A …fei.edu.br/sbai/SBAI1999/ARTIGOS/IV_SBAI_4.pdf · 40. SBAI-Simp6sio Brasileir o SP, 08-10 de 1999 CONTRIBUTION THE GRAFCET FORMALlSATION

40. SBAI- Simpósio Brasileiro de Automação Inteligente, São Paulo, SP, 08-10 de Setembro de 1999

'ti x E AC, 'ti y E ST. (RI4(x, y)) => (9t(R2, 9t(R5, {y})) =9t(R2, 9t(R5, 9t(R7, {x}))))

Example of the constraint concerning forcing

The following example describes the forcing of a partialgrafcet by another partial grafcet.

defined between the two relationship types Rl7 and R18. Aoaction can not both be an internal forcing action and modify anexternai variable. So an exclusion constraint on roles is addedbetween the entity type action and the roles it is linked to in thetwo relationship types R14 and R20.

PG2GGI

.../...

dJ-c=J::5 ... '.'.

PG I

3.5.3 Forcing and scope ruleThe meta-model can be ímproved by defining the nature of theinter- grafcets communications. A hierarchy of communicationand a hierarchy identification have been introduced. Theexplicit constraints are of a great interest to model the scoperules between the grafcet elements. The scope is defined as theability of object to manipulate another one. In the particularcase of forcing, an action can only force steps belonging to thesame global grafcet. This role can be modelled through anexplicit constraint:

3.5.2 ExternaI variables partitionEach externaI variable is either ao input or an output of themodelIed system, but never both. This restriction can bemodelIed by two constraints on roles (exclusion and totality)between the entity type externai variable and the roles it islinked to in the two relationship types R19 and R20. We can

that an occurrence of externaI variable is an output if it isIinked to an occurrence of R20 and is an input if it is linked toan occurrence of R19.

3.4.3 Inter- global grafcets communicationThe other relationship types modelling communication (R19and R20) concern the externai yariables ; these variables canappear in the receptivities they condition (the variables are theninputs of the system) or are modified by the actions (thevariables are then outputs of the system). 'These twocommunication ways are modelled through two relationshiptypes. These relationship types are called inter- global grafcetscommunication relationship types. In fact they theoreticallyenable the communication between global grafcets through themodelled system.

3.4.4 Other structuresThe other relationship types are defined to enable theconstruction of the structures of the connected grafcets and ofthe macro-steps, A connected grafcet gathers a set of steps andtransitions (RIS and RI6). A macro-step can be characterisedby the ending step and the beginning step of its expaosion (RI?and RI8) , a bijection exists between the macro-step and itsexpansion.

3.4.2 Inter- connected grafcets and inter- partlalgrafcets communication

By the same, let us defme the inter- connected grafcets linkswhich communication inechanisms have been studied in[LHO 93]. A first case describes the conditioning of atransition by a step belonging to an other connected grafcet(interpreted parallelism). This kind of communication can bemodelled by a relationship type linking the entity type internaivariable and the entity type receptivity. '

The second case of inter- connected grafcets links is the forcingcommand. This important concept enables to define activationstep priorities between partia! grafcets of a same global grafcet.A forcing commaod has priority on any other evolution ruleand imposes a given situation to the partial grafcet. Thiscommunication is modelled by a relationship type between theentity type action and the entity type step.

The relationship type R13 is called inter- connected grafcetscommunication relationship type and the relationship type R14is calIed inter- partial grafcets communication relationshiptype. We can note that the forcing command links can bededuced from the occurrences of the relationship type R14between the partial grafcets by using the establishedidentification mechanisms.

3.5 Improvement 01ttie semantic 01themeta-model through constraints

This chapter describes several examples of the use ofconstraints (on roles, on relationships and explicit ones) inorder to complete the meta-mode!.

3.5.1 Non isolated transitionA , transition can not be both shaft (no step following) andsource (no step corning before). This rule is modelled by atotality constraint on roles between the entity type transitionand the roles it is linked to in the two relationship types RI iand R12. By the same, a step can not be both the beginningstep and the ending step of a same macro-step. In order tomodel this rule an exclusion constraint on relationships is

Figure 11. Example of'forcing

The evaluation of the forcing condition leads to:

9t(R2, (9tcRs, {(ST, GGl.PG1.2)}))) ={(GG, GOl)} et9t(R2, (9t(R5, (9t(R7, {(AC, GGl.PG2.2.FIP0l: (2, 5))}))))) ={(GG, GOl)}

We can conclude that lhe occurrence of the relationship typeR14 (forcing) between lhe occurrence of the entity type actionFIPGI: (2,5) and the occurrence of the entity type step 2 of thepartial grafcet 1 is allowed (it is the same for the occurrence ofthe entity type step 5 of the partial grafcet 1).

47

Page 8: CONTRIBUTION THE GRAFCET FORMALlSATION A …fei.edu.br/sbai/SBAI1999/ARTIGOS/IV_SBAI_4.pdf · 40. SBAI-Simp6sio Brasileir o SP, 08-10 de 1999 CONTRIBUTION THE GRAFCET FORMALlSATION

An important work is still to be done, the followingperspectives can be thought of: .

5 THANKS

the taking into account of the Grafcet dynamic aspect(evolution roles)

The object modclling frameworks can thcn provide attractivesoIutions since they alIow to describe from a conceptuaI datamodeI the states of the entity types and the communicationsbetween these entity types .

[AND 94] : C. ANDRE, D. GAFFE. Evénements et conditionsen GRAFCET. Automatic ControlProduction SystemsReview, AFCETIHERMES, vol, 28 n° 4. p. 331-352.1994. .

Bibliography

[APC 83] : APCET, Logic Systems Group. Interprétationsalgébriques et algorithmiques du Grafcet. Le NouvelAutomatisme Review. September 1983.

[AFN 95] : French standard NF C 03-190. Diagrammefonctionnel GRAFCETpour la description des systêmeslogiques de commande . September 1995.

[AFN 96] : Représentation des syst êmes de contrôle et decommande des systêmes automatisés. AFNOR standardNFZ 68-901. 1996.

The authors of this paper have been for several years membersof the APCET workgroup GRAFCET. The described work hasbeen presented to lhe workgroup and we thank its members fortheir comments and advices .

• the taking into account of the externai semantic brought bythe designer during the building of a grafcet

It is usually admitted that the structure of a particular grafcetbrings information on the application structure (working ways,command flexibility, ...) that are not included in the Grafcetformalismo The modelling of these underlying conceptsimpIying structuration ways would be of a great improvement.

Finally in the aim of a better dissemination of the Grafcet, wethink it would be of a great interest if a meta -model of theformalism was given in the future standards, what would avoidthe different interpretations brought by incomplete defmitions.

[BAS 89] : BASE-PTA V 3.1. Reference document, fascic1es Oto 4, Centre Coopératif de Génie Automatique (CCGA).January 1989. .

[BIE 96] : E. BIEREL, O. DOUCHIN; P. LHOSTE. LeGrafcet : du jeu à la r éalité. Proceedings of theAPCET'96 Congress: Reactive systems modelling.Brest, France. p. 123-130. March 1996.

[BON 94] : E. BON-BIEREL. Méta-Modeles du Grafcet.Research Report, Automated Production DEA, Nancy IUniversity. September 1994.

[BOU 92a] : N. BOUTEILLE, P. BRARD, G. COLOMBARI,N. COTAINA, D. RICHET. Le GRAFCET. C épaduês

40. SBAI- Simpósio Brasileiro de Automação Inteligente, São Paulo, SP, 08-10 de Setembro de 1999

for example lhe one of BASE-PTA standard [AFN 96] , caneasily be defined through the entity types modelling behav iour.

Comments on the resulting model3.6

Note:

Every scope role can be modelled with that kind of constraint.In the framework of a Language Inspired of the Grafcet meta-modelling [pAU 92], other cases have been studied andmodelled [COU 93] .

4 CONCLUSIONS

The resulting modeI enables to point out every Grafcet object.It also enabIes to rebuild the topoIogicaI links between thedifferent objects (links step -transition) and the hierarchícallinks coming from the communication between the differentleveis .

For several years, many works [LES 94], [LHO 94], [COU 97],for example, have been dedicated to the improvement of themodels representation formalisms used during the design ofproduction systems. The Grafcet is one of these formalisms .This paper is an attempt to give better definitions of itsconcepts by using meta-modelling techniques.

In fact this work cnabJes to point out some lacks or ambiguitiesof the standards on which the work is based (existence of atransition identification, definition of the step activity variabIe,scope of the forcing commands, for example) and proposessome soIutions to fill thcse lacks. Moreover this meta-modelenables to ensure the consistency during any future evoIutionof the ModeI. Every new concept must be integrated to theexisting meta-model,

Conceming the possible appIications the proposed model canbe the base for a data model for a grafcet editor or be used todesign the structure of exchange files between softwaressupporting the activities concerned by the data described in themeta-modeI,these applications come from the principIes oftheintegration by means of data [FRA 93], [DID 95], [LAM 95].

Concerning the integrated engineering of production systems[CHA 96], the Grafcet meta-rnodel can be linked to otherformaIisms (IDEFO, SA-RT, ...) [COU 96], [FAU 96] or toconceptual data models describing the materialisation of anapplication (materiel components, software elements;...). In thesecond case a link with a reference modeI of the command part,

The Grafcet syntactical rules (for example the step - transition. altemation) are checked during the construction ; the partitionof the objects is ensured by the relative identificationmechanisms. The set of the steps and the transitions builds apartition of a partial grafcet, the set of the partial grafcetsbuilds a partition of a global grafcet, ...

The notion of partial grafcet has been preferred to the notion ofconnected grafcet because of a nowadays perception of theconnected grafcets more topoIogical than structuring describedin the reference books [BOU 92a], [UTE 93]. If the definitionof the connected grafcet notion is given with some morestructuration, as the designer wishes ít, it wouId modify therneta-model by introducing one more identification leveI. Thesteps, transitions and macro-steps would then have beenidentified with regards to the connected grafcet.

Moreover some additional attributes can be thought of in orderto include some Grafcet extensions [BOU 92b] or in the case ofthe Languages Inspired of the Grafcet.

48

Page 9: CONTRIBUTION THE GRAFCET FORMALlSATION A …fei.edu.br/sbai/SBAI1999/ARTIGOS/IV_SBAI_4.pdf · 40. SBAI-Simp6sio Brasileir o SP, 08-10 de 1999 CONTRIBUTION THE GRAFCET FORMALlSATION

40. SBAI - Simpósio Brasileiro de Automação Inteligente, São Paulo, SP, 08-10 de Setembro de 1999

Publishers, eolleetion automatisation et produetion.Mareh 1992 .

[BOU 92b] : N. BOUTEILLE. L'extension du modeleGRAFCET à un plus large domaine est-elle nécessaire? Proeeedings of the GRAFCET'92 Congress: Theoryand applieations - Grafeet. p. 3-12. Paris, Franee. Mareh1992.

[CHA 96] : V. CHAPURLAT, F. PRUNET. Un modele pour lasp écification, la conception et la validation des systêmesde contrôle/commande répartis: le modele ACSY-R.European Joumal of Automation, AFCETIHERMES,voI. 30 n? 1. p. 25-62 . 1996.

[CHE 76] : P. CHEN. The entity-relationship model: towardsa unified view of data. ACM transaetions on databasesystems, voI. 1 n? 1. Mareh 1976.

[COU 93] : F. COUFFIN. De la spécification à l'exploitationdes systêmes d'information pour le génie automatique.Researeh Report, Automated Produetion DEA, EcoleNormale Supérieure de Caehan. September 1993 .

[COU 96] : F . COUFFIN, J.-J. DUMERY, J.-M. FAURE, J.-P.FRACHET. La méta-modélisation pour l'intégrationdes outils-méthodes : application au GEMMA et auGrafcet. Proeeedings of the AFCET'96 Congress :Reaetive systems modelling. Brest, Franee . p . 381-388.Mareh 28-29, 1996.

[DEN 89] : C. DENIS. Le m éta-mod êle de représentation desméthodologies de conception des syst êmesd'informatioii du projet GEMME. Proeeedings of lheINFORSID'89 Congresso p. 95-118. Naney, Franee.May 23-26, 1989.

[DEN 92] : B. DENIS, J.-J. LESAGE, G. TIMON. Toward atheory ofintegrated modelling. Proeeedings of lhe IFACWorkshop on CIM in proeess and manufaeturingindustries. Espoo, Finland. November 1992.

[DID 95] : M. M . DIDIC, F. COUFFIN, E. HOLLER, S.LAMPERIERE, F. NEUSCHELER, J. ROGIER, M. DEVRIES. Open Engineering and OperationalEnvironment for CIMOSA. Computers in Industry, vol.27 n° 2. p. 167-178. Oetober 1995.

[pAU 92] : J.-M. FAURE. Quelques dif.ficultés à transposerdes spécifications GRAFCET dans un langaged'automate "inspir édu GRAFCET". Proeeedings of theGRAFCET'92 Congress: Theory and app1ieations -Grafeet. p. 197-205. Paris, Franee. Mareh 1992.

[pAU 96] : J.-M. FAURE, A. BASSAND, F. COUFFIN, J.-P.FRACHET. lntégration des formalismes CIMOSA etGRAFCETpour la modélisation des aspects fonctionnelet dynamique des syst êmes de production. Proeeedingsof lhe 5lh Intemationa1 Congress of IndustrialEngineering. p. 19-25, tomem. Grenob1e, Franee. April2-4,1996.

[FRA 87] : J.-P. FRACHET. Une introduction au G énieAutomatique : faisabilité d'une chaine intégrée d'out ilsCAO pour la conception et l 'exploitation des machinesautomatiques industrielles. Ph . D., Naney I University,Ju1y 1987.

49

[FRA 93] : J.-P. FRACHET, J.-M . FAURE, F. COUFFIN.L'intégration par les données en productique.Application au g énie automatique. Proeeedings of theAFCET'93 Congresso p. 99-110, tome 12. Versailles,Franee. June 8-10; 1993.

(FRO 93] : B. FROMENT. Structural design with GRAFCET :towards a global method. Automatie Control ProduetionSystems Review, AFCETIHERMES, vol. 27 n° 1. p. 11-23.1993.

[HAB 88] : H. HABRIAS. Proposals for some extensions ofthe NIAM modelo Proeeedings of lhe Information &Knowledge Engineering Congresso Paris, Franee. Apri!1988.

[IEC 91] : Preparation offunction charts for control systems.International Standard, IEC 848 . 1991.

[KLE 71] : S. KLEENE. Logique Mathématique. ArmandColin Publi shers. 1971.

[LAM 94] : S. LAMPERIERE. Formalisation d'un outil demodélisation entité relation à l'aide d'un métamodêle.Researeh Report, Automated Produetion DEA, Eeo1eNorma1e Supérieure de Caehan. July 1994 .

[LAM 95] : S. LAMPERIERE, F. COUFFIN, J.-P. FRACHET.Méta-modélisation pour l'intégration. par les donnéesdes activit és d'ing énierie des systêmes .indu striels.Application à la réalisation d'un atelier logiciel d'aide àla conception des syst êmes d'information. Proeeedingsof the Intemational industrial engineering Conferenee :Produc tivity .in a wor1d without borders. Montreal(Quebee), Canada. p. 221-230. October 1995.

[LES 94] : J.-J. LESAGE. Contribution à la formalisation desmode les et méthodes des syst êmes de production.Habilitation à diriger des reeherehes, Naney IUniversity. February 1994.

[LHO 93] : P. LHOSTE, H. PANETIO, M. ROESCH.GRAFCET : from syntax to semantics. AutomatieControl Produetion Systems Review,AFCETIHERMES; vol. 27 n° 1. p. 127-141. 1993.

[LHO 94] : P. LHOSTE. Contribution au Génie Automatique :concepts, modeles, méthodes et outils. Hab ilitation àdiriger des reeherehes, Naney I University. February1994.

[MOR 91] : J. MOREJON, R. OUDRHIRI, M . deGAUDEMONT, P. NEGROS. GraphOR: A MetaDesign Tool. Proeeedings of lhe Entity-Re1ationshipApproaeh Conferenee: The Core of ConeeptualModelling. p,43-56. H. Kangassalo Editor, EIsevierSeience Publishers B.V. (North-Holland). 1991.

[MOR 94] : J. MOREJQN. MERlSE Vers une modélisationorientée objeto Les Editions d'Organisation, eolleetionIngénierie des syst êmes d'information. 1994 .

[PER 89] : H. PERRIEN. Modele de structure de données diteapplication POUI' un poste de travail de conception, deréalisation et d'exploitation .d'équipements deproduction automatisée. Ph . D., Université des FlandresArtois . July 1989.

Page 10: CONTRIBUTION THE GRAFCET FORMALlSATION A …fei.edu.br/sbai/SBAI1999/ARTIGOS/IV_SBAI_4.pdf · 40. SBAI-Simp6sio Brasileir o SP, 08-10 de 1999 CONTRIBUTION THE GRAFCET FORMALlSATION

40. SBAI- Simpósio Brasileiro de Automação Inteligente, São Paulo, SP, 08-10 de Setembro de 1999

[PIE 96] ; L. PIETRAC, B. DENIS, J.-J. LESAGE.Formalization of the design of control systems.Proceedings of the WAC'96 Congresso MontpeIlier,France. May 1996.

[REV 95] : N. REVAULT, H. A. SAHRAOUI, G. BLAIN, 1.-F. PERROT. A MetaModeling technique : theMETAGEN system. Proceedings of the TOOLSEUROPE'95 Conference, TOOLS 16, Prentice HalI. p.127-139. Versailles , France. March 1995.

[ROC 88]; A. ROCHFELD, J. MOREJON. Merise: uneméthode en mouvement. Modeles et Bases de DonnéesReview, AFCET, n08. p. 37-56. February 1988.

[STE 93] ; P. M. STEELE, A. B. ZASLAVSKY. The Role ofMeta Models in Federating System ModellingTechniques. Proceedings of the 12th internationalconference Entíty-Relationship Approach, Springer-Verlag. p. 315-326 . Arlington, USA. December 1993.

[UTE 93] : UTE, Union Technique de l'Electricité.Etablissement des diagrammes fonctionnels poursyst êmes de commande. Diagramme fonctionnel«GRAFCET». Extension des concepts de base.Publication UTE C 03-191. June 1993.

50