1、BSI Standards PublicationIndustrial communication networks Fieldbus specificationsPart 6-24: Application layer protocol specification Type-24 ElementsBS EN 61158-6-24:2014National forewordThis British Standard is the UK implementation of EN 61158-6-24:2014. It isidentical to IEC 61158-6-24:2014.The
2、UK participation in its preparation was entrusted to TechnicalCommittee AMT/7, Industrial communications: process measurement andcontrol, including fieldbus.A list of organizations represented on this committee can be obtained onrequest to its secretary.This publication does not purport to include a
3、ll 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 79482 7ICS 25.040.40; 35.100.70; 35.110Compliance with a British Standard cannot confer immunity fromlegal obligat
4、ions.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-24:2014EUROPEAN STANDARD NORME EUROPENNE EUROPISCHE NORM EN 61158-6-24 October 2014 ICS 25
5、.040.40; 35.100.70; 35.110 English Version Industrial communication networks - Fieldbus specifications - Part 6-24: Application layer protocol specification - Type-24 Elements (IEC 61158-6-24:2014) Rseaux de communication industriels - Spcifications des bus de terrain - Partie 6-24: Spcification du
6、protocole de la couche application - lments de type 24 (CEI 61158-6-24:2014) Industrielle Kommunikationsnetze - Feldbusse - Teil 6-24: Protokollspezifikation des Application Layer (Anwendungsschicht) - Typ 24-Elemente (IEC 61158-6-24:2014) This European Standard was approved by CENELEC on 2014-09-23
7、. 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 obtaine
8、d 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 t
9、he 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, Former Yugoslav Republic of Macedonia, France, Germany, Greece, H
10、ungary, 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 Electrotechnical Standardization Comit Europen de Normalisation Electrotech
11、nique 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 CENELEC Members. Ref. No. EN 61158-6-24:2014 E BS EN 61158-6-24:2014EN 61158-6-24:2014 -
12、 2 - Foreword The text of document 65C/764/FDIS, future edition 1 of IEC 61158-6-24, 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 CENELEC as EN 61158-6-24:2014. The follow
13、ing 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 standards conflicting with the document have to be withdrawn (dow) 2017-09-23 Attention
14、 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 has been prepared under a mandate given to CENELEC by the European Commission and
15、 the European Free Trade Association. Endorsement notice The text of the International Standard IEC 61158-6-24:2014 was approved by CENELEC as a European Standard without any modification. In the official version, for Bibliography, the following notes have to be added for the standards indicated: IE
16、C 61158-1:2014 NOTE Harmonized as EN 61158-1:2014 (not modified). IEC 61784-1 NOTE Harmonized as EN 61784-1. IEC 61784-2 NOTE Harmonized as EN 61784-2. BS EN 61158-6-24:2014- 3 - EN 61158-6-24:2014 Annex ZA (normative) Normative references to international publications with their corresponding Europ
17、ean 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 of the referenced document (including any amendments)
18、 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 available here: www.cenelec.eu. Publication Year Title
19、EN/HD Year IEC 61158-5-24 2014 Industrial communication networks - Fieldbus specifications - Part 5-24: Application layer service definition - Type 24 elements EN 61158-5-24 2014 IEC 61158-6 series Industrial communication networks - Fieldbus specifications - Part 6: Application layer protocol speci
20、fication EN 61158-6 series ISO/IEC 646 - Information technology - ISO 7-bit coded character set for information interchange - - ISO/IEC 7498-1 - Information technology - Open Systems Interconnection - Basic reference model: The basic model - - ISO/IEC 9545 - Information technology - Open Systems Int
21、erconnection - Application layer structure - - ISO/IEC 9899 - Information technology - Programming languages - C - - ISO/IEC 10731 - Information technology - Open Systems Interconnection - Basic Reference Model - Conventions for the definition of OSI services - - ISO/IEC 19501 2005 Information techn
22、ology - Open Distributed Processing - Unified Modeling Language (UML) Version 1.4.2 - - ISO/IEC/IEEE 60559 Information technology - Microprocessor Systems - Floating-Point arithmetic - - BS EN 61158-6-24:2014 2 IEC 61158-6-24:2014 IEC 2014 CONTENTS INTRODUCTION . 7 1 Scope . 8 General . 8 1.1Specifi
23、cations 8 1.2Conformance . 9 1.32 Normative references . 9 3 Terms, definitions, abbreviations, symbols and conventions . 9 Referenced terms and definitions 9 3.1Additional terms and definitions . 11 3.2Abbreviations and symbols 16 3.3Conventions 17 3.44 Abstract syntax . 19 Basic Data types . 19 4.
24、1FAL PDU types 21 4.2Detailed definitions of _FDCService-PDUs 33 4.3Device profile 52 4.45 Transfer syntax 52 Concepts . 52 5.1Encode rules . 53 5.26 Structure of FAL protocol state machine . 58 7 AP-context state machine (APC SM) 61 Overview . 61 7.1State descriptions 62 7.2Triggering events 63 7.3
25、Action descriptions at state transitions 63 7.48 FAL service protocol machines (FSPM) 64 Overview . 64 8.1Field Deice Control Protocol Machine (FDC PM) . 64 8.2Message Protocol Machine (MSGPM) . 89 8.39 Application relationship protocol machine (ARPM) 95 General . 95 9.1ARPM for FDC ASE . 95 9.2ARPM
26、 for MSG ASE (ARPM-MSG) 109 9.310 DLL mapping protocol machine (DMPM) . 111 Annex A (informative) Device profile and FDC command sets 112 Annex B (normative) Virtual memory space and Device Information . 113 B.1 Overview . 113 B.2 Device Information 114 B.2.1 Device identifier area structure 114 B.2
27、.2 Detail specifications of device IDs . 114 Annex C (informative) Basic message function 120 Bibliography 121 BS EN 61158-6-24:2014IEC 61158-6-24:2014 IEC 2014 3 Figure 1 Tree structure of APDU types . 22 Figure 2 Encode of Integer subtypes 53 Figure 3 Example of transfer of INTEGER value 54 Figure
28、 4 Encode of Unsigned subtypes 54 Figure 5 Float32 type encode . 55 Figure 6 Float64 type encode . 55 Figure 7 Bit field definition example with named bits 56 Figure 8 Bit field definition example with field size . 57 Figure 9 SEQUENCE type encode . 58 Figure 10 Structure of FAL protocol state machi
29、nes . 60 Figure 11 Statechart diagram of APCSM 62 Figure 12 Example communication cycle of FDC master AP. 66 Figure 13 Example communication cycle of FDC slave AP . 67 Figure 14 Synchronous command communication in sync state . 68 Figure 15 Asynchronous command communication in sync state 69 Figure
30、16 Asynchronous command communication in async state 70 Figure 17 Event-driven communication 71 Figure 18 Statechart diagram of FDCPM-M 72 Figure 19 Statechart diagram of FDCPM-S 78 Figure 20 Statechart diagram of FDCPM-MN . 85 Figure 21 PDU transmission flow for user message . 89 Figure 22 PDU tran
31、smission flow for one-way message . 90 Figure 23 Statechart diagram of MSGPM-RQ . 91 Figure 24 Statechart diagram of MSGPM-RS . 93 Figure 25 Example of single transfer process . 95 Figure 26 Example of dual transfer process . 96 Figure 27 Statechart diagram of ARPM-FDCM . 97 Figure 28 Statechart dia
32、gram of ARPM-FDCS 102 Figure 29 Statechart diagram of ARPM-FDCMN . 107 Figure 30 Statechart diagram of ARPM-MSG . 110 Figure B.1 Memory map of virtual memory space . 113 Figure B.2 Memory map of device ID area . 114 Table 1 State transition descriptions 18 Table 2 Description of state machine elemen
33、ts 18 Table 3 Conventions used in state machines . 19 Table 4 Mapping for Protocol State Machines 60 Table 5 State descriptions of APC SM . 62 Table 6 Trigger event descriptions of APC SM . 63 Table 7 Transitions of APC SM 63 Table 8 FDC protocol mode . 65 Table 9 State descriptions of FDCPM-M 72 Ta
34、ble 10 Trigger event descriptions of FDCPM-M 73 BS EN 61158-6-24:2014 4 IEC 61158-6-24:2014 IEC 2014 Table 11 Transitions of main SM of FDCPM-M . 74 Table 12 Transitions of submachine of FDCPM-M 75 Table 13 State descriptions of FDCPM-S . 78 Table 14 Trigger event descriptions of FDCPM-S . 79 Table
35、15 Transitions of main SM of FDCPM-S . 80 Table 16 Transitions of submachine of FDCPM-S 82 Table 17 State descriptions of FDCPM-MN 85 Table 18 Trigger event descriptions of FDCPM-MN 86 Table 19 Transitions of main SM of FDCPM-MN 86 Table 20 Transitions of submachine of FDCPM-MN . 86 Table 21 State d
36、escriptions of MSGPM-RQ 91 Table 22 Trigger event descriptions of MSGPM-RQ . 92 Table 23 Transitions of MSGPM-RQ 92 Table 24 State descriptions of MSGPM-RS 93 Table 25 Trigger event descriptions of MSGPM-RS 94 Table 26 Transitions of MSGPM-RS . 94 Table 27 State descriptions of ARPM-FDCM 97 Table 28
37、 Trigger event descriptions of ARPM-FDCM . 99 Table 29 Transitions of main SM of ARPM-FDCM 100 Table 30 Transitions of submachine of ARPM-FDCM . 100 Table 31 State descriptions of ARPM-FDCS 102 Table 32 Trigger event descriptions of ARPM-FDCS 104 Table 33 Transitions of main SM of ARPM-FDCS . 105 Ta
38、ble 34 Transitions of submachine of ARPM-FDCS 106 Table 35 State descriptions of ARPM-FDCMN . 108 Table 36 Trigger event descriptions of ARPM-FDCMN . 108 Table 37 Transitions of main SM of ARPM-FDCMN 108 Table 38 Transitions of submachine of ARPM-FDCMN . 109 Table 39 State descriptions of ARPM-MSG 1
39、10 Table 40 Trigger event descriptions of ARPM-MSG 110 Table 41 Transitions of ARPM-MSG . 111 Table A.1 Example of registered device profiles . 112 Table A.2 Example command list of the profile 00H 112 Table B.1 Specifications of device IDs . 115 Table C.1 Example of message command set 120 BS EN 61
40、158-6-24:2014IEC 61158-6-24:2014 IEC 2014 7 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 reference model described in IEC 61158-1
41、. The application protocol provides the application service by making use of the services 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 appl
42、ication entities (AEs) at the time of communication. These rules for communication are 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 fo
43、r the admittance of systems into the open systems environment; as a refinement to the 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 standar
44、d together with other standards positioned within the OSI or fieldbus reference models, otherwise incompatible systems may work together in any combination. BS EN 61158-6-24:2014 8 IEC 61158-6-24:2014 IEC 2014 INDUSTRIAL COMMUNICATION NETWORKS FIELDBUS SPECIFICATIONS Part 6-24: Application layer pro
45、tocol specification Type-24 Elements 1 Scope General 1.1The 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 c
46、ommon elements for basic time-critical and non-time-critical messaging communications between application programs in an automation environment and material specific to Type 24 fieldbus. The term “time-critical” is used to represent the presence of a time-window, within which one or more specified a
47、ctions are required to be completed with some defined level of certainty. Failure to complete 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 t
48、he externally visible behavior provided by the Type 24 fieldbus application layer in terms of a) the abstract syntax defining the application layer protocol data units conveyed between communicating application entities, b) the transfer syntax defining the application layer protocol data units conve
49、yed between communicating application entities, c) the application context state machines defining the application service behavior visibly between communicating application entities, and d) the application relationship state machines defining the communication behavior visibly between communicating application entities. The purpose of this standard is t