1、raising standards worldwideNO COPYING WITHOUT BSI PERMISSION EXCEPT AS PERMITTED BY COPYRIGHT LAWBSI Standards PublicationIndustrial communication networks Fieldbus specificationsPart 5-21: Application layer service definition Type 21 elementsBS EN 61158-5-21:2012National forewordThis British Standa
2、rd is the UK implementation of EN 61158-5-21:2012. It isidentical to IEC 61158-5-21:2010. Together with BS EN 61158-3-21:2012, BS EN 61158-4-21:2012 and BS EN 61158-6-21:2012, it supersedes DD IEC/PAS 62573:2008 which is withdrawn.The UK participation in its preparation was entrusted to Technical Co
3、mmitteeAMT/7, Industrial communications: process measurement and control, including fieldbus.A list of organizations represented on this committee can be obtained onrequest to its secretary.This publication does not purport to include all the necessary provisions of acontract. Users are responsible
4、for its correct application. The British Standards Institution 2012Published by BSI Standards Limited 2012ISBN 978 0 580 71560 0ICS 25.040.40; 35.100.70; 35.110Compliance with a British Standard cannot confer immunity fromlegal obligations.This British Standard was published under the authority of t
5、he StandardsPolicy and Strategy Committee on 30 September 2012.Amendments issued since publicationAmd. No. Date Text affectedBRITISH STANDARDBS EN 61158-5-21:2012EUROPEAN STANDARD EN 61158-5-21 NORME EUROPENNE EUROPISCHE NORM June 2012 CENELEC European Committee for Electrotechnical Standardization
6、Comit Europen de Normalisation Electrotechnique Europisches Komitee fr Elektrotechnische Normung Management Centre: Avenue Marnix 17, B - 1000 Brussels 2012 CENELEC - All rights of exploitation in any form and by any means reserved worldwide for CENELEC members. Ref. No. EN 61158-5-21:2012 E ICS 25.
7、040.40; 35.100.70; 35.110 English version Industrial communication networks - Fieldbus specifications - Part 5-21: Application layer service definition - Type 21 elements (IEC 61158-5-21:2010) Rseaux de communication industriels - Spcifications des bus de terrain - Partie 5-21: Dfinition des service
8、s des couches dapplication - Elments de type 21 (CEI 61158-5-21:2010) Industrielle Kommunikationsnetze - Feldbusse - Teil 5-21: Dienstfestlegungen des Application Layer (Anwendungsschicht) - Typ 21-Elemente (IEC 61158-5-21:2010) This European Standard was approved by CENELEC on 2012-03-28. CENELEC m
9、embers are bound to comply with the CEN/CENELEC Internal Regulations which stipulate the conditions for giving this European Standard the status of a national standard without any alteration. Up-to-date lists and bibliographical references concerning such national standards may be obtained on applic
10、ation to the CEN-CENELEC Management Centre or to any CENELEC member. This European Standard exists in three official versions (English, French, German). A version in any other language made by translation under the responsibility of a CENELEC member into its own language and notified to the CEN-CENE
11、LEC Management Centre has the same status as the official versions. CENELEC members are the national electrotechnical committees of Austria, Belgium, Bulgaria, Croatia, Cyprus, the Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania
12、, Luxembourg, Malta, the Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey and the United Kingdom. BS EN 61158-5-21:2012EN 61158-5-21:2012 - 2 - Foreword The text of document 65C/606/FDIS, future edition 1 of IEC 61158-5-21, prepared by SC 65C, “I
13、ndustrial networks“, of IEC/TC 65, “Industrial-process measurement, control and automation“ was submitted to the IEC-CENELEC parallel vote and approved by CENELEC as EN 61158-5-21:2012. The following dates are fixed: latest date by which the document has to be implemented at national level by public
14、ation of an identical national standard or by endorsement (dop) 2012-12-28 latest date by which the national standards conflicting with the document have to be withdrawn (dow) 2015-03-28 Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rig
15、hts. CENELEC and/or CEN shall not be held responsible for identifying any or all such patent rights. Endorsement notice The text of the International Standard IEC 61158-5-21:2010 was approved by CENELEC as a European Standard without any modification. In the official version, for Bibliography, the f
16、ollowing note has to be added for the standard indicated: IEC/TR 61158-1:2010 NOTE Harmonized as CLC/TR 61158-1:2010 (not modified). BS EN 61158-5-21:2012- 3 - EN 61158-5-21:2012 Annex ZA (normative) Normative references to international publications with their corresponding European publications Th
17、e following documents, in whole or in part, are normatively referenced in this document and are indispensable for its application. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. NOTE When
18、 an international publication has been modified by common modifications, indicated by (mod), the relevant EN/HD applies. Publication Year Title EN/HD Year IEC 60559 - Binary floating-point arithmetic for microprocessor systems HD 592 S1 - IEC 61158-2 2010 Industrial communication networks - Fieldbus
19、 specifications - Part 2: Physical layer specification and service definition EN 61158-2 2010 IEC 61158-3-21 2010 Industrial communication networks - Fieldbus specifications - Part 3-21: Data-link layer service definition - Type 21 elements EN 61158-3-21 2012 IEC 61158-4-21 2010 Industrial communica
20、tion networks - Fieldbus specifications - Part 4-21: Data-link layer protocol specification - Type 21 elements EN 61158-4-21 2012 IEC 61158-6-21 2010 Industrial communication networks - Fieldbus specifications - Part 6-21: Application layer protocol specification - Type 21 elements EN 61158-6-21 201
21、2 ISO/IEC 7498-1 - Information technology - Open Systems Interconnection - Basic Reference Model: The Basic Model - - ISO/IEC 7498-3 - Information technology - Open Systems Interconnection - Basic Reference Model: Naming and addressing - - ISO/IEC 8822 - Information technology - Open Systems Interco
22、nnection - Presentation service definition - - ISO/IEC 9545 - Information technology - Open Systems Interconnection - Application Layer structure - - ISO/IEC 10731 1994 Information technology - Open Systems Interconnection - Basic reference model - Conventions for the definition of OSI services - -
23、BS EN 61158-5-21:2012 2 61158-5-21 IEC:2010(E) CONTENTS INTRODUCTION.6 1 Scope.7 1.1 Overview .7 1.2 Specifications8 1.3 Conformance.8 2 Normative references .8 3 Terms, definitions, symbols, abbreviations, and conventions 9 3.1 Terms and definitions from other ISO/IEC standards .9 3.2 Fieldbus data
24、 link layer terms9 3.3 Fieldbus application layer specific definitions 10 3.4 Abbreviations and symbols16 3.5 Conventions 16 4 Concepts19 4.1 Common concepts.19 4.2 Type specific concepts 36 5 Data type ASE39 5.1 General .39 5.2 Formal definition of data type objects 42 5.3 FAL defined data types43
25、5.4 Data type ASE service specification 47 6 Communication model specification47 6.1 ASEs.47 6.2 ARs.68 6.3 Summary of FAL classes.71 6.4 Permitted FAL services by AREP role71 Bibliography73 Figure 1 Relationship to the OSI Basic Reference Model .20 Figure 2 Architectural positioning of the fieldbus
26、 application layer20 Figure 3 Client/server interactions .23 Figure 4 Pull model interactions.24 Figure 5 Push model interactions.24 Figure 6 APOs services conveyed by the FAL26 Figure 7 Application entity structure.28 Figure 8 FAL management of objects.29 Figure 9 ASE service conveyance30 Figure 10
27、 Defined and established AREPs.32 Figure 11 FAL architectural components 34 Figure 12 Interaction between FAL and DLL 37 Figure 13 Publisher-subscriber communication model37 Figure 14 Client-server communication model38 Figure 15 Object model38 Figure 16 ASEs of a Type 21 application .39 BS EN 61158
28、-5-21:201261158-5-21 IEC:2010(E) 3 Figure 17 Data type class hierarchy example .40 Figure 18 The AR ASE conveys APDUs between APs61 Table 1 Types of timeliness .25 Table 2 Overall structure of the OD38 Table 3 Identify service50 Table 4 Status service .52 Table 5 Access rights for object .54 Table 6
29、 Read service .55 Table 7 Write service .57 Table 8 TB-transfer60 Table 9 COS-transfer.60 Table 10 Conveyance of service primitives by AREP role.62 Table 11 Valid combinations of AREP roles involved in an AR .62 Table 12 AR-unconfirmed send66 Table 13 AR-confirmed send67 Table 14 FAL class summary.7
30、1 Table 15 Services by AREP role 72 BS EN 61158-5-21:2012 6 61158-5-21 IEC:2010(E) INTRODUCTION This part of IEC 61158 is one of a series produced to facilitate the interconnection of automation system components. It is related to other standards in the set as defined by the “three-layer” fieldbus r
31、eference model described in IEC/TR 61158-1. The application service is provided by the application protocol making use of the services available from the data-link or other immediately lower layer. This standard defines the application service characteristics that fieldbus applications and/or system
32、 management may exploit. Throughout the set of fieldbus standards, the term “service” refers to the abstract capability provided by one layer of the OSI Basic Reference Model to the layer immediately above. Thus, the application layer service defined in this standard is a conceptual architectural se
33、rvice, independent of administrative and implementation divisions. BS EN 61158-5-21:201261158-5-21 IEC:2010(E) 7 INDUSTRIAL COMMUNICATION NETWORKS FIELDBUS SPECIFICATIONS Part 5-21: Application layer service definition Type 21 elements 1 Scope 1.1 Overview The Fieldbus Application Layer (FAL) provid
34、es user programs with a means to access the fieldbus communication environment. In this respect, the FAL can be considered a window between corresponding application programs. This standard provides the common elements for basic time-critical and non-time-critical messaging communications between ap
35、plication programs in an automation environment as well as material specific to the Type 21 protocol. The term “time-critical” is used to represent the presence of a time-window within which one or more specified actions are required to be completed with some defined level of certainty. Failure to c
36、omplete specified actions within the time window risks failure of the applications requesting the actions, with attendant risk to equipment, plant, and possibly human life. This standard defines, in an abstract way, the externally visible service provided by the FAL in terms of: a) an abstract model
37、 for defining application resources (objects) capable of being manipulated by users via the FAL service; b) the primitive actions and events of the service; c) the parameters associated with each primitive action and event, and the form that they take; d) the interrelationship between these actions
38、and events, and their valid sequences. The purpose of this standard is to define the services provided to: a) the FAL-user at the boundary between the user and the application layer of the fieldbus Reference Model; b) systems management at the boundary between the application layer and systems manag
39、ement of the fieldbus Reference Model. This standard describes the structure and services of the IEC FAL, in conformance with the OSI Basic Reference Model (ISO/IEC 7498) and the OSI Application layer Structure (ISO/IEC 9545). FAL services and protocols are provided by FAL application entities (AEs)
40、 contained in the application processes. The FAL AE is composed of a set of object-oriented Application Service Elements (ASEs) and a Layer Management Entity (LME) that manages the AE. The ASEs provide communication services that operate on a set of related application process object (APO) classes.
41、One of the FAL ASEs is a management ASE that provides a common set of services for management of the instances of FAL classes. Although these services specify how requests and responses are issued and delivered from the perspective of applications, they do not include a specification of what the req
42、uesting and responding applications are to do with them. That is, these services only define what requests and responses applications can send or receive, not the functions of the applications themselves. This permits greater flexibility to the FAL-users in standardizing such object BS EN 61158-5-21
43、:2012 8 61158-5-21 IEC:2010(E) behavior. In addition to these services, some supporting services are also defined in this standard to provide access to the FAL to control certain aspects of its operation. 1.2 Specifications The principal objective of this standard is to specify the characteristics o
44、f conceptual application layer services suitable for time-critical communications, and thus supplement the OSI Basic Reference Model in guiding the development of application layer protocols for time-critical communications. A secondary objective is to provide migration paths from previously existin
45、g industrial communications protocols. This latter objective gives rise to the diversity of services standardized as the various types of IEC 61158, and the corresponding protocols standardized in subparts of IEC 61158-6. This standard may be used as the basis for formal application programming inte
46、rfaces. Nevertheless, it is not a formal programming interface, and any such interface must address implementation issues not covered by this standard, including: a) sizes and octet ordering of various multi-octet service parameters; b) correlation of paired primitives for request and confirmation,
47、or indication and response. 1.3 Conformance This standard does not specify individual implementations or products, nor does it constrain the implementations of application layer entities in industrial automation systems. There is no conformance of equipment to this application layer service definiti
48、on standard. Instead, conformance is achieved through the implementation of conforming application layer protocols that fulfill any given type of application layer services as defined in this standard. 2 Normative references The following documents are indispensable for the application of this docum
49、ent. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies,. IEC 60559, Binary floating-point arithmetic for microprocessor systems IEC 61158-2:20101, Industrial communication networks Fieldbus specifications Part 2: Physical layer specification and service definition IEC 61158-3-21:20101, Industrial communication networks Fieldbus specificati