1、 IEC 61158-6-4 Edition 2.0 2014-08 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks Fieldbus specifications Part 6-4: Application layer protocol specification Type 4 elements Rseaux de communication industriels Spcifications des bus de terrain Partie 6-4: Spcification du
2、 protocole de la couche application Elments de type 4 IEC 61158-6-4: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-4 Edition 2.0 2014-08 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial commun
20、ication networks Fieldbus specifications Part 6-4: Application layer protocol specification Type 4 elements Rseaux de communication industriels Spcifications des bus de terrain Partie 6-4: Spcification du protocole de la couche application Elments de type 4 INTERNATIONAL ELECTROTECHNICAL COMMISSION
21、COMMISSION ELECTROTECHNIQUE INTERNATIONALE W ICS 25.040.40; 35.100.70; 35.110 PRICE CODE CODE PRIX ISBN 978-2-8322-1758-0 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-4:2014 IEC 2014 CONTENTS FOREWORD . 5 INTRODUCTION . 7 1 Scope . 8 1.1 General . 8 1.2 Specifications 8 1.3 Conformance . 9 2 Normative references .
23、9 3 Terms, definitions, symbols, abbreviations and conventions . 9 3.1 Referenced terms and definitions 9 3.2 Abbreviations and symbols 11 3.3 Conventions 11 4 FAL syntax description . 13 4.1 FAL-AR PDU abstract syntax 13 4.2 Data types . 15 5 Transfer syntaxes . 15 5.1 APDU encoding . 15 5.2 Variab
24、le object encoding and packing . 19 5.3 Error codes . 22 6 FAL protocol state machines 22 7 AP-context state machine . 23 8 FAL service protocol machine (FSPM) 24 8.1 Primitives exchanged between FAL User and FSPM . 24 8.2 FSPM states 24 9 Application relationship protocol machine (ARPM) 29 9.1 Prim
25、itives exchanged between ARPM and FSPM 29 9.2 ARPM States . 30 10 DLL mapping protocol machine (DMPM) . 32 10.1 Data-link Layer service selection . 32 10.2 Primitives exchanged between ARPM and DLPM 32 10.3 Primitives exchanged between DLPM and data-link layer 32 10.4 DLPM states 33 11 Protocol opti
26、ons . 35 Bibliography 36 IEC 61158-6-4:2014 IEC 2014 3 Figure 1 State transition diagram . 12 Figure 2 APDU header structure 15 Figure 3 Instruction subfield of ControlStatus . 16 Figure 4 Errorcode subfield of ControlStatus 16 Figure 5 Remaining subfields of ControlStatus . 17 Figure 6 DataFieldFor
27、mat encoding . 17 Figure 7 Structure of request APDU body 17 Figure 8 Structure of response APDU body 18 Figure 9 Variable identifier . 18 Figure 10 Code subfield of variable identifier . 18 Figure 11 Summary of FAL architecture . 23 Figure 12 FSPM proxy object state machine 25 Figure 13 FSPM real o
28、bject state machine . 28 Figure 14 ARPM state machine 30 Figure 15 DLPM state machine 33 Table 1 State machine description elements 12 Table 2 APDU header 13 Table 3 APDU body . 14 Table 4 Transfer syntax for Array . 20 Table 5 Transfer syntax for Structure . 21 Table 6 Common variable object attrib
29、utes 21 Table 7 Variable type identifiers . 21 Table 8 FIFO variable object attributes 22 Table 9 Error codes . 22 Table 10 Primitives exchanged between FAL-User and FSPM . 24 Table 11 REQUEST.req FSPM constraints . 25 Table 12 REQUEST.req FSPM actions 25 Table 13 RESPONSE.cnf FSPM constraints 27 Ta
30、ble 14 RESPONSE.cnf FSPM actions 27 Table 15 AR Send.ind proxy FSPM constraints 28 Table 16 AR Send.ind proxy FSPM actions 28 Table 17 AR Send.ind real FSPM constraints . 29 Table 18 AR Send.ind real FSPM Actions 29 Table 19 Primitives issued by FSPM to ARPM . 29 Table 20 Primitives issued by ARPM t
31、o FSPM . 30 4 IEC 61158-6-4:2014 IEC 2014 Table 21 Primitives issued by ARPM to ARPM . 30 Table 22 AR Send.req ARPM constraints . 30 Table 23 AR Send.req ARPM actions . 30 Table 24 AR Acknowledge.req ARPM constraints 31 Table 25 AR Acknowledge.req ARPM actions 31 Table 26 AR Send.ind ARPM constraint
32、s . 31 Table 27 AR Send.req ARPM actions . 31 Table 28 Primitives issued by ARPM to DLPM . 32 Table 29 Primitives issued by DLPM to ARPM . 32 Table 30 Primitives issued by DLPM to data-link layer . 33 Table 31 Primitives issued by data-link layer to DLPM . 33 Table 32 AR Send.req DLPM constraints .
33、33 Table 33 AR Send.req DLPM actions . 34 Table 34 AR Acknowledge.req DLPM constraints . 34 Table 35 AR Acknowledge.req DLPM actions . 34 Table 36 DL-UNITDATA.ind DLPM constraints . 34 Table 37 DL-UNITDATA.ind DLPM actions . 35 IEC 61158-6-4:2014 IEC 2014 5 INTERNATIONAL ELECTROTECHNICAL COMMISSION
34、_ INDUSTRIAL COMMUNICATION NETWORKS FIELDBUS SPECIFICATIONS Part 6-4: Application layer protocol specification Type 4 elements FOREWORD 1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising all national electrotechnical committees (IEC Nati
35、onal 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 Specifications, Technical Reports, Publi
36、cly 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. International, governmental and non- govern
37、mental 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 decisions or agreements of IEC on
38、 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 international use and are accepted
39、 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) In order to promote international
40、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 be clearly indicated in the latter
41、. 5) IEC itself does not provide any attestation of conformity. Independent certification bodies provide conformity assessment services and, in some areas, access to IEC marks of conformity. IEC is not responsible for any services carried out by independent certification bodies. 6) All users should
42、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 individual experts and members of its technical committees and IEC National Committees for any personal injury, property damage or other damage
43、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 upon, this IEC Publication or any other IEC Publications. 8) Attention is drawn to the Normative references cited in this publication. Use of the
44、 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.
45、Attention is drawn to the fact that the use of the associated protocol type is restricted by its 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 layer protocol type to be used with othe
46、r layer protocols of the same type, or in other type combinations explicitly authorized by its intellectual-property-right holders. NOTE Combinations of protocol types are specified in IEC 61784-1 and IEC 61784-2. International Standard IEC 61158-6-4 has been prepared by subcommittee 65C: Industrial
47、 networks, of IEC technical committee 65: Industrial-process measurement, control and automation. This second edition cancels and replaces the first edition published in 2007. This edition constitutes an technical revision. 6 IEC 61158-6-4:2014 IEC 2014 This edition includes the following significan
48、t changes with respect to the previous edition: a) editorial improvements; b) editorial corrections. The text of this standard is based on the following documents: FDIS Report on voting 65C/764/FDIS 65C/774/RVD Full information on the voting for the approval of this standard can be found in the repo
49、rt on voting indicated in the above table. This publication has been drafted in accordance with ISO/IEC Directives, Part 2. A list of all the parts of the IEC 61158 series, under the general title Industrial communication networks Fieldbus specifications, can be found on the IEC web site. The committee has decided that the