1、raising standards worldwideNO COPYING WITHOUT BSI PERMISSION EXCEPT AS PERMITTED BY COPYRIGHT LAWBSI Standards PublicationIndustrial communication networks Fieldbus specificationsPart 3-21: Data-link layer service definition Type 21 elementsBS EN 61158-3-21:2012National forewordThis British Standard
2、 is the UK implementation of EN 61158-3-21:2012. It isidentical to IEC 61158-3-21:2010. Together with BS EN 61158-4-21:2012, BS EN 61158-5-21:2012 and BS EN 61158-6-21:2012 it supersedes DD IEC/PAS62573:2008 which is withdrawn.The UK participation in its preparation was entrusted to Technical Commit
3、teeAMT/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 for
4、its correct application. The British Standards Institution 2012 Published by BSI Standards Limited 2012 ISBN 978 0 580 71537 2 ICS 25.040.40; 35.100.20; 35.110Compliance with a British Standard cannot confer immunity from legal obligations.This British Standard was published under the authority of t
5、he Standards Policy and Strategy Committee on 31 July 2012.Amendments/corrigenda issued since publicationDate Text affectedBRITISH STANDARDBS EN 61158-3-21:2012EUROPEAN STANDARD EN 61158-3-21 NORME EUROPENNE EUROPISCHE NORM May 2012 CENELEC European Committee for Electrotechnical Standardization Com
6、it 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-3-21:2012 E ICS 25.040
7、.40; 35.100.20; 35.110 English version Industrial communication networks - Fieldbus specifications - Part 3-21: Data-link layer service definition - Type 21 elements (IEC 61158-3-21:2010) Rseaux de communication industriels - Spcifications des bus de terrain - Partie 3-21: Dfinition des services de
8、couche liaison de donnes - Elments de Type 21 (CEI 61158-3-21:2010) Industrielle Kommunikationsnetze - Feldbusse - Teil 3-19: Dienstfestlegungen des Data Link Layer (Sicherungsschicht) - Typ 21-Elemente (IEC 61158-3-21:2010) This European Standard was approved by CENELEC on 2012-03-28. CENELEC membe
9、rs 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 applicatio
10、n 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-CENELEC
11、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, Lu
12、xembourg, Malta, the Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey and the United Kingdom. BS EN 61158-3-21:2012EN 61158-3-21:2012 - 2 - Foreword The text of document 65C/604/FDIS, future edition 1 of IEC 61158-3-21, prepared by SC 65C, “Indus
13、trial 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-3-21:2012. The following dates are fixed: latest date by which the document has to be implemented at national level by publicatio
14、n 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 rights.
15、 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-3-21:2010 was approved by CENELEC as a European Standard without any modification. In the official version, for Bibliography, the follo
16、wing 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 61158-5-21:2010 NOTE Harmonized as EN 61158-5-21:2012 (not modified). IEC 61158-6-21:2010 NOTE Harmonized as EN 61158-6-21:2012 (not modified). BS EN 61158-3-21:201
17、2- 3 - EN 61158-3-21:2012 Annex ZA (normative) Normative references 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,
18、only the edition cited applies. For undated references, the latest 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 Yea
19、r IEC 61158-2 2010 Industrial communication networks - Fieldbus specifications - Part 2: Physical layer specification and service definition EN 61158-2 2010 IEC 61158-4-21 2010 Industrial communication networks - Fieldbus specifications - Part 4-21: Data-link layer protocol specification - Type 21 e
20、lements EN 61158-4-21 2012 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 8802-3 2000 Information tec
21、hnology - Telecommunications and information exchange between systems - Local and metropolitan area networks - Specific requirements - Part 3: Carrier sense multiple access with collision detection (CSMA/CD) access method and physical layer specifications - - ISO/IEC 10731 1994 Information technolog
22、y - Open Systems Interconnection - Basic reference model - Conventions for the definition of OSI services - - BS EN 61158-3-21:2012 2 61158-3-21 IEC:2010(E) CONTENTS INTRODUCTION.6 1 Scope.7 1.1 Overview .7 1.2 Specifications7 1.3 Conformance.7 2 Normative references .8 3 Terms, definitions, symbols
23、, abbreviations, and conventions 8 3.1 Reference model terms and definitions8 3.2 Service convention terms and definitions.10 3.3 Data link service terms and definitions 10 3.4 Symbols and abbreviations13 3.5 Conventions 14 4 Data-link layer services and concepts.15 4.1 General .15 4.2 Detailed desc
24、ription of the data service .19 4.3 Detailed description of the sporadic data service.21 4.4 Detailed description of network control message service .23 5 Data link management services 26 5.1 General .26 5.2 Data link management service (DLMS) facilities 26 5.3 Data link management service (DLMS)26
25、5.4 Overview of interactions 27 5.5 Detailed specification of service and interactions.29 6 MAC control service .37 6.1 General .37 6.2 MAC control service 37 6.3 Overview of interactions 37 6.4 Detailed specification of service and interactions.38 7 Ph-control service 40 7.1 General .40 7.2 Ph-cont
26、rol service .40 7.3 Overview of interactions 40 7.4 Detailed specification of service and interactions.41 Bibliography44 Figure 1 Full-duplex flow control 16 Figure 2 Sequence diagram of DL-DATA service .16 Figure 3 Sequence diagram of DL-SPDATA service.17 Figure 4 Sequence diagram of NCM service pr
27、imitive 17 Figure 5 Relationships of DLSAPs, DLSAP-addresses, and group DL-addresses.18 Figure 6 DL-DATA service .19 Figure 7 Sequence diagram of Reset, Set-value, Get-value, SAP-allocation, SAP-deallocation, Get-SAP information and Get-diagnostic information service primitives28 Figure 8 Sequence d
28、iagram of Event service primitive .29 BS EN 61158-3-21:201261158-3-21 IEC:2010(E) 3 Figure 9 Sequence diagram of MAC-reset and MAC-forward-control service primitive38 Figure 10 Sequence diagram of Ph-reset and Ph-get-link-status service primitive41 Figure 11 Sequence diagram of Ph-link-status-change
29、 service primitive 41 Table 1 Destination DL-address .18 Table 2 Primitives and parameters used in DL-DATA service.20 Table 3 DL-DATA Primitives and Parameters.20 Table 4 Primitives and parameters used in DL-SPDATA service 22 Table 5 DL-SPDATA Primitives and Parameters 22 Table 6 Primitives and para
30、meters used on DL-NCM_SND service 23 Table 7 DL-NCM_SND Primitives and Parameters .24 Table 8 Summary of Network Control Message Type .25 Table 9 Summary of DL-management primitives and parameters .28 Table 10 DLM-RESET primitives and parameters.29 Table 11 DLM-SET_VALUE primitives and parameters 30
31、 Table 12 DLM-GET_VALUE primitives and parameters31 Table 13 DLM-SAP_ALLOC primitives and parameters 32 Table 14 DLM-SAP_DEALLOC primitives and parameters .33 Table 15 DLM-GET_SAP_INFO primitives and parameters 33 Table 16 DLM-GET_DIAG primitives and parameters.34 Table 17 DLM-EVENT primitives and p
32、arameters.35 Table 18 DLM event identifier 36 Table 19 DLM-GET_PATH primitives and parameters 36 Table 20 Summary of MAC control primitives and parameters38 Table 21 MAC-RESET primitives and parameters 38 Table 22 MAC-FW_CTRL primitives and parameters .39 Table 23 Summary of Ph-control primitives an
33、d parameters.40 Table 24 Ph-RESET primitives and parameters41 Table 25 Ph-GET_LINK_STATUS primitives and parameters .42 Table 26 Ph-LINK_STATUS _CHANGE primitives and parameters 43 BS EN 61158-3-21:2012 6 61158-3-21 IEC:2010(E) INTRODUCTION This part of IEC 61158 is one of a series produced to facil
34、itate 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. Throughout the set of fieldbus standards, the term “service” refers to the abstract capability provided by one
35、layer of the OSI Basic Reference Model to the layer immediately above. Thus, the data-link layer service defined in this standard is a conceptual architectural service, independent of administrative and implementation divisions. BS EN 61158-3-21:201261158-3-21 IEC:2010(E) 7 INDUSTRIAL COMMUNICATION
36、NETWORKS FIELDBUS SPECIFICATIONS Part 3-21: Data-link layer service definition Type 21 elements 1 Scope 1.1 Overview This part of IEC 61158 provides the common elements for basic time-critical messaging communications between devices in an automation environment. The term “time-critical” in this con
37、text means the prioritized full-duplex collision-free time-deterministic communication, of which one or more specified actions are required to be completed with some defined level of certainty. Failure to complete specified actions within the required time risks the failure of the applications reque
38、sting 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 Type 21 data-link layer in terms of: a) the primitive actions and events of the service; b) the parameters associated with each
39、 primitive action and event, and the form that they take; and c) the interrelationships between these actions and events, and their valid sequences. The purpose of this standard is to define the services provided to: The Type 21 application layer at the boundary between the application and DLLs of t
40、he fieldbus reference model; Systems management at the boundary between the DLL and the systems management of the fieldbus reference model. 1.2 Specifications The principal objective of this standard is to specify the characteristics of conceptual DLL services suitable for time-critical communicatio
41、ns, and to supplement the OSI Basic Reference Model in guiding the development of data link protocols for time-critical communications. A secondary objective is to provide migration paths from previously existing industrial communications protocols. This standard may be used as the basis for formal
42、data link programming interfaces. Nevertheless, it is not a formal programming interface, and any such interface will need to address implementation issues not covered by this standard, including: a) The sizes and octet ordering of various multi-octet service parameters; b) The correlation of paired
43、 primitives for request and confirm, or indication and response. 1.3 Conformance This standard does not specify individual implementations or products, nor do they constrain the implementations of data-link entities within industrial automation systems. BS EN 61158-3-21:2012 8 61158-3-21 IEC:2010(E)
44、 There is no conformance of equipment to this data-link layer service definition standard. Instead, conformance is achieved through implementation of the corresponding data-link protocol that fulfils the Type 21 DLL services defined in this standard. 2 Normative references The following referenced d
45、ocuments are indispensable for the application of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. IEC 61158-2:20101, Industrial communication networks Fieldbus specification
46、s Part 2: Physical layer specification and service definition IEC 61158-4-21:20101, Industrial communication networks Fieldbus specifications Part 4-21: Data-link layer protocol specification Type 21 elements ISO/IEC 7498-1, Information technology Open Systems Interconnection Basic Reference Model:
47、The Basic Model ISO/IEC 7498-3, Information technology Open Systems Interconnection Basic Reference Model: Naming and addressing ISO/IEC 8802-3:2000, Information technology Telecommunications and information exchange between systems Local and metropolitan area networks Specific requirements Part 3:
48、Carrier sense multiple access with collision detection (CSMA/CD) access method and physical layer specifications ISO/IEC 10731:1994, Information technology Open Systems Interconnection Basic Reference Model Conventions for the definition of OSI services 3 Terms, definitions, symbols, abbreviations,
49、and conventions 3.1 Reference model terms and definitions This standard is based in part on the concepts developed in ISO/IEC 7498-1 and ISO/IEC 7498-3, and makes use of the following terms defined therein. 3.1.1 DL-address ISO/IEC 7498-3 3.1.2 DL-address-mapping ISO/IEC 7498-1 3.1.3 called-DL-address ISO/IEC 7498-3 3.1.4 calling-DL-address ISO/IEC 7498-3 3.1.5 centralized multi-end-point-connection ISO/IE