1、 IEC 61158-6-2 Edition 3.0 2014-08 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks Fieldbus specifications Part 6-2: Application layer protocol specification Type 2 elements Rseaux de communication industriels Spcifications des bus de terrain Partie 6-2: Spcification du
2、 protocole de la couche application Elments de type 2 IEC 61158-6-2:2014-08(en-fr) THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2014 IEC, Geneva, Switzerland All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, e
3、lectronic or mechanical, including photocopying and microfilm, without permission in writing from either IEC or IECs member National Committee in the country of the requester. If you have any questions about IEC copyright or have an enquiry about obtaining additional rights to this publication, plea
4、se contact the address below or your local IEC member National Committee for further information. Droits de reproduction rservs. Sauf indication contraire, aucune partie de cette publication ne peut tre reproduite ni utilise sous quelque forme que ce soit et par aucun procd, lectronique ou mcanique,
5、 y compris la photocopie et les microfilms, sans laccord crit de lIEC ou du Comit national de lIEC du pays du demandeur. Si vous avez des questions sur le copyright de lIEC ou si vous dsirez obtenir des droits supplmentaires sur cette publication, utilisez les coordonnes ci-aprs ou contactez le Comi
6、t national de lIEC de votre pays de rsidence. IEC Central Office Tel.: +41 22 919 02 11 3, rue de Varemb Fax: +41 22 919 03 00 CH-1211 Geneva 20 infoiec.ch Switzerland www.iec.ch About the IEC The International Electrotechnical Commission (IEC) is the leading global organization that prepares and pu
7、blishes International Standards for all electrical, electronic and related technologies. About IEC publications The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the latest edition, a corrigenda or an amendment might have been publishe
8、d. IEC Catalogue - webstore.iec.ch/catalogue The stand-alone application for consulting the entire bibliographical information on IEC International Standards, Technical Specifications, Technical Reports and other documents. Available for PC, Mac OS, Android Tablets and iPad. IEC publications search
9、- www.iec.ch/searchpub The advanced search enables to find IEC publications by a variety of criteria (reference number, text, technical committee,). It also gives information on projects, replaced and withdrawn publications. IEC Just Published - webstore.iec.ch/justpublished Stay up to date on all n
10、ew IEC publications. Just Published details all new publications released. Available online and also once a month by email. Electropedia - www.electropedia.org The worlds leading online dictionary of electronic and electrical terms containing more than 30 000 terms and definitions in English and Fre
11、nch, with equivalent terms in 14 additional languages. Also known as the International Electrotechnical Vocabulary (IEV) online. IEC Glossary - std.iec.ch/glossary More than 55 000 electrotechnical terminology entries in English and French extracted from the Terms and Definitions clause of IEC publi
12、cations issued since 2002. Some entries have been collected from earlier publications of IEC TC 37, 77, 86 and CISPR. IEC Customer Service Centre - webstore.iec.ch/csc If you wish to give us your feedback on this publication or need further assistance, please contact the Customer Service Centre: csc
13、iec.ch. A propos de lIEC La Commission Electrotechnique Internationale (IEC) est la premire organisation mondiale qui labore et publie des Normes internationales pour tout ce qui a trait llectricit, llectronique et aux technologies apparentes. A propos des publications IEC Le contenu technique des p
14、ublications IEC est constamment revu. Veuillez vous assurer que vous possdez ldition la plus rcente, un corrigendum ou amendement peut avoir t publi. Catalogue IEC - webstore.iec.ch/catalogue Application autonome pour consulter tous les renseignements bibliographiques sur les Normes internationales,
15、 Spcifications techniques, Rapports techniques et autres documents de lIEC. Disponible pour PC, Mac OS, tablettes Android et iPad. Recherche de publications IEC - www.iec.ch/searchpub La recherche avance permet de trouver des publications IEC en utilisant diffrents critres (numro de rfrence, texte,
16、comit dtudes,). Elle donne aussi des informations sur les projets et les publications remplaces ou retires. IEC Just Published - webstore.iec.ch/justpublished Restez inform sur les nouvelles publications IEC. Just Published dtaille les nouvelles publications parues. Disponible en ligne et aussi une
17、fois par mois par email. Electropedia - www.electropedia.org Le premier dictionnaire en ligne de termes lectroniques et lectriques. Il contient plus de 30 000 termes et dfinitions en anglais et en franais, ainsi que les termes quivalents dans 14 langues additionnelles. Egalement appel Vocabulaire El
18、ectrotechnique International (IEV) en ligne. Glossaire IEC - std.iec.ch/glossary Plus de 55 000 entres terminologiques lectrotechniques, en anglais et en franais, extraites des articles Termes et Dfinitions des publications IEC parues depuis 2002. Plus certaines entres antrieures extraites des publi
19、cations des CE 37, 77, 86 et CISPR de lIEC. Service Clients - webstore.iec.ch/csc Si vous dsirez nous donner des commentaires sur cette publication ou si vous avez des questions contactez-nous: csciec.ch. IEC 61158-6-2 Edition 3.0 2014-08 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial commun
20、ication networks Fieldbus specifications Part 6-2: Application layer protocol specification Type 2 elements Rseaux de communication industriels Spcifications des bus de terrain Partie 6-2: Spcification du protocole de la couche application Elments de type 2 INTERNATIONAL ELECTROTECHNICAL COMMISSION
21、COMMISSION ELECTROTECHNIQUE INTERNATIONALE XHICS 25.040.40; 35.100.70; 35.110 PRICE CODE CODE PRIX ISBN 978-2-8322-1756-6 Registered trademark of the International Electrotechnical Commission Marque dpose de la Commission Electrotechnique Internationale Warning! Make sure that you obtained this publ
22、ication from an authorized distributor. Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agr. 2 IEC 61158-6-2:2014 IEC 2014 CONTENTS FOREWORD . 12 INTRODUCTION . 14 1 Scope . 15 1.1 General . 15 1.2 Specifications 15 1.3 Conformance . 16 2 Normative referen
23、ces . 16 3 Terms, definitions, symbols, abbreviations and conventions . 18 3.1 Terms and definitions from other ISO/IEC standards . 18 3.2 Terms and definitions from IEC 61158-5-2. 19 3.3 Additional terms and definitions . 19 3.4 Abbreviations and symbols 26 3.5 Conventions 27 4 Abstract syntax . 32
24、 4.1 FAL PDU abstract syntax 32 4.2 Data abstract syntax specification . 149 4.3 Encapsulation abstract syntax . 154 5 Transfer syntax 171 5.1 Compact encoding . 171 5.2 Data type reporting 179 6 Structure of FAL protocol state machines . 186 7 AP-Context state machine 187 7.1 Overview . 187 7.2 Con
25、nection object state machine . 187 8 FAL service protocol machine (FSPM) 195 8.1 General . 195 8.2 Primitive definitions . 195 8.3 Parameters of primitives 199 8.4 FSPM state machines 200 9 Application relationship protocol machines (ARPMs) 200 9.1 General . 200 9.2 Connection-less ARPM (UCMM) 201 9
26、.3 Connection-oriented ARPMs (transports) . 210 10 DLL mapping protocol machine 1 (DMPM 1) . 238 10.1 General . 238 10.2 Link producer 238 10.3 Link consumer . 239 10.4 Primitive definitions . 239 10.5 DMPM state machine 241 10.6 Data-link Layer service selection . 243 11 DLL mapping protocol machin
27、e 2 (DMPM 2) . 243 11.1 General . 243 11.2 Mapping of UCMM PDUs . 243 11.3 Mapping of transport class 0 and class 1 PDUs . 251 11.4 Mapping of transport class 2 and class 3 PDUs 252 IEC 61158-6-2:2014 IEC 2014 3 11.5 Mapping of transport classes 4 to 6 . 253 11.6 IGMP Usage 253 11.7 Quality of Servi
28、ce (QoS) for CP 2/2 messages 254 11.8 Management of an encapsulation session . 258 12 DLL mapping protocol machine 3 (DMPM 3) . 258 Bibliography 259 Figure 1 Attribute table format and terms . 27 Figure 2 Service request/response parameter 28 Figure 3 Example of an STD 31 Figure 4 Network connection
29、 parameters . 54 Figure 5 Time tick 57 Figure 6 Connection establishment time-out 59 Figure 7 Member ID/EX description (WORD) . 71 Figure 8 Transport Class Trigger attribute 103 Figure 9 CP2/3_initial_comm_characteristics attribute format 107 Figure 10 Segment type . 116 Figure 11 Port segment 117 F
30、igure 12 Logical segment encoding 119 Figure 13 Extended network segment 124 Figure 14 Symbolic segment encoding . 125 Figure 15 Encapsulation message . 154 Figure 16 FixedLengthBitString compact encoding bit placement rules 176 Figure 17 Example compact encoding of a SWORD FixedLengthBitString 176
31、Figure 18 Example compact encoding of a WORD FixedLengthBitString 176 Figure 19 Example compact encoding of a DWORD FixedLengthBitString . 176 Figure 20 Example compact encoding of a LWORD FixedLengthBitString 176 Figure 21 Example 1 of formal encoding of a structure type specification . 181 Figure
32、22 Example 2 of formal encoding of a structure type specification . 182 Figure 23 Example 3 of formal encoding of a handle structure type specification . 182 Figure 24 Example 4 of formal encoding of a handle structure type specification . 183 Figure 25 Example 5 of abbreviated encoding of a structu
33、re type specification 183 Figure 26 Example 1 of formal encoding of an array type specification 184 Figure 27 Example 2 of formal encoding of an array type specification 185 Figure 28 Example 1 of abbreviated encoding of an array type specification 186 Figure 29 Example 2 of abbreviated encoding of
34、an array type specification 186 Figure 30 I/O Connection object state transition diagram . 187 Figure 31 Bridged Connection object state transition diagram 191 Figure 32 Explicit Messaging Connection object state transition diagram . 192 Figure 33 State transition diagram of UCMM client9 . 203 Figur
35、e 34 State transition diagram of highend UCMM server 205 Figure 35 State transition diagram of lowend UCMM server . 207 Figure 36 Sequence diagram for a UCMM with one outstanding message 208 Figure 37 Sequence diagram for a UCMM with multiple outstanding messages 209 4 IEC 61158-6-2:2014 IEC 2014 Fi
36、gure 38 TPDU buffer . 210 Figure 39 Data flow diagram using a client transport class 0 and server transport class 0 213 Figure 40 Sequence diagram of data transfer using transport class 0. 213 Figure 41 Class 0 client STD . 214 Figure 42 Class 0 server STD 215 Figure 43 Data flow diagram using clien
37、t transport class 1 and server transport class 1 216 Figure 44 Sequence diagram of data transfer using client transport class 1 and server transport class 1 217 Figure 45 Class 1 client STD . 219 Figure 46 Class 1 server STD 220 Figure 47 Data flow diagram using client transport class 2 and server t
38、ransport class 2 222 Figure 48 Diagram of data transfer using client transport class 2 and server transport class 2 without returned data 223 Figure 49 Sequence diagram of data transfer using client transport class 2 and server transport class 2 with returned data . 224 Figure 50 Class 2 client STD
39、. 225 Figure 51 Class 2 server STD 227 Figure 52 Data flow diagram using client transport class 3 and server transport class 3 230 Figure 53 Sequence diagram of data transfer using client transport class 3 and server transport class 3 without returned data . 231 Figure 54 Sequence diagram of data tr
40、ansfer using client transport class 3 and server transport class 3 with returned data . 232 Figure 55 Class 3 client STD . 234 Figure 56 Class 3 server STD 236 Figure 57 Data flow diagram for a link producer and consumer 238 Figure 58 State transition diagram for a link producer 242 Figure 59 State
41、transition diagram for a link consumer . 242 Figure 60 DS field in the IP header 255 Figure 61 IEEE 802.1Q tagged frame . 256 Table 1 Get_Attribute_All response service rules . 28 Table 2 Example class level object/service specific response data of Get_Attribute_All 29 Table 3 Example Get_Attribute_
42、All data array method . 29 Table 4 Set_Attribute_All request service rules 30 Table 5 Example Set_Attribute_All attribute ordering method . 30 Table 6 Example Set_Attribute_All data array method 30 Table 7 State event matrix format 32 Table 8 Example state event matrix . 32 Table 9 UCMM_PDU header f
43、ormat . 36 Table 10 UCMM command codes . 36 Table 11 Transport class 0 header . 37 IEC 61158-6-2:2014 IEC 2014 5 Table 12 Transport class 1 header . 37 Table 13 Transport class 2 header . 37 Table 14 Transport class 3 header . 37 Table 15 Real-time data header exclusive owner 38 Table 16 Real-time d
44、ata header redundant owner 38 Table 17 Forward_Open request format . 42 Table 18 Forward_Open_Good response format 43 Table 19 Forward_Open_Bad response format 44 Table 20 Large_Forward_Open request format 44 Table 21 Large_Forward_Open_Good response format . 45 Table 22 Large_Forward_Open_Bad respo
45、nse format 46 Table 23 Forward_Close request format 46 Table 24 Forward_Close_Good response format 47 Table 25 Forward_Close_Bad response format 47 Table 26 Unconnected_Send request format 48 Table 27 Unconnected_Send_Good response format . 49 Table 28 Unconnected_Send_Bad response format . 49 Table
46、 29 Unconnected_Send request format (modified) . 50 Table 30 Unconnected_Send_Good response format (modified) 51 Table 31 Unconnected_Send_Bad response format (modified). 51 Table 32 Get_Connection_Data request format 52 Table 33 Get_Connection_Data response format . 52 Table 34 Search_Connection_Da
47、ta request format 53 Table 35 Get_Connection_Owner request format . 53 Table 36 Get_Connection_Owner response format 53 Table 37 Time-out multiplier . 57 Table 38 Time tick units . 57 Table 39 Encoded application path ordering 62 Table 40 Transport class, trigger and Is_Server format 63 Table 41 MR_
48、Request_Header format . 63 Table 42 MR_Response_Header format . 64 Table 43 Structure of Get_Attribute_All_ResponsePDU body . 64 Table 44 Structure of Set_Attribute_All_RequestPDU body 65 Table 45 Structure of Get_Attribute_List_RequestPDU body 65 Table 46 Structure of Get_Attribute_List_ResponsePDU body . 65 Table 47 Structure of Set_Attribute_List_RequestPDU body 65 Table 48 Structure of Set_Attribute_List_ResponsePDU body 65 Table 49 Structure of Reset_RequestPDU body . 66 Table 50 Structure of Reset_ResponsePDU body