1、 IEC 61158-6-17 Edition 1.0 2007-12 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks Fieldbus specifications Part 6-17: Application layer protocol specification Type 17 elements Rseaux de communication industriels Spcifications des bus de terrain Partie 6-17: Spcificatio
2、n de protocole de la couche dapplication lments de Type 17 IEC 61158-6-17:2007 THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2007 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, elect
3、ronic 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, please c
4、ontact 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, y c
5、ompris la photocopie et les microfilms, sans laccord crit de la CEI ou du Comit national de la CEI du pays du demandeur. Si vous avez des questions sur le copyright de la CEI ou si vous dsirez obtenir des droits supplmentaires sur cette publication, utilisez les coordonnes ci-aprs ou contactez le Co
6、mit national de la CEI 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 an
7、d 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 publ
8、ished. Useful links: IEC publications search - www.iec.ch/searchpub The advanced search enables you 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 - webst
9、ore.iec.ch/justpublished Stay up to date on all new IEC publications. Just Published details all new publications released. Available on-line and also once a month by email. Electropedia - www.electropedia.org The worlds leading online dictionary of electronic and electrical terms containing more th
10、an 30 000 terms and definitions in English and French, with equivalent terms in additional languages. Also known as the International Electrotechnical Vocabulary (IEV) on-line. Customer Service Centre - webstore.iec.ch/csc If you wish to give us your feedback on this publication or need further assi
11、stance, please contact the Customer Service Centre: csciec.ch. A propos de la CEI La Commission Electrotechnique Internationale (CEI) est la premire organisation mondiale qui labore et publie des Normes internationales pour tout ce qui a trait llectricit, llectronique et aux technologies apparentes.
12、 A propos des publications CEI Le contenu technique des publications de la CEI est constamment revu. Veuillez vous assurer que vous possdez ldition la plus rcente, un corrigendum ou amendement peut avoir t publi. Liens utiles: Recherche de publications CEI - www.iec.ch/searchpub La recherche avance
13、vous permet de trouver des publications CEI en utilisant diffrents critres (numro de rfrence, texte, comit dtudes,). Elle donne aussi des informations sur les projets et les publications remplaces ou retires. Just Published CEI - webstore.iec.ch/justpublished Restez inform sur les nouvelles publicat
14、ions de la CEI. Just Published dtaille les nouvelles publications parues. Disponible en ligne et aussi une fois par mois par email. Electropedia - www.electropedia.org Le premier dictionnaire en ligne au monde de termes lectroniques et lectriques. Il contient plus de 30 000 termes et dfinitions en a
15、nglais et en franais, ainsi que les termes quivalents dans les langues additionnelles. Egalement appel Vocabulaire Electrotechnique International (VEI) en ligne. Service Clients - webstore.iec.ch/csc Si vous dsirez nous donner des commentaires sur cette publication ou si vous avez des questions cont
16、actez-nous: csciec.ch. IEC 61158-6-17 Edition 1.0 2007-12 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks Fieldbus specifications Part 6-17: Application layer protocol specification Type 17 elements Rseaux de communication industriels Spcifications des bus de terrain Pa
17、rtie 6-17: Spcification de protocole de la couche dapplication lments de Type 17 INTERNATIONAL ELECTROTECHNICAL COMMISSION COMMISSION ELECTROTECHNIQUE INTERNATIONALE XB ICS 25.040.40; 35.100.70 PRICE CODE CODE PRIX ISBN 978-2-8322-1025-3 Registered trademark of the International Electrotechnical Com
18、mission Marque dpose de la Commission Electrotechnique Internationale Warning! Make sure that you obtained this publication from an authorized distributor. Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agr. 2 61158-6-17 IEC:2007 CONTENTS FOREWORD . 5 INT
19、RODUCTION . 7 1 Scope . 8 1.1 General . 8 1.2 Specifications 8 1.3 Conformance . 8 2 Normative reference . 9 3 Definitions 9 3.1 Terms and definitions 9 3.2 Abbreviations and symbols 15 3.3 Conventions 16 4 Abstract syntax description . 18 4.1 FAL PDU abstract syntax 18 4.2 Abstract syntax of PDU bo
20、dy . 18 4.3 PDUs for ASEs 20 4.4 Type definitions . 23 4.5 Data types . 26 5 Transfer syntax 28 5.1 Overview of encoding 28 5.2 APDU header encoding . 28 5.3 APDU body encoding 29 5.4 Data type encoding rules . 30 6 FAL protocol state machines structure 34 7 AP-context state machine . 35 8 FAL servi
21、ce protocol machines (FSPMs) 35 8.1 General . 35 8.2 Common parameters of the primitives . 35 8.3 Variable ASE protocol machine (VARM) 36 8.4 Event ASE protocol machine (EVTM) 39 8.5 Load region ASE protocol machine (LDRM) . 41 8.6 Function invocation ASE protocol machine (FNIM) 43 8.7 Time ASE prot
22、ocol machine (TIMM) 47 8.8 Network management ASE protocol machine (NWMM) 51 9 Application relationship protocol machines (ARPMs) 55 9.1 General . 55 9.2 Primitive definitions . 55 9.3 State machine . 56 9.4 Functions 64 10 DLL mapping protocol machine (DMPM) . 65 10.1 General . 65 10.2 Primitive de
23、finitions . 66 10.3 DMPM state machine 67 Bibliography 70 Figure 1 APDU overview 28 61158-6-17 IEC:2007 3 Figure 2 Type field . 29 Figure 3 Identifier octet 29 Figure 4 Length octet (one-octet format) 30 Figure 5 Length octets (three-octet format) 30 Figure 6 Relationships among protocol machines an
24、d adjacent layers . 34 Figure 7 State transition diagram of VARM 37 Figure 8 State transition diagram of EVTM . 40 Figure 9 State transition diagram of LDRM . 42 Figure 10 State transition diagram of FNIM 44 Figure 11 State transition diagram of TIMM 48 Figure 12 State transition diagram of NWMM . 5
25、2 Figure 13 State transition diagram of the PTC-ARPM . 57 Figure 14 State transition diagram of the PTU-ARPM . 59 Figure 15 State transition diagram of the PSU-ARPM 60 Figure 16 State transition diagram of the MTU-ARPM 62 Figure 17 State transition diagram of the MSU-ARPM 63 Figure 18 State transiti
26、on diagram of DMPM 67 Table 1 Conventions used for AE state machine definitions . 17 Table 2 Encoding of FalArHeader field . 28 Table 3 Primitives exchanged between FAL user and VARM 36 Table 4 Parameters used with primitives exchanged FAL user and VARM . 36 Table 5 VARM state table Sender transitio
27、ns 37 Table 6 VARM state table Receiver transitions 38 Table 7 Functions used by the VARM 39 Table 8 Primitives exchanged between FAL user and EVTM 39 Table 9 Parameters used with primitives exchanged FAL user and EVTM 39 Table 10 EVTM state table Sender transitions . 40 Table 11 EVTM state table Re
28、ceiver transitions 40 Table 12 Functions used by the EVTM . 40 Table 13 Primitives exchanged between FAL user and LDRM 41 Table 14 Parameters used with primitives exchanged FAL user and LDRM 41 Table 15 LDRM state table Sender transitions 42 Table 16 LDRM state table Receiver transitions 43 Table 17
29、 Functions used by the LDRM . 43 Table 18 Primitives exchanged between FAL user and FNIM . 44 Table 19 Parameters used with primitives exchanged FAL user and FNIM . 44 Table 20 FNIM state table Sender transitions 45 Table 21 FNIM state table Receiver transitions . 45 Table 22 Functions used by the F
30、NIM 47 Table 23 Primitives exchanged between FAL user and TIMM . 47 Table 24 Parameters used with primitives exchanged FAL user and TIMM . 47 Table 25 TIMM states 48 4 61158-6-17 IEC:2007 Table 26 TIMM state table Sender transitions . 49 Table 27 TIMM state table Receiver transitions . 50 Table 28 F
31、unctions used by the TIMM 51 Table 29 Primitives exchanged between FAL user and NWMM 51 Table 30 Parameters used with primitives exchanged FAL user and NWMM 52 Table 31 NWMM states 52 Table 32 NWMM state table Sender transitions . 53 Table 33 NWMM state table Receiver transitions 54 Table 34 Functio
32、ns used by the NWMM . 55 Table 35 Primitives exchanged between FSPM and ARPM 56 Table 36 Parameters used with primitives exchanged FSPM user and ARPM 56 Table 37 PTC-ARPM states . 56 Table 38 PTC-ARPM state table Sender transitions 57 Table 39 PTC-ARPM state table Receiver transitions 58 Table 40 PT
33、U-ARPM states . 59 Table 41 PTU-ARPM state table Sender transitions 59 Table 42 PTU-ARPM state table Receiver transitions 60 Table 43 PSU-ARPM states . 60 Table 44 PSU-ARPM state table Sender transitions 61 Table 45 PSU-ARPM state table Receiver transitions 61 Table 46 MTU-ARPM states . 62 Table 47
34、MTU-ARPM state table Sender transitions 62 Table 48 MTU-ARPM state table Receiver transitions . 63 Table 49 MSU-ARPM states. 63 Table 50 MSU-ARPM state table Sender transitions 64 Table 51 MSU-ARPM state table Receiver transitions . 64 Table 52 Functions used by the ARPMs . 65 Table 53 Primitives ex
35、changed between DMPM and ARPM . 66 Table 54 Primitives exchanged between data-link layer and DMPM . 66 Table 55 DMPM states . 67 Table 56 DMPM state table Sender transitions 67 Table 57 DMPM state table Receiver transitions . 69 Table 58 Functions used by the DMPM 69 61158-6-17 IEC:2007 5 INTERNATIO
36、NAL ELECTROTECHNICAL COMMISSION _ INDUSTRIAL COMMUNICATION NETWORKS FIELDBUS SPECIFICATIONS Part 6-17: Application layer protocol specification Type 17 elements FOREWORD 1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising all national ele
37、ctrotechnical committees (IEC National Committees). The object of IEC is to promote international co-operation on all questions concerning standardization in the electrical and electronic fields. To this end and in addition to other activities, IEC publishes International Standards, Technical Specif
38、ications, Technical Reports, Publicly Available Specifications (PAS) and Guides (hereafter referred to as “IEC Publication(s)”). Their preparation is entrusted to technical committees; any IEC National Committee interested in the subject dealt with may participate in this preparatory work. Internati
39、onal, governmental and non- governmental organizations liaising with the IEC also participate in this preparation. IEC collaborates closely with the International Organization for Standardization (ISO) in accordance with conditions determined by agreement between the two organizations. 2) The formal
40、 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 representation from all interested IEC National Committees. 3) IEC Publications have the form of recommendations for
41、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 cannot be held responsible for the way in which they are used or for any misinterpretation by any end user. 4)
42、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 publications. Any divergence between any IEC Publication and the corresponding national or regional publication shall
43、be clearly indicated in the latter. 5) IEC provides no marking procedure to indicate its approval and cannot be rendered responsible for any equipment declared to be in conformity with an IEC Publication. 6) All users should ensure that they have the latest edition of this publication. 7) No liabili
44、ty shall attach to IEC or its directors, employees, servants or agents including 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 (includi
45、ng legal fees) and expenses arising out of the publication, use of, or reliance 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 th
46、is publication. NOTE Use of some of the associated protocol types is restricted by their intellectual-property-right holders. In all cases, the commitment to limited release of intellectual-property-rights made by the holders of those rights permits a particular data-link layer protocol type to be u
47、sed with physical layer and application layer protocols in Type combinations as specified explicitly in the IEC 61784 series. Use of the various protocol types in other combinations may require permission from their respective intellectual-property-right holders. IEC draws attention to the fact that
48、 it is claimed that compliance with this standard may involve the use of patents as follows, where the xx notation indicates the holder of the patent right: Type 17: PCT Application No. PCT/JP2004/011537 YEC Communication control method PCT Application No. PCT/JP2004/011538 YEC Communication control method IEC takes no position concerning the evidence, validity and scope of these patent rights. The holders of these patent rights have assured IEC that they are willing to negotiate licences under reasonable and non-discriminatory terms a