1、BSI Standards PublicationIndustrial communication networks Fieldbus specificationsPart 6-13: Application layer protocol specification Type 13 elementsBS EN 61158-6-13:2014National forewordThis British Standard is the UK implementation of EN 61158-6-13:2014. It isidentical to IEC 61158-6-13:2014. It
2、supersedes BS EN 61158-6-13:2008which is withdrawn.The UK participation in its preparation was entrusted to Technical Com-mittee AMT/7, Industrial communications: process measurement andcontrol, including fieldbus.A list of organizations represented on this committee can be obtained onrequest to its
3、 secretary.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 79476 6ICS 25.040.40; 35.100.70; 35.110Compliance with a
4、British Standard cannot confer immunity fromlegal obligations.This British Standard was published under the authority of theStandards Policy and Strategy Committee on 30 November 2014.Amendments issued since publicationDate Text affectedBRITISH STANDARDBS EN 61158-6-13:2014EUROPEAN STANDARD NORME EU
5、ROPENNE EUROPISCHE NORM EN 61158-6-13 October 2014 ICS 25.040.40; 35.100.70; 35.110 Supersedes EN 61158-6-13:2008 English Version Industrial communication networks - Fieldbus specifications - Part 6-13: Application layer protocol specification - Type 13 elements (IEC 61158-6-13:2014) Rseaux de commu
6、nication industriels - Spcifications des bus de terrain - Partie 6-13: Spcification du protocole de la couche application - Elments de type 13 (CEI 61158-6-13:2014) Industrielle Kommunikationsnetze - Feldbusse - Teil 6-13: Protokollspezifikation des Application Layer (Anwendungsschicht) - Typ 13-Ele
7、mente (IEC 61158-6-13:2014) This European Standard was approved by CENELEC on 2014-09-23. 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-dat
8、e lists and bibliographical 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 translat
9、ion under the responsibility 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, Denm
10、ark, Estonia, Finland, Former 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 C
11、ommittee for Electrotechnical Standardization Comit Europen de Normalisation Electrotechnique Europisches 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
12、CENELEC Members. Ref. No. EN 61158-6-13:2014 E BS EN 61158-6-13:2014EN 61158-6-13:2014 - 2 - Foreword The text of document 65C/764/FDIS, future edition 2 of IEC 61158-6-13, prepared by SC 65C “Industrial networks“ of IEC/TC 65 “Industrial-process measurement, control and automation“ was submitted to
13、 the IEC-CENELEC parallel vote and approved by CENELEC as EN 61158-6-13: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-23 latest date by which the national
14、 standards conflicting with the document have to be withdrawn (dow) 2017-09-23 This document supersedes EN 61158-6-13: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 ident
15、ifying any or all such patent rights. This document 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-6-13:2014 was approved by CENELEC as a European Standard with
16、out any modification. In the official version, for Bibliography, the following notes have to be added for the standards indicated: IEC 61158-1 NOTE Harmonized as EN 61158-1. IEC 61158-6 NOTE Harmonized as EN 61158-6 series. IEC 61784-1 NOTE Harmonized as EN 61784-1. IEC 61784-2 NOTE Harmonized as EN
17、 61784-2. BS EN 61158-6-13:2014- 3 - EN 61158-6-13:2014 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 appli
18、cation. For dated references, only the edition cited applies. For undated references, the latest edition 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.
19、NOTE 2 Up-to-date information on the latest versions of the European Standards listed in this annex is available here: www.cenelec.eu. Publication Year Title EN/HD Year IEC 61158-3-13 - Industrial communication networks - Fieldbus specifications - Part 3-13: Data link layer service definition - Type
20、 13 elements EN 61158-3-13 - IEC 61158-4-13 - Industrial communication networks - Fieldbus specifications - Part 4-13: Data-link layer protocol specification - Type 13 elements EN 61158-4-13 - IEC 61158-5-13 - Industrial communication networks - Fieldbus specifications - Part 5-13: Application layer
21、 service definition - Type 13 elements EN 61158-5-13 - ISO/IEC 7498 series Information technology - Open Systems Interconnection - Basic reference model - - ISO/IEC 7498-1 - Information technology - Open Systems Interconnection - Basic reference model: The basic model - - ISO/IEC 8802-3 - Informatio
22、n technology - 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 8822 - Information technolo
23、gy - Open Systems Interconnection - Presentation service definition - - ISO/IEC 8824-1 - Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation - - BS EN 61158-6-13:2014EN 61158-6-13:2014 - 4 - Publication Year Title EN/HD Year ISO/IEC 9545 - Information techn
24、ology - Open Systems Interconnection - Application layer structure - - ISO/IEC 9899 - Information technology - Programming languages - C - - IEEE 754 - IEEE Standard for Floating-Point Arithmetic - - BS EN 61158-6-13:2014 2 IEC 61158-6-13:2014 IEC 2014 CONTENTS INTRODUCTION . 7 1 Scope . 8 General .
25、 8 1.1Specifications 8 1.2Conformance . 9 1.32 Normative references . 9 3 Terms, definitions, symbols, abbreviations and conventions . 9 ISO/IEC 7498-1 terms . 10 3.1ISO/IEC 8822 terms 10 3.2ISO/IEC 9545 terms 10 3.3ISO/IEC 8824-1 terms . 10 3.4Terms and definitions from IEC 61158-5-13 . 11 3.5Other
26、 terms and definitions . 11 3.6Abbreviations and symbols 11 3.74 FAL syntax description . 12 General . 12 4.1FAL-AR PDU abstract syntax 12 4.2Abstract syntax of Asyn1 pduBody 15 4.3Abstract syntax of Asyn2 pduBody 16 4.45 Transfer syntax 23 Encoding of data types 23 5.16 FAL protocol state machines
27、27 7 AP context state machine . 28 8 FAL service protocol machine . 28 9 AR protocol machine 29 Buffered-network-scheduled bi-directional pre-established connection (BNB-9.1PEC) ARPM 29 Buffered-network-scheduled uni-directional pre-established connection 9.2(BNU-PEC) ARPM . 31 Queued user-triggered
28、 uni-directional (QUU) ARPM 33 9.3Queued user-triggered bi-directional connectionless (QUB-CL) ARPM 36 9.4Queued user-triggered bi-directional connection-oriented with segmentation 9.5(QUB-COS) ARPM 40 10 DLL mapping protocol machine 58 Primitive definitions . 58 10.1DMPM state machine 59 10.2Annex
29、A (normative) Constant value assignments 61 A.1 Values of abort-code . 61 A.2 NMT-command-ID . 62 A.3 Type 13 specific error-code constants . 62 A.4 Node-list 64 Bibliography 65 Figure 1 Encoding of Time of Day value . 26 BS EN 61158-6-13:2014IEC 61158-6-13:2014 IEC 2014 3 Figure 2 Encoding of Time
30、Difference value . 27 Figure 3 Primitives exchanged between protocol machines 28 Figure 4 State transition diagram of BNB-PEC ARPM 30 Figure 5 State transition diagram of BNU-PEC ARPM 32 Figure 6 State transition diagram of QUU ARPM 35 Figure 7 State transition diagram of QUB-CL ARPM 38 Figure 8 Sta
31、te transition diagram of QUB-COS (CmdL) ARPM . 43 Figure 9 State transition diagram of QUB-COS (SeqL) ARPM 55 Figure 10 State transition diagram of DMPM 59 Table 1 Use of signaling-flags 14 Table 2 Values of error-type. 18 Table 3 Transfer syntax for bit sequences 23 Table 4 Transfer syntax for data
32、 type UNSIGNEDn 24 Table 5 Transfer syntax for data type INTEGERn . 25 Table 6 Primitives issued by user to BNB-PEC ARPM 29 Table 7 Primitives issued by BNB-PEC ARPM to user 29 Table 8 BNB-PEC ARPM state table sender transactions 30 Table 9 BNB-PEC ARPM state table receiver transactions 31 Table 10
33、Function BuildFAL-PDU . 31 Table 11 Primitives issued by user to BNU-PEC ARPM 31 Table 12 Primitives issued by BNU-PEC ARPM to user 31 Table 13 BNU-PEC ARPM state table sender transactions 33 Table 14 BNU-PEC ARPM state table receiver transactions 33 Table 15 Function BuildFAL-PDU . 33 Table 16 Prim
34、itives issued by user to QUU ARPM . 33 Table 17 Primitives issued by QUU ARPM to user . 34 Table 18 QUU ARPM state table sender transactions . 35 Table 19 QUU ARPM state table receiver transactions 35 Table 20 Function BuildFAL-PDU . 36 Table 21 Primitives issued by user to QUB-CL ARPM 36 Table 22 P
35、rimitives issued by QUB-CL ARPM to user 37 Table 23 QUB-CL ARPM state table sender transactions 39 Table 24 QUB-CL ARPM state table receiver transactions 40 Table 25 Function BuildFAL-PDU . 40 Table 26 Primitives issued by user to QUB-COS (CmdL) ARPM . 41 Table 27 Primitives issued by QUB-COS (CmdL)
36、 ARPM to user . 42 Table 28 QUB-COS (CmdL) ARPM state table sender transactions . 44 Table 29 QUB-COS (CmdL) ARPM state table receiver transactions . 49 Table 30 Function BuildSegment . 51 Table 31 Function RoundUp . 51 Table 32 Function MoreFollows . 51 BS EN 61158-6-13:2014 4 IEC 61158-6-13:2014 I
37、EC 2014 Table 33 Function AddSegment . 52 Table 34 Function GetIntermediatePDU . 52 Table 35 Primitives issued by QUB-COS (CmdL) to QUB-COS (SeqL) . 52 Table 36 Primitives issued by QUB-COS (SeqL) to QUB-COS (CmdL) . 53 Table 37 Parameters used with primitives exchanged between QUB-COS (SeqL) and QU
38、B-COS (CmdL) 53 Table 38 QUB-COS (SeqL) ARPM states . 54 Table 39 QUB-COS (SeqL) ARPM state table sender transactions 55 Table 40 QUB-COS (SeqL) ARPM state table receiver transactions 56 Table 41 Function BuildFAL-PDU . 58 Table 42 Function IncrementCounter . 58 Table 43 Function AddToHistoryBuffer
39、. 58 Table 44 Primitives issued by ARPM to DMPM 58 Table 45 Primitives issued by DMPM to ARPM 58 Table 46 Primitives issued by DMPM to data-link layer 59 Table 47 Primitives issued by data-link layer to DMPM 59 Table 48 DMPM state table sender transactions . 60 Table 49 DMPM state table receiver tra
40、nsactions 60 Table A.1 Values of abort-code 61 Table A.2 Values of NMTCommandID 62 Table A.3 Type 13 specific error-code constants 63 Table A.4 Node-list format . 64 BS EN 61158-6-13:2014IEC 61158-6-13:2014 IEC 2014 7 INTRODUCTION This part of IEC 61158 is one of a series produced to facilitate the
41、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. The application protocol provides the application service by making use of the services available from the data-link or othe
42、r 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 are intended to provide a sound basis for d
43、evelopment in order to serve a variety of purposes: as a guide for implementors and designers; for use in the testing and procurement of equipment; as part of an agreement for the admittance of systems into the open systems environment; as a refinement to the understanding of time-critical communica
44、tions 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 models, otherwise incompatible systems may wor
45、k together in any combination. BS EN 61158-6-13:2014 8 IEC 61158-6-13:2014 IEC 2014 INDUSTRIAL COMMUNICATION NETWORKS FIELDBUS SPECIFICATIONS Part 6-13: Application layer protocol specification Type 13 elements 1 Scope General 1.1The fieldbus application layer (FAL) provides user programs with a mea
46、ns 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-critical messaging communications between application programs in an autom
47、ation environment and material specific to Type 13 fieldbus. 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 tim
48、e window risks failure of the applications requesting the actions, with attendant risk to equipment, plant and possibly human life. This standard specifies interactions between remote applications and defines the externally visible behavior provided by the Type 13 fieldbus application layer in terms
49、 of a) the formal abstract syntax defining the application layer protocol data units conveyed between communicating application entities; b) the transfer syntax defining encoding rules that are applied to the application layer protocol data units; c) the application context state machine defining the application service behavior visible between c