1、 IEC 61158-6-13 Edition 2.0 2014-08 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks Fieldbus specifications Part 6-13: Application layer protocol specification Type 13 elements Rseaux de communication industriels Spcifications des bus de terrain Partie 6-13: Spcificatio
2、n du protocole de la couche application lments de type 13 IEC 61158-6-13: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 mea
3、ns, electronic 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,
4、 please 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 mcan
5、ique, 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
6、 Comit 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 a
7、nd publishes 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 pub
8、lished. 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 se
9、arch - 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
10、all new 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 an
11、d French, 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
12、publications 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
13、: csciec.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
14、des publications 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 internation
15、ales, 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, te
16、xte, 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
17、 une 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 Vocabulai
18、re Electrotechnique 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
19、publications 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-13 Edition 2.0 2014-08 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial
20、communication networks Fieldbus specifications Part 6-13: Application layer protocol specification Type 13 elements Rseaux de communication industriels Spcifications des bus de terrain Partie 6-13: Spcification du protocole de la couche application lments de type 13 INTERNATIONAL ELECTROTECHNICAL CO
21、MMISSION COMMISSION ELECTROTECHNIQUE INTERNATIONALE XB ICS 25.040.40; 35.100.70; 35.110 PRICE CODE CODE PRIX ISBN 978-2-8322-1763-4 Registered trademark of the International Electrotechnical Commission Marque dpose de la Commission Electrotechnique Internationale Warning! Make sure that you obtained
22、 this publication from an authorized distributor. Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agr. 2 IEC 61158-6-13:2014 IEC 2014 CONTENTS FOREWORD . 5 INTRODUCTION . 7 1 Scope . 8 General . 8 1.1Specifications 8 1.2Conformance . 9 1.3 2 Normative refe
23、rences . 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 terms and definitions . 11 3.6Abbreviations and symbols 11 3
24、.7 4 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.4 5 Transfer syntax 23 Encoding of data types 23 5.1 6 FAL protocol state machines 27 7 AP context state machine . 28 8 FAL service protocol
25、machine . 28 9 AR protocol machine 29 Buffered-network-scheduled bi-directional pre-established connection (BNB- 9.1 PEC) ARPM 29 Buffered-network-scheduled uni-directional pre-established connection 9.2 (BNU-PEC) ARPM . 31 Queued user-triggered uni-directional (QUU) ARPM 33 9.3Queued user-triggered
26、 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.2 Annex A (normative) Constant value assignments 61 A.1 Value
27、s 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 IEC 61158-6-13:2014 IEC 2014 3 Figure 2 Encoding of Time Difference value . 27 Figure 3 Primitives exchanged between protocol machi
28、nes 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 State transition diagram of QUB-COS (CmdL) ARPM . 43 Figure 9 State transitio
29、n 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 type UNSIGNEDn 24 Table 5 Transfer syntax for data type INTEGERn . 25 Tab
30、le 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 Function BuildFAL-PDU . 31 Table 11 Primitives issued by user to BNU-PEC A
31、RPM 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 Primitives issued by user to QUU ARPM . 33 Table 17 Primitives issued by QUU A
32、RPM 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 Primitives issued by QUB-CL ARPM to user 37 Table 23 QUB-CL ARPM state tabl
33、e 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) ARPM to user . 42 Table 28 QUB-COS (CmdL) ARPM state table sender transac
34、tions . 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 4 IEC 61158-6-13:2014 IEC 2014 Table 33 Function AddSegment . 52 Table 34 Function GetIntermediatePDU . 52 Table 35 Pri
35、mitives 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 QUB-COS (CmdL) 53 Table 38 QUB-COS (SeqL) ARPM states . 54 Table 39 QUB-COS (SeqL) ARPM state tabl
36、e 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 . 58 Table 44 Primitives issued by ARPM to DMPM 58 Table 45 Primitives issued by DMPM to ARPM 58
37、 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 transactions 60 Table A.1 Values of abort-code 61 Table A.2 Values of NMTCommandID 62 Table A.3 Typ
38、e 13 specific error-code constants 63 Table A.4 Node-list format . 64 IEC 61158-6-13:2014 IEC 2014 5 INTERNATIONAL ELECTROTECHNICAL COMMISSION _ INDUSTRIAL COMMUNICATION NETWORKS FIELDBUS SPECIFICATIONS Part 6-13: Application layer protocol specification Type 13 elements FOREWORD 1) The Internationa
39、l Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising all national electrotechnical committees (IEC National Committees). The object of IEC is to promote international co-operation on all questions concerning standardization in the electrical and electronic f
40、ields. To this end and in addition to other activities, IEC publishes International Standards, Technical Specifications, Technical Reports, Publicly Available Specifications (PAS) and Guides (hereafter referred to as “IEC Publication(s)”). Their preparation is entrusted to technical committees; any
41、IEC National Committee interested in the subject dealt with may participate in this preparatory work. International, governmental and non- governmental organizations liaising with the IEC also participate in this preparation. IEC collaborates closely with the International Organization for Standardi
42、zation (ISO) in accordance with conditions determined by agreement between the two organizations. 2) The formal decisions or agreements of IEC on technical matters express, as nearly as possible, an international consensus of opinion on the relevant subjects since each technical committee has repres
43、entation from all interested IEC National Committees. 3) IEC Publications have the form of recommendations for international use and are accepted by IEC National Committees in that sense. While all reasonable efforts are made to ensure that the technical content of IEC Publications is accurate, IEC
44、cannot be held responsible for the way in which they are used or for any misinterpretation by any end user. 4) In order to promote international uniformity, IEC National Committees undertake to apply IEC Publications transparently to the maximum extent possible in their national and regional publica
45、tions. Any divergence between any IEC Publication and the corresponding national or regional publication shall be clearly indicated in the latter. 5) IEC itself does not provide any attestation of conformity. Independent certification bodies provide conformity assessment services and, in some areas,
46、 access to IEC marks of conformity. IEC is not responsible for any services carried out by independent certification bodies. 6) All users should ensure that they have the latest edition of this publication. 7) No liability shall attach to IEC or its directors, employees, servants or agents including
47、 individual experts and members of its technical committees and IEC National Committees for any personal injury, property damage or other damage of any nature whatsoever, whether direct or indirect, or for costs (including legal fees) and expenses arising out of the publication, use of, or reliance
48、upon, this IEC Publication or any other IEC Publications. 8) Attention is drawn to the Normative references cited in this publication. Use of the referenced publications is indispensable for the correct application of this publication. 9) Attention is drawn to the possibility that some of the elements of this IEC Publication may be the subject of patent rights. IEC shall not be held responsible for identifying any or all such patent rights. Attention is drawn to the fact that the use of the associated protocol type is restricted by its intellectual-property-right holders. In