1、BSI Standards PublicationIndustrial communication networks Fieldbus specificationsPart 6-3: Application layer protocol specification Type 3 elementsBS EN 61158-6-3:2014National forewordThis British Standard is the UK implementation of EN 61158-6-3:2014. It is identical to IEC 61158-6-3:2014. It supe
2、rsedes BS EN 61158-6-3:2012 which is withdrawn.The 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 secre
3、tary.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 79469 8ICS 25.040.40; 35.100.70; 35.110Compliance with a Britis
4、h 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-3:2014EUROPEAN STANDARD NORME EUROPENNE
5、 EUROPISCHE NORM EN 61158-6-3 October 2014 ICS 25.040.40; 35.100.70; 35.110 Supersedes EN 61158-6-3:2012 English Version Industrial communication networks - Fieldbus specifications - Part 6-3: Application layer protocol specification - Type 3 elements (IEC 61158-6-3:2014) Rseaux de communication ind
6、ustriels - Spcifications des bus de terrain - Partie 6-3: Spcification du protocole de la couche application - lments de type 3 (CEI 61158-6-3:2014) Industrielle Kommunikationsnetze - Feldbusse - Teil 6-3: Protokollspezifikation des Application Layer (Anwendungsschicht) - Typ 3-Elemente (IEC 61158-6
7、-3: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-date lists and bibliog
8、raphical 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 respo
9、nsibility 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, Finla
10、nd, 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 Committee for Electr
11、otechnical 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 CENELEC Members. Re
12、f. No. EN 61158-6-3:2014 E BS EN 61158-6-3:2014EN 61158-6-3:2014 - 2 - Foreword The text of document 65C/764/FDIS, future edition 3 of IEC 61158-6-3, prepared by SC 65C “Industrial networks“ of IEC/TC 65 “Industrial-process measurement, control and automation“ was submitted to the IEC-CENELEC parall
13、el vote and approved by CENELEC as EN 61158-6-3: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 standards conflicting w
14、ith the document have to be withdrawn (dow) 2017-09-23 This document supersedes EN 61158-6-3:2012. 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 pa
15、tent 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-3:2014 was approved by CENELEC as a European Standard without any modification. In t
16、he official version, for Bibliography, 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 61784-1 NOTE Harmonized as EN 61784-1. IEC 61784-2 NOTE Harmonized as EN 61784-2. BS EN 61158-6-3:2014- 3 - EN 61158-6-3:20
17、14 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, only the edition cited
18、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. NOTE 2 Up-to-date information on the latest versions
19、of the European Standards listed in this annex is available here: www.cenelec.eu. Publication Year Title EN/HD Year IEC 61158-3-3 2014 Industrial communication networks - Fieldbus specifications - Part 3-3: Data-link layer service definition - Type 3 elements EN 61158-3-3 2014 IEC 61158-4-3 2014 Ind
20、ustrial communication networks - Fieldbus specifications - Part 4-3: Data-link layer protocol specification - Type 3 elements EN 61158-4-3 1)IEC 61158-5-3 2014 Industrial communication networks - Fieldbus specifications - Part 5-3: Application layer service definition - Type 3 elements EN 61158-5-3
21、2014IEC 61158-5-10 2014 Industrial communication networks - Fieldbus specifications - Part 5-10: Application layer service definition - Type 10 elements EN 61158-5-10 2014 IEC 61158-6-10 2014 Industrial communication networks - Fieldbus specifications - Part 6-10: Application layer protocol specific
22、ation - Type 10 elements EN 61158-6-10 2014 ISO/IEC 7498-1 - Information technology - Open Systems Interconnection - Basic Reference Model: The Basic Model - - ISO/IEC 8822 - Information technology - Open Systems Interconnection - Presentation service definition - - ISO/IEC 8824-1 - Information tech
23、nology - Abstract Syntax Notation One (ASN.1): Specification of basic notation - - 1) To be published. BS EN 61158-6-3:2014EN 61158-6-3:2014 - 4 - Publication Year Title EN/HD Year ISO/IEC 9545 - Information technology - Open Systems Interconnection - Application layer structure - - ISO/IEC 10731 -
24、Information technology - Open Systems Interconnection - Basic Reference Model - Conventions for the definition of OSI services - - IEEE 754 - IEEE Standard for Floating-Point Arithmetic - - BS EN 61158-6-3:2014 2 IEC 61158-6-3:2014 IEC 2014 CONTENTS INTRODUCTION . 10 1 Scope . 11 General . 11 1.1Spe
25、cifications 12 1.2Conformance . 12 1.32 Normative references . 12 3 Terms, definitions, abbreviations, symbols and conventions . 13 Referenced terms and definitions 13 3.1Additional definitions . 14 3.2Abbreviations and symbols 17 3.3Conventions 18 3.4Conventions used in state machines . 20 3.54 FAL
26、 syntax description . 23 APDU abstract syntax . 23 4.1Data types . 27 4.25 Transfer syntax 28 Coding of basic data types 28 5.1Coding section related to data exchange PDUs . 30 5.2Coding section related to slave diagnosis PDUs 30 5.3Coding section related to parameterization PDU 41 5.4Coding section
27、 related to configuration PDUs 49 5.5Coding section related to global control PDUs . 51 5.6Coding section related to clock-value-PDUs 53 5.7Coding section related to function identification and errors 54 5.8Coding section related to master diagnosis PDU . 57 5.9Coding section related to upload/downl
28、oad/act para PDUs 60 5.10Coding section related to the bus parameter set 62 5.11Coding section related to the slave parameter set . 64 5.12Coding section related to statistic counters . 68 5.13Coding section related to set slave address PDU 68 5.14Coding section related to initiate/abort PDUs 68 5.1
29、5Coding section related to read/write/data transport PDUs 72 5.16Coding section related to load region and function invocation PDUs 72 5.17Examples of diagnosis-RES-PDUs 76 5.18Example of Chk_Cfg-REQ-PDU . 78 5.19Examples of Chk_Cfg-REQ-PDUs with DPV1 data types . 78 5.20Example structure of the Dat
30、a_Unit for Data_Exchange 80 5.216 FAL protocol state machines 81 Overall structure 81 6.1Assignment of state machines to devices 83 6.2Overview DP-slave 84 6.3Overview DP-master (class 1) . 86 6.4Overview DP-master (class 2) . 87 6.5Cyclic communication between DP-master (class 1) and DP-slave 88 6.
31、6BS EN 61158-6-3:2014IEC 61158-6-3:2014 IEC 2014 3 Acyclic communication between DP-master (class 2) and DP-master 6.7(class 1) 89 Acyclic communication between DP-master (class 1) and DP-slave . 91 6.8Application relationship monitoring 93 6.97 AP-context state machine . 98 8 FAL service protocol m
32、achines (FSPMs) 99 FSPMS 99 8.1FSPMM1 . 134 8.2FSPMM2 . 169 8.39 Application relationship protocol machines (ARPMs) 186 MSCY1S . 186 9.1MSAC1S . 216 9.2SSCY1S 229 9.3MSRM2S . 232 9.4MSAC2S . 238 9.5MSCS1S . 254 9.6MSCY1M . 256 9.7MSAL1M . 274 9.8MSAC1M . 283 9.9MMAC1 . 296 9.10MSCS1M . 303 9.11MSAC2
33、M . 307 9.12MMAC2 . 322 9.1310 DLL mapping protocol machines (DMPMs) . 329 DMPMS . 329 10.1DMPMM1 343 10.2DMPMM2 358 10.311 Parameters for a DP-slave . 366 Bibliography 367 Figure 1 Common structure of specific fields 19 Figure 2 Example Modul_Status_Array 36 Figure 3 Example of Ext_Diag_Data in cas
34、e of DPV1 diagnosis format with alarm and status PDU . 76 Figure 4 Example of Ext_Diag_Data in case of the basic diagnosis format . 78 Figure 5 Example of a special identifier format . 78 Figure 6 Example of a special identifier format with data types 79 Figure 7 Example of a special identifier form
35、at with data types 79 Figure 8 Example of an empty slot with data types . 80 Figure 9 Example for multi-variable device with AI and DO function blocks 80 Figure 10 Identifiers (ID) 81 Figure 11 Identifier list . 81 Figure 12 Structure of the Data_Unit for the request- and response-DLPDU 81 Figure 13
36、 Structuring of the protocol machines and adjacent layers in a DP-slave . 85 Figure 14 Structuring of the protocol machines and adjacent layers in a DP-master (class 1) 86 BS EN 61158-6-3:2014 4 IEC 61158-6-3:2014 IEC 2014 Figure 15 Structuring of the protocol machines and adjacent layers in a DP-ma
37、ster (class 2) 87 Figure 16 Sequence of the communication between DP-master and DP-slave . 89 Figure 17 Sequence of communication between DP-master (class 2) and DP-master (class 1) 91 Figure 18 Sequence of acyclic communication between DP-master (class 1) and DP-slave . 93 Figure 19 Example for con
38、nection establishment on MS2. 96 Figure 20 Idle at master-side on MS2. 97 Figure 21 Idle at slave-side on MS2 . 98 Figure 22 Example for connection establishment on MS2(server-side) . 234 Figure 23 Structure of RM entries in the RM_Registry 235 Table 1 State machine description elements 20 Table 2 D
39、escription of state machine elements 21 Table 3 Conventions used in state machines . 21 Table 4 APDU syntax . 23 Table 5 Substitutions . 25 Table 6 Block_Length range 32 Table 7 Selection range . 33 Table 8 Alarm_Type range . 33 Table 9 Status_Type value range . 33 Table 10 Alarm_Specifier . 34 Tabl
40、e 11 Range of Modul_Status_Entry (1-4) . 36 Table 12 Input_Output_Selection . 38 Table 13 Error type 38 Table 14 Channel_Type . 38 Table 15 Specification of the bits Lock_Req and Unlock_Req 42 Table 16 Range of Length_of_Manufacturer_Specific_Data if used in Chk_Cfg-REQ-PDU . 50 Table 17 Range of Le
41、ngth_of_Manufacturer_Specific_Dat if used in Get_Cfg-RES-PDU . 50 Table 18 Data types . 51 Table 19 Specification of the bits for Un-/Freeze 52 Table 20 Specification of the bits for Un-/Sync . 52 Table 21 Coding of the Function_Code/ Function_Num 54 Table 22 Coding of the Error_Code / Function_Num
42、55 Table 23 Values of Error_Decode 56 Table 24 Coding of Error_Code_1 at DPV1 57 Table 25 Values of MDiag_Identifier 58 Table 26 Values for Area_Code_UpDownload 60 Table 27 Values for Area_CodeActBrct 61 Table 28 Values for Area_CodeAct 61 Table 29 Values for Activate 61 Table 30 Values for Data_rat
43、e . 62 BS EN 61158-6-3:2014IEC 61158-6-3:2014 IEC 2014 5 Table 31 Values for Slave_Type 65 Table 32 Values for Alarm_Mode . 66 Table 33 Values for Subnet 71 Table 34 Values of reason code if instance is DLL . 71 Table 35 Values of reason code if instance is MS2 71 Table 36 Values of Extended_Functio
44、n_Num . 72 Table 37 Values of FI_Index 74 Table 38 Values of FI_State . 74 Table 39 IMData_Execution_Argument 75 Table 40 IMData_Result_Argument 75 Table 41 Assignment of state machines . 84 Table 42 Primitives issued by AP-Context to FSPMS . 99 Table 43 Primitives issued by FSPMS to AP-Context . 10
45、1 Table 44 FSPMS state table 108 Table 45 Functions used by the FSPMS . 132 Table 46 Primitives issued by AP-Context to FSPMM1 . 134 Table 47 Primitives issued by FSPMM1 to AP-Context . 136 Table 48 FSPMM1 state table 143 Table 49 Functions used by the FSPMM1 168 Table 50 Primitives issued by AP-Con
46、text to FSPMM2 . 169 Table 51 Primitives issued by FSPMM2 to AP-Context . 171 Table 52 FSPMM2 state table 174 Table 53 Functions used by the FSPMM2 185 Table 54 Primitives issued by FSPMS to MSCY1S . 186 Table 55 Primitives issued by MSCY1S to FSPMS . 186 Table 56 Rules for DPV1_Status_1, DPV1_Statu
47、s_2 and DPV1_Status_3 check . 188 Table 57 MSCY1S state table 193 Table 58 Functions used by the MSCY1S 214 Table 59 Primitives issued by FSPMS to MSAC1S . 216 Table 60 Primitives issued by MSAC1S to FSPMS . 217 Table 61 Primitives issued by MSCY1S to MSAC1S . 217 Table 62 Primitives issued by MSAC1
48、S to MSCY1S . 217 Table 63 Parameter used with primitives exchanged between MSAC1S and MSCY1S . 217 Table 64 MSAC1S state table 219 Table 65 Functions used by the MSAC1S 228 Table 66 Primitives issued by FSPMS to SSCY1S . 229 Table 67 Primitives issued by SSCY1S to FSPMS . 229 Table 68 SSCY1S state
49、table . 230 Table 69 Functions used by the SSCY1S . 232 Table 70 Primitives issued by FSPMS to MSRM2S 232 Table 71 Primitives issued by MSRM2S to FSPMS 232 Table 72 MSRM2S state table 236 Table 73 Primitives issued by FSPMS to MSAC2S . 238 BS EN 61158-6-3:2014 6 IEC 61158-6-3:2014 IEC 2014 Table 74 Primitives issued by MSAC2S t