1、BSI Standards PublicationIndustrial communication networks Fieldbus specificationsPart 3-2: Data-link layer service definition Type 2 elementsBS EN 61158-3-2:2014National forewordThis British Standard is the UK implementation of EN 61158-3-2:2014. It is identical to IEC 61158-3-2:2014. It supersedes
2、 BS EN 61158-3-2:2008 which is withdrawn.The UK participation in its preparation was entrusted to TechnicalCommittee AMT/7, Industrial communications: process measurement and control, including fieldbus.A list of organizations represented on this committee can be obtained onrequest to its secretary.
3、This publication does not purport to include all the necessary provisions ofa contract. Users are responsible for its correct application. The British Standards Institution 2014.Published by BSI Standards Limited 2014ISBN 978 0 580 79362 2ICS 25.040.40; 35.100.20; 35.240.50Compliance with a British
4、Standard cannot confer immunity fromlegal obligations.This British Standard was published under the authority of theStandards Policy and Strategy Committee on 31 October 2014.Amendments/corrigenda issued since publicationDate Text affectedBRITISH STANDARDBS EN 61158-3-2:2014EUROPEAN STANDARDNORME EU
5、ROPENNEEUROPISCHE NORMEN 61158-3-2 October 2014 ICS 25.040.40; 35.100.20; 35.110 Supersedes EN 61158-3-2:2008 English Version Industrial communication networks - Fieldbus specifications - Part 3-2: Data-link layer service definition - Type 2 elements (IEC 61158-3-2:2014) Rseaux de communication indu
6、striels - Spcifications des bus de terrain - Partie 3-2: Dfinition des services de la couche liaison de donnes - Elments de type 2 (CEI 61158-3-2:2014) Industrielle Kommunikationsnetze - Feldbusse - Teil 3-2:Dienstfestlegungen des Data Link Layer(Sicherungsschicht) - Typ 2-Elemente (IEC 61158-3-2:20
7、14) This European Standard was approved by CENELEC on 2014-09-17. 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 bibliographi
8、cal references concerning such national standards may be obtained 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 responsibi
9、lity of a CENELEC member into its own language and notified to the 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, Fo
10、rmer Yugoslav Republic of Macedonia, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, the Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey and the United Kingdom. European Committee for Electrotechn
11、ical Standardization Comit Europen de Normalisation ElectrotechniqueEuropisches Komitee fr Elektrotechnische Normung CEN-CENELEC Management Centre: Avenue Marnix 17, B-1000 Brussels 2014 CENELEC All rights of exploitation in any form and by any means reserved worldwide for CENELEC Members. Ref. No.
12、EN 61158-3-2:2014 E EN 61158-3-2:2014 - 2 - Foreword The text of document 65C/759/FDIS, future edition 2 of IEC 61158-3-2, prepared by SC 65C “Industrial networks“ of IEC/TC 65 “Industrial-process measurement, control and automation“ was submitted to the IEC-CENELEC parallel vote and approved by CEN
13、ELEC as EN 61158-3-2:2014. The following dates are fixed: latest date by which the document has to be implemented at national level by publication of an identical national standard or by endorsement (dop) 2015-06-17 latest date by which the national standards conflicting with the document have to be
14、 withdrawn (dow) 2017-09-17 This document supersedes EN 61158-3-2:2008. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. CENELEC and/or CEN shall not be held responsible for identifying any or all such patent rights. This document
15、has been prepared under a mandate given to CENELEC by the European Commission and the European Free Trade Association. Endorsement notice The text of the International Standard IEC 61158-3-2:2014 was approved by CENELEC as a European Standard without any modification. In the official version, for Bi
16、bliography, the following notes have to be added for the standards indicated: IEC 61158-1:2014 NOTE Harmonized as EN 61158-1:2014 (not modified). IEC 61158-2:2014 NOTE Harmonized as EN 61158-2:2014 (not modified). IEC 61158-5-2:2014 NOTE Harmonized as EN 61158-5-2:2014 (not modified). IEC 61158-6-2:
17、2014 NOTE Harmonized as EN 61158-6-2 1)(not modified). IEC 61784-1:2014 NOTE Harmonized as EN 61784-1 1)(not modified). IEC 61784-2:2014 NOTE Harmonized as EN 61784-2:2014 (not modified). 1) To be published. BS EN 61158-3-2:2014- 3 - EN 61158-3-2:2014 Annex ZA (normative) Normative references to int
18、ernational 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 edition
19、 of the referenced document (including any amendments) applies. NOTE 1 When an International Publication has been modified by common modifications, indicated by (mod), the relevant EN/HD applies. NOTE 2 Up-to-date information on the latest versions of the European Standards listed in this annex is a
20、vailable here: www.cenelec.eu. Publication Year Title EN/HD Year IEC 61158-4-2 2014 Industrial communication networks - Fieldbus specifications - Part 4-2: Data-link layer protocol specification - Type 2 elements EN 61158-4-2 2)ISO/IEC 7498-1 - Information technology - Open Systems Interconnection -
21、 Basic Reference Model: The Basic Model - - ISO/IEC 7498-3 - Information technology - Open Systems Interconnection - Basic Reference Model: Naming and addressing - - ISO/IEC 8886 - Information technology - Open Systems Interconnection - Data link service definition - - ISO/IEC 10731 1994 Information
22、 technology - Open Systems Interconnection - Basic Reference Model - Conventions for the definition of OSI services - - 2) To be published. BS EN 61158-3-2:2014 2 IEC 61158-3-2:2014 IEC 2014 CONTENTS INTRODUCTION . 6 1 Scope . 7 1.1 General . 7 1.2 Specifications 7 1.3 Conformance . 7 2 Normative re
23、ferences . 8 3 Terms, definitions, symbols, abbreviations and conventions . 8 3.1 Reference model terms and definitions 8 3.2 Service convention terms and definitions . 10 3.3 Common data-link service terms and definitions 11 3.4 Additional Type 2 data-link specific definitions. 12 3.5 Common symbol
24、s and abbreviations . 15 3.6 Additional Type 2 symbols and abbreviations 15 3.7 Common conventions 15 4 Connection-mode and connectionless-mode data-link service 16 4.1 Overview . 16 4.2 Facilities of the data-link service . 20 4.3 Model of the data-link service 21 4.4 Sequence of primitives 23 4.5
25、Connection-mode data transfer . 25 4.6 Connectionless-mode data transfer . 27 4.7 Queue maintenance 30 4.8 Tag filter 32 5 DL-management services . 33 5.1 Sequence of primitives 33 5.2 Link synchronization 34 5.3 Synchronized parameter change . 35 5.4 Event reports . 37 5.5 Bad FCS . 39 5.6 Current
26、moderator . 39 5.7 Enable moderator 40 5.8 Power-up and online . 41 5.9 Listen only . 42 5.10 Time distribution 43 Bibliography 45 Figure 1 Relationships of DLSAPs, DLSAP-addresses and group DL-addresses 11 Figure 2 NUT structure 18 Figure 3 Medium access during scheduled time . 18 Figure 4 Medium a
27、ccess during unscheduled time . 19 Figure 5 Queue model for the peer and multipoint DLS, DLSAPs and their DLCEPs 20 Figure 6 Queue model of a multipoint DLS between a sending DLS-user and one or more receiving DLS-users . 22 Figure 7 DLS primitive time-sequence diagram 24 BS EN 61158-3-2:2014IEC 611
28、58-3-2:2014 IEC 2014 3 Figure 8 State transition diagram for sequences of DLS primitives at one DLSAP 25 Figure 9 Sequence of primitives for a successful connection-mode transfer . 27 Figure 10 Sequence of primitives for an unsuccessful connection-mode transfer . 27 Figure 11 Sequence of primitives
29、for a successful connectionless-mode transfer . 30 Figure 12 Sequence of primitives for an unsuccessful connectionless-mode transfer . 30 Figure 13 Sequence of primitives for a queue maintenance request . 32 Figure 14 Sequence of primitives for a tag filter request. 33 Figure 15 Sequence of primitiv
30、es for a local link synchronization . 35 Figure 16 Sequence of primitives for a DLM-get/set parameters request 37 Figure 17 Sequence of primitives for a DLM-tMinus change request 37 Figure 18 Sequence of primitives for a DLM-event indication . 39 Figure 19 Sequence of primitives for a DLM-bad-FCS in
31、dication 39 Figure 20 Sequence of primitives for a DLM-current-moderator indication 40 Figure 21 Sequence of primitives for a DLM-enable-moderator request . 41 Figure 22 Sequence of primitives for a DLM-power-up indication . 42 Figure 23 Sequence of primitives for a DLM-online request 42 Figure 24 S
32、equence of primitives for a DLM-listen-only request . 42 Table 1 Summary of connection-mode and connectionless-mode primitives and parameters . 24 Table 2 DL-connection-mode transfer primitives and parameters . 26 Table 3 DL-connectionless-mode transfer primitives and parameters . 28 Table 4 Fixed t
33、ag services available to the DLS-user . 29 Table 5 DL-queue maintenance primitives and parameters 31 Table 6 DL-connectionless-mode tag filter primitives and parameters 32 Table 7 Summary of DL-management primitives and parameters . 34 Table 8 Link synchronization primitives and parameters . 35 Tabl
34、e 9 Synchronized parameter change primitives and parameters 36 Table 10 DLMS-configuration-data . 36 Table 11 Event report primitives and parameters . 38 Table 12 DLMS events being reported . 38 Table 13 Bad FCS primitives and parameters 39 Table 14 Current moderator primitives and parameters 40 Tab
35、le 15 Enable moderator primitives and parameters . 40 Table 16 Power-up and online primitives and parameters 41 Table 17 Listen-only primitives and parameters . 42 Table 18 DLMS time and time quality parameters 43 Table 19 Time distribution source quality . 44 BS EN 61158-3-2:2014 6 IEC 61158-3-2:20
36、14 IEC 2014 INTRODUCTION This standard 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 reference model described in IEC 61158-1. Throughout the set of fieldbus standard
37、s, 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 data-link layer service defined in this standard is a conceptual architectural service, independent of administrative and implementation divisions.
38、 BS EN 61158-3-2:2014IEC 61158-3-2:2014 IEC 2014 7 INDUSTRIAL COMMUNICATION NETWORKS FIELDBUS SPECIFICATIONS Part 3-2: Data-link layer service definition Type 2 elements 1 Scope General 1.1This part of IEC 61158 provides common elements for basic time-critical messaging communications between device
39、s in an automation environment. 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 complete specified actions within the time window risks failure of the
40、 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 Type 2 fieldbus data-link layer in terms of: a) the primitive actions and events of the service; b) the param
41、eters associated with each primitive action and event, and the form which they take; and c) the interrelationship between these actions and events, and their valid sequences. The purpose of this standard is to define the services provided to: the Type 2 fieldbus application layer at the boundary bet
42、ween the application and data-link layers of the fieldbus reference model; systems management at the boundary between the data-link layer and systems management of the fieldbus reference model. Type 2 DL-service provides both a connected and a connectionless subset of those services specified in ISO
43、/IEC 8886. Specifications 1.2The principal objective of this standard is to specify the characteristics of conceptual data-link layer services suitable for time-critical communications and thus supplement the OSI Basic Reference Model in guiding the development of data-link protocols for time-critic
44、al communications. A secondary objective is to provide migration paths from previously-existing industrial communications protocols. This specification may be used as the basis for formal DL-Programming-Interfaces. Nevertheless, it is not a formal programming interface, and any such interface will n
45、eed to address implementation issues not covered by this specification, including: a) the sizes and octet ordering of various multi-octet service parameters; b) the correlation of paired request and confirm, or indication and response, primitives. Conformance 1.3This standard does not specify indivi
46、dual implementations or products, nor does it constrain the implementations of data-link entities within industrial automation systems. BS EN 61158-3-2:2014 8 IEC 61158-3-2:2014 IEC 2014 There is no conformance of equipment to this data-link layer service definition standard. Instead, conformance is
47、 achieved through implementation of the corresponding data-link protocol that fulfills the Type 1 data-link layer services defined in this standard. 2 Normative references The following documents, in whole or in part, are normatively referenced in this document and are indispensable for its applicat
48、ion. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. NOTE All parts of the IEC 61158 series, as well as IEC 61784-1 and IEC 61784-2 are maintained simultaneously. Cross-references to these
49、 documents within the text therefore refer to the editions as dated in this list of normative references. IEC 61158-4-2:2014, Industrial communication networks Fieldbus specifications Part 4-2: Data-link layer protocol specification Type 2 elements ISO/IEC 7498-1, Information technology Open Systems Interconnection Basic Reference Model: The Basic Model ISO/IEC 7498-3, Information technology Open Systems Interconnecti