1、raising standards worldwideNO COPYING WITHOUT BSI PERMISSION EXCEPT AS PERMITTED BY COPYRIGHT LAWBSI Standards PublicationIndustrial Communication Networks Fieldbus SpecificationsPart 6-21: Application layer protocol specification Type 21 elementsBS EN 61158-6-21:2012National forewordThis British St
2、andard is the UK implementation of EN 61158-6-21:2012. It is identical to IEC 61158-6-21:2010. Together with BS EN 61158-3-21:2012,BS EN 61158-4-21:2012 and BS EN 61158-5-21:2012, it supersedesDD IEC/PAS 62573:2008 which is withdrawn.The UK participation in its preparation was entrusted to Technical
3、 Committee AMT/7, Industrial communications: process measurement and control, including fieldbus.A list of organizations represented on this committee can be obtained on request to its secretary.This publication does not purport to include all the necessary provisions of a contract. Users are respon
4、sible for its correct application. The British Standards Institution 2012Published by BSI Standards Limited 2012 ISBN 978 0 580 71572 3 ICS 25.04.40; 35.100.70; 35.110 Compliance with a British Standard cannot confer immunity from legal obligations.This British Standard was published under the autho
5、rity of the Standards Policy and Strategy Committee on 31 July 2012.Amendments issued since publicationDate Text affectedBRITISH STANDARDBS EN 61158-6-21:2012EUROPEAN STANDARD EN 61158-6-21 NORME EUROPENNE EUROPISCHE NORM June 2012 CENELEC European Committee for Electrotechnical Standardization Comi
6、t 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-6-21:2012 E ICS 25.040.
7、40; 35.100.70; 35.110 English version Industrial communication networks - Fieldbus specifications - Part 6-21: Application layer protocol specification - Type 21 elements (IEC 61158-6-21:2010) Rseaux de communication industriels - Spcifications des bus de terrain - Partie 6-21: Spcification des prot
8、ocoles des couches dapplication - Elments de type 21 (CEI 61158-6-21:2010) Industrielle Kommunikationsnetze - Feldbusse - Teil 6-21: Protokollspezifikation des Application Layer (Anwendungsschicht) - Typ 21-Elemente (IEC 61158-6-21:2010) This European Standard was approved by CENELEC on 2012-03-28.
9、CENELEC members 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
10、on application 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
11、 CEN-CENELEC 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,
12、Lithuania, Luxembourg, Malta, the Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey and the United Kingdom. BS EN 61158-6-21:2012EN 61158-6-21:2012 - 2 - Foreword The text of document 65C/607/FDIS, future edition 1 of IEC 61158-6-21, prepared by S
13、C 65C, “Industrial 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-6-21:2012. The following dates are fixed: latest date by which the document has to be implemented at national level
14、by publication 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 p
15、atent rights. 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-6-21:2010 was approved by CENELEC as a European Standard without any modification. In the official version, for Bibliograp
16、hy, the following notes have to be added for the standards indicated: IEC/TR 61158-1:2010 NOTE Harmonized as CLC/TR 61158-1:2010 (not modified). IEC 61784-2:2010 NOTE Harmonized as EN 61784-2:2010 (not modified). BS EN 61158-6-21:2012- 3 - EN 61158-6-21:2012 Annex ZA (normative) Normative references
17、 to international publications with their corresponding European publications The 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
18、edition of the referenced document (including any amendments) applies. NOTE When an international publication has been modified by common modifications, indicated by (mod), the relevant EN/HD applies. Publication Year Title EN/HD Year IEC 61158-3-21 2010 Industrial communication networks - Fieldbus
19、specifications - Part 3-21: Data-link layer service definition - Type 21 elements EN 61158-3-21 2012 IEC 61158-4-21 2010 Industrial communication networks - Fieldbus specifications - Part 4-21: Data-link layer protocol specification - Type 21 elements EN 61158-4-21 2012 IEC 61158-5-21 2010 Industria
20、l communication networks - Fieldbus specifications - Part 5-21: Application layer service definition -Type 21 elements EN 61158-5-21 2012 ISO/IEC 7498-1 - Information technology - Open Systems Interconnection - Basic Reference Model: The Basic Model - - ISO/IEC 8822 - Information technology - Open S
21、ystems Interconnection - Presentation service definition - - ISO/IEC 8824-1 - Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation - - ISO/IEC 9545 - Information technology - Open Systems Interconnection - Application Layer structure - - ISO/IEC 9899 - Progr
22、amming Languages - C - - ISO/IEC 10731 1994 Information technology - Open Systems Interconnection - Basic reference model - Conventions for the definition of OSI services - - IEEE 754 2008 Binary floating-point arithmetic - - BS EN 61158-6-21:2012 2 61158-6-21 IEC:2010(E) CONTENTS INTRODUCTION.7 1 S
23、cope.8 1.1 General .8 1.2 Overview .8 1.3 Specifications9 1.4 Conformance.9 2 Normative references .9 3 Terms, definitions, symbols, abbreviations, and conventions 10 3.1 Terms and definitions from other ISO/IEC standards .10 3.2 Other terms and definitions .10 3.3 Abbreviations and symbols16 3.4 Co
24、nventions 17 4 FAL syntax description .19 4.1 General .19 4.2 FAL-AR PDU abstract syntax 19 4.3 Abstract syntax of PDU body.20 4.4 Protocol data units (PDUs) for application service elements (ASEs) 21 5 Transfer Syntax24 5.1 Overview of encoding 24 5.2 APDU header encoding .25 5.3 APDU body encoding
25、 26 5.4 Encoding of Data types .26 6 FAL protocol state machines 30 7 AP context state machine .32 8 FAL service protocol machine.32 8.1 General .32 8.2 Common parameters of the primitives .32 8.3 AP ASE protocol machine .32 8.4 Service data object ASE protocol machine (SDOM).36 8.5 Process data obj
26、ect ASE protocol machine (PDOM)40 9 AR protocol machine 41 9.1 General .41 9.2 Point-to-point user-triggered confirmed client/server AREP (PTC-AR) ARPM 42 9.3 Multipoint network-scheduled unconfirmed publisher/subscriber AREP (MSU-AR) ARPM.44 9.4 Multipoint user-triggered unconfirmed publisher/subsc
27、riber AREP (MTU-AR) ARPM47 10 DLL mapping protocol machine 49 10.1 Primitive definitions .49 10.2 DMPM state machine 50 Bibliography51 Figure 1 Common structure of specific fields17 Figure 2 APDU overview 25 BS EN 61158-6-21:201261158-6-21 IEC:2010(E) 3 Figure 3 Type field.25 Figure 4 Encoding of Ti
28、me of Day value.29 Figure 5 Encoding of Time Difference value.30 Figure 6 Primitives exchanged between protocol machines31 Figure 7 State transition diagram of APAM.34 Figure 8 State transition diagram of SDOM 37 Figure 9 State transition diagram of PDOM 40 Figure 10 State transition diagram of PTC-
29、ARPM 43 Figure 11 State transition diagram of MSU-ARPM46 Figure 12 State transition diagram of MTU-ARPM 48 Figure 13 State transition diagram of DMPM 50 Table 1 Conventions used for AE state machine definitions .18 Table 2 Status code for the confirmed response primitive 21 Table 3 Encoding of FalAr
30、Header field.25 Table 4 Transfer Syntax for bit sequences .26 Table 5 Transfer syntax for data type UNSIGNEDn27 Table 6 Transfer syntax for data type INTEGERn.28 Table 7 Primitives exchanged between FAL-user and APAM33 Table 8 Parameters used with primitives exchanged FAL-user and APAM .34 Table 9 A
31、PAM state table Sender transitions 34 Table 10 APAM state table Receiver transitions35 Table 11 Functions used by the APAM.35 Table 12 Primitives exchanged between FAL-user and SDOM .36 Table 13 Parameters used with primitives exchanged FAL-user and SDOM .37 Table 14 SDOM state table Sender transiti
32、ons38 Table 15 SDOM state table Receiver transitions .39 Table 16 Functions used by the SDOM 39 Table 17 Primitives exchanged between FAL-user and PDOM .40 Table 18 Parameters used with primitives exchanged between FAL-user and PDOM.40 Table 19 PDOM state table Sender transitions41 Table 20 PDOM sta
33、te table Receiver transitions .41 Table 21 Functions used by the SDOM 41 Table 22 Primitives issued by user to PTC-ARPM 42 Table 23 Primitives issued by PTC-ARPM to user 42 Table 24 PTC-ARPM state table sender transactions 43 Table 25 PTC-ARPM state table receiver transactions 44 Table 26 Function B
34、uildFAL-PDU.44 Table 27 Primitives issued by user to ARPM 44 Table 28 Primitives issued by ARPM to user 44 Table 29 MSU-ARPM state table sender transactions .46 Table 30 MSU-ARPM state table receiver transactions .46 Table 31 Function BuildFAL-PDU.46 BS EN 61158-6-21:2012 4 61158-6-21 IEC:2010(E) Ta
35、ble 32 Primitives issued by user to ARPM 47 Table 33 Primitives issued by ARPM to user 47 Table 34 MTU-ARPM state table sender transactions .48 Table 35 MTU-ARPM state table receiver transactions48 Table 36 Function BuildFAL-PDU.49 Table 37 Primitives issued by ARPM to DMPM 49 Table 38 Primitives is
36、sued by DMPM to ARPM 49 Table 39 Primitives issued by DMPM to DLL49 Table 40 Primitives issued by DLL to DMPM49 Table 41 DMPM state table sender transactions .50 Table 42 DMPM state table receiver transactions50 BS EN 61158-6-21:201261158-6-21 IEC:2010(E) 7 INTRODUCTION This part of IEC 61158 is one
37、 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 reference model described in IEC/TR 611581. The application protocol provides the application service by making use of the ser
38、vices available from the data-link or other immediately lower layer. The primary aim of this standard is to provide a set of rules for communication expressed in terms of the procedures to be carried out by peer application entities (AEs) at the time of communication. These rules for communication a
39、re intended to provide a sound basis for development in order to serve a variety of purposes: as a guide for implementers and designers; for use in the testing and procurement of equipment; as part of an agreement for the admission of systems into the open systems environment; as a refinement to the
40、 understanding of time-critical communications within OSI. This standard is concerned, in particular, with the communication and interworking of sensors, effectors and other automation devices. By using this standard together with other standards positioned within the OSI or fieldbus reference model
41、s, otherwise incompatible systems may work together in any combination. BS EN 61158-6-21:2012 8 61158-6-21 IEC:2010(E) INDUSTRIAL COMMUNICATION NETWORKS FIELDBUS SPECIFICATIONS Part 6-21: Application layer protocol specification Type 21 elements 1 Scope 1.1 General This standard is one of a series p
42、roduced to facilitate the interconnection of automation system components. It is related to other standards in the set as defined by the three-layer fieldbus reference model described in IEC/TR 61158-1:2010. This standard contains material specific to the Type 21 communication protocol. 1.2 Overview
43、 The Fieldbus Application Layer (FAL) provides user programs with a means to access the fieldbus communication environment. In this respect, the FAL can be viewed as a window between corresponding application programs. This standard provides common elements for basic time-critical and non-time-criti
44、cal messaging communications between application programs in an automation environment, as well as material specific to Type 21. The term “time-critical” is used to represent the presence of a time-window, within which one or more specified actions must to be completed with some defined level of cer
45、tainty. Failure to complete specified actions within the required time risks the failure of the applications requesting the actions, with attendant risk to equipment, plant, and possibly human life. This standard defines interactions between remote applications. It also defines the externally visibl
46、e behavior provided by the Type 21 application layer in terms of: a) the formal abstract syntax defining the application layer protocol data units (APDUs) conveyed between communicating application entities; b) the transfer syntax defining encoding rules that are applied to the APDUs; c) the applica
47、tion context state machine defining the application service behavior visible between communicating application entities; d) the application relationship state machines defining the communication behavior visible between communicating application entities. The purpose of this standard is to: a) descr
48、ibe the wire-representation of the service primitives defined in IEC 61158-5-21:2010; b) describe the externally visible behavior associated with their transfer. This standard defines the protocol of the Type 21 application layer in conformance with the OSI Basic Reference Model (ISO/IEC 7498) and t
49、he OSI application layer structure (ISO/IEC 9545). BS EN 61158-6-21:201261158-6-21 IEC:2010(E) 9 1.3 Specifications The principal objective of this standard is to specify the syntax and behavior of the application layer protocol that conveys the Type 21 application layer services. A secondary objective is to provide migration paths from previously existing industrial commun
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1