1、 IEC 61158-4-7 Edition 1.0 2007-12 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks Fieldbus specifications Part 4-7: Data-link layer protocol specification Type 7 elements Rseaux de communication industriels Spcifications des bus de terrain Partie 4-7: Spcification de p
2、rotocole de la couche de liaison de donnes lments de Type 7 IEC 61158-4-7:2007-12(EN-FR) 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 me
3、ans, 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 mca
5、nique, 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 l
6、e 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
7、and 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 pu
8、blished. 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 s
9、earch - 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 a
11、nd 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 Centr
13、e: 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 internatio
15、nales, 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, t
16、exte, 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 auss
17、i 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 Vocabula
18、ire 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-4-7 Edition 1.0 2007-12 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial
20、communication networks Fieldbus specifications Part 4-7: Data-link layer protocol specification Type 7 elements Rseaux de communication industriels Spcifications des bus de terrain Partie 4-7: Spcification de protocole de la couche de liaison de donnes lments de Type 7 INTERNATIONAL ELECTROTECHNICAL
21、 COMMISSION COMMISSION ELECTROTECHNIQUE INTERNATIONALE XE ICS 25.040.40; 35.100.20 PRICE CODE CODE PRIX ISBN 978-2-8322-1020-8 Registered trademark of the International Electrotechnical Commission Marque dpose de la Commission Electrotechnique Internationale Warning! Make sure that you obtained this
22、 publication from an authorized distributor. Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agr. 2 61158-4-7 IEC:2007 CONTENTS FOREWORD . 6 INTRODUCTION . 7 1 Scope . 9 1.1 General . 9 1.2 Specifications 9 1.3 Procedures 9 1.4 Applicability . 9 1.5 Confor
23、mance . 9 2 Normative references . 10 3 Terms, definitions, symbols and abbreviations 10 3.1 Reference model terms and definitions 10 3.2 Service convention terms and definitions . 11 3.3 Other terms and definitions . 12 3.4 Symbols and abbreviations 16 4 Overview of the DL-protocol . 18 4.1 Overall
24、 description of medium allocation . 18 4.2 Types of entities 20 4.3 Addressing 23 4.4 Flow control. 29 4.5 Graphical representation . 31 5 General structure and encoding of PhIDUs and DLPDUs and related elements of procedure . 32 5.1 DLPDU formats and components . 32 5.2 Description of each DLPDU co
25、mponent . 32 5.3 PhIDU structure and encoding . 36 5.4 Common DLPDU structure, encoding and elements of procedure 37 5.5 Valid DLPDU types 37 5.6 DLL timers . 39 6 DLPDU-specific structure, encoding and element of procedure . 43 6.1 General . 43 6.2 Buffer read 43 6.3 Buffer write 44 6.4 Buffer tran
26、sfer . 44 6.5 Specified explicit request. 45 6.6 Free explicit request 50 6.7 Messaging . 53 6.8 Acknowledged messaging . 58 6.9 Numbering of acknowledged messages . 62 6.10 Behavior with mismatched parameters 64 7 DL-service elements of procedure, interfaces and conformance . 66 7.1 General . 66 7.
27、2 Producer/consumer entity 67 7.3 Protocol elements by service . 70 7.4 Bus arbitrator operation . 77 7.5 Bridges 85 7.6 Interfaces 92 61158-4-7 IEC:2007 3 7.7 Conformance . 94 Annex A (informative) Exemplary FCS implementation 97 Annex B (informative) Object modeling . 99 B.1 Modeling of the IDENTI
28、FIER object . 99 B.2 Description of the IDENTIFIER object attributes 99 B.3 Modeling of the QUEUE object 103 B.4 Description of the QUEUE object attributes . 103 B.5 Modeling of the BUFFER object. 104 B.6 Description of the BUFFER object attributes 104 Annex C (informative) Topology of multi-segment
29、 DL-subnetwork . 106 C.1 Introduction . 106 C.2 Global specification . 106 C.3 Local specification . 107 C.4 Properties . 107 C.5 Methods 107 Annex D (informative) Management of transmission errors . 111 D.1 Transmission of RP_DAT_XX 111 D.2 Transmission of a free RP_RQ(1/2) . 111 D.3 Transmission o
30、f the specified RP_RQ1 . 112 D.4 Transmission of RP_MSG_NOACK 113 D.5 Transmission of RP_MSG_ACK . 115 Bibliography 118 Figure 1 Relationships of DLSAPs, DLSAP-addresses and group DL-addresses 13 Figure 2 General description of medium allocation . 19 Figure 3 Internal structure of a producer/consume
31、r entity . 20 Figure 4 Associated buffers and queues 22 Figure 5 Internal structure of a bus arbitrator . 23 Figure 6 Polling BA Table 23 Figure 7 Addressing scheme 24 Figure 8 Address partitioning . 26 Figure 9 Structure of an individual physical address 27 Figure 10 Structure of an individual logi
32、cal address . 27 Figure 11 Structure of restricted physical group address 27 Figure 12 Structure of a restricted logical group address . 28 Figure 13 Structure of a generalized group address . 28 Figure 14 Summary of address structure 29 Figure 15 Example of an evaluation net . 31 Figure 16 Basic DL
33、PDU structure. 32 Figure 17 DLPDU transmission / reception order 32 Figure 18 Identifier DLPDU 38 Figure 19 Variable response DLPDU 38 Figure 20 Request response DLPDU 38 Figure 21 Message response DLPDU. 39 Figure 22 Acknowledgement response DLPDU 39 4 61158-4-7 IEC:2007 Figure 23 End of message tr
34、ansaction response DLPDU . 39 Figure 24 Buffer reading service interactions . 44 Figure 25 Buffer writing service interactions . 44 Figure 26 Buffer transfer service interactions . 44 Figure 27 Buffer transfer DLPDU sequence . 45 Figure 28 Interactions within the specified explicit request for buffe
35、r transfer service in the aperiodic window. 46 Figure 29 Interactions within the specified explicit request for buffer transfer service in the periodic window 47 Figure 30 DLPDU sequence for an explicit request for a transfer . 48 Figure 31 Evaluation network for a buffer transfer specified explicit
36、 request with (RQ_INHIBITED = False) 49 Figure 32 Evaluation network for a buffer transfer specified explicit request with (RQ_INHIBITED = True) . 49 Figure 33 Diagram of interactions within the free explicit request for buffer transfer service 51 Figure 34 Evaluation network for a free explicit req
37、uest . 52 Figure 35 Diagram of interactions within the unacknowledged message transfer request service for an aperiodic transfer . 55 Figure 36 Diagram of interactions within the unacknowledged message transfer request service for a cyclical transfer 56 Figure 37 DLPDU sequence for an aperiodic mess
38、age transfer 57 Figure 38 DLPDU sequence for a cyclical message transfer 58 Figure 39 Diagram of interactions within the acknowledged message transfer request service for an aperiodic transfer 59 Figure 40 Diagram of interactions within the acknowledged message transfer request service for a cyclica
39、l transfer 60 Figure 41 DLPDU sequence for an aperiodic message transfer 61 Figure 42 DLPDU sequence for a cyclical message transfer 62 Figure 43 Evaluation network for message aperiodic transfer . 65 Figure 44 Evaluation network for message cyclic transfer 66 Figure 45 Simplified states machine for
40、 a producer/consumer entity 67 Figure 46 Active bus arbitrators simplified state machine 83 Figure 47 Typical bridge usage 85 Figure 48 Architectural placement of bridges in OSI Basic Reference Model (ISO/IEC 7498) 85 Figure 49 Representation of an extended link communication 86 Figure 50 Evaluation
41、 network for reception of an RP_MSG_ACK DLPDU . 91 Figure 51 Evaluation network for reception of an RP_MSG_NOACK DLPDU 92 Figure A.1 Example of FCS generation 97 Figure A.2 Example of FCS syndrome checking on reception . 97 Figure D.1 Evaluation DL-subnetwork for transmission of RP_DAT_XX 111 Figure
42、 D.2 Evaluation DL-subnetwork for transmission of a free RP_RQ(1/2) . 112 Figure D.3 Evaluation DL-subnetwork for transmission of the specified RP_RQ1 . 113 Figure D.4 Evaluation DL-subnetwork for transmission of RP_MSG_NOACK, first behavior . 114 61158-4-7 IEC:2007 5 Figure D.5 Evaluation DL-subnet
43、work for transmission of RP_MSG_NOACK, second behavior . 115 Figure D.6 Evaluation DL-subnetwork for transmission of RP_MSG_ACK, first behavior . 116 Figure D.7 Evaluation DL-subnetwork for transmission of RP_MSG_ACK, second behavior . 117 Table 1 Individual and group address encoding . 26 Table 2 D
44、LPDU control-field coding . 33 Table 3 Correspondence between name and coding of 8 bits in the control field 34 Table 4 FCS length, polynomial and expected residual 35 Table 5 DL-Timers . 41 Table 6 Bus arbitrator state transition table 84 Table 7 Bridge object description . 87 Table 8 Channel objec
45、t description 88 Table 9 Segment directory object description . 89 Table 10 Network directory object description 89 Table 11 Service primitives by type 93 Table 12 Conformance classes 96 6 61158-4-7 IEC:2007 INTERNATIONAL ELECTROTECHNICAL COMMISSION _ INDUSTRIAL COMMUNICATION NETWORKS FIELDBUS SPECI
46、FICATIONS Part 4-7: Data-link layer protocol specification Type 7 elements FOREWORD 1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising all national electrotechnical committees (IEC National Committees). The object of IEC is to promote in
47、ternational 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, Publicly Available Specifications (PAS) and Guides (herea
48、fter 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- 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 decisions or agreements of IEC on technical matters express, as near