1、 IEC 61158-4-18 Edition 2.0 2010-08 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks Fieldbus specifications Part 4-18: Data-link layer protocol specification Type 18 elements Rseaux de communications industriels Spcifications de bus de terrain Partie 4-18: Spcification
2、de protocole de couche de liaison de donnes Elments de Type 18 IEC 61158-4-18:2010 THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2010 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 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 l
6、e Comit 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 prepare
7、s 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
8、published. 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 - w
9、ebstore.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 mor
10、e than 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
11、assistance, 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 apparen
12、tes. 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 ava
13、nce 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 publ
14、ications 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
15、en anglais 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
16、contactez-nous: csciec.ch. IEC 61158-4-18 Edition 2.0 2010-08 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks Fieldbus specifications Part 4-18: Data-link layer protocol specification Type 18 elements Rseaux de communications industriels Spcifications de bus de terrain
17、Partie 4-18: Spcification de protocole de couche de liaison de donnes Elments de Type 18 INTERNATIONAL ELECTROTECHNICAL COMMISSION COMMISSION ELECTROTECHNIQUE INTERNATIONALE V ICS 25.04.40; 35.100.20; 35.110 PRICE CODE CODE PRIX ISBN 978-2-83220-261-6 Registered trademark of the International Electr
18、otechnical Commission 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-4-18 IEC:2010 CONTENTS FO
19、REWORD . 5 INTRODUCTION . 7 1 Scope . 8 1.1 General . 8 1.2 Specifications 8 1.3 Procedures 8 1.4 Applicability . 9 1.5 Conformance . 9 2 Normative references . 9 3 Terms, definitions, symbols, abbreviations and conventions . 9 3.1 Reference model terms and definitions 9 3.2 Type 18: Symbols 10 3.3
20、Type 18: Additional conventions 10 4 DL-protocol overview 10 4.1 Introduction . 10 4.2 Polled DLE classes . 11 4.3 Packed DLE classes 11 5 DLPDU encoding and transmission . 11 5.1 DL PhL interface 11 5.2 DLPDU transmission encoding 12 6 DLPDU basic structure 14 6.1 Overview . 14 6.2 Address field .
21、14 6.3 Status field 15 6.4 Data field. 17 7 DLPDU Detailed structure, segmenting and reassembly 19 8 Data transmission methods 23 8.1 Overview . 23 8.2 Master-polled method 23 8.3 Level A slave-polled method 24 8.4 Level B slave-polled method 25 8.5 Level C slave-polled method . 25 8.6 Master-packed
22、 method 26 8.7 Slave-packed method 27 9 DL-management procedures 28 9.1 Overview . 28 9.2 Establish master-polled DLE procedure . 28 9.3 Establish slave-polled DLE procedure . 29 9.4 Establish master-packed DLE procedure . 31 9.5 Establish slave-packed DLE procedure . 32 9.6 Release connection proce
23、dure 33 9.7 Suspend connection procedure . 33 9.8 Resume connection procedure 33 9.9 Activate standby Master procedure 34 Bibliography 35 61158-4-18 IEC:2010 3 Figure 1 HDLC flag 12 Table 1 HDLC convention summary . 13 Table 2 HDLC exception summary . 14 Table 3 Master-polled DLE address octet 0 14
24、Table 4 Slave-polled DLE address octet 0 15 Table 5 Master-packed DLE address octet 0 15 Table 6 Master-polled DLE status octet 0 . 16 Table 7 Master-polled DLE status octet 1 . 16 Table 8 Slave-polled DLE status octet 0 . 17 Table 9 slave-polled DLE status octet 1 . 17 Table 10 Slave-packed DLE sta
25、tus 17 Table 11 DLPDU Master-polled DLE acyclic data field 18 Table 12 DLPDU Slave-polled DLE acyclic data field 19 Table 13 Example master-polled DLE RY contiguous data field . 20 Table 14 Example slave-polled DLE RX contiguous data field 20 Table 15 Example master-polled DLE RWw contiguous data fi
26、eld 20 Table 16 Example slave-polled DLE RWr contiguous data field 20 Table 17 Bit-oriented segment header . 21 Table 18 Polled DLE acyclic segment number field 22 Table 19 Slave-polled DLE acyclic data type and sequence field . 22 Table 20 DLPDU Polled class poll with data 23 Table 21 Slave-polled
27、DLE response timeout . 23 Table 22 DLPDU Poll 24 Table 23 DLPDU End of cycle . 24 Table 24 slave-polled DLE request timeout 24 Table 25 DLPDU Level A poll response . 25 Table 26 DLPDU Level B poll response . 25 Table 27 DLPDU Level C poll response 26 Table 28 DLPDU Packed class poll with data 26 Tab
28、le 29 Slave-packed DLE response timeout . 26 Table 30 Slave-packed DLE request timeout 27 Table 31 DLPDU Packed class poll response 27 Table 32 Slave-packed DLE time constraints . 28 Table 33 DLPDU Poll with test data 28 Table 34 Slave-polled DLE response timeout . 29 Table 35 DLPDU Poll test . 29 T
29、able 36 Slave-polled DLE request timeout . 29 Table 37 DLPDU Poll test response 30 Table 38 Slave-polled DLE configuration parameter . 30 Table 39 DLPDU Baud rate synchronization 31 Table 40 DLPDU Poll test . 31 Table 41 Slave-packed DLE response timeout . 31 4 61158-4-18 IEC:2010 Table 42 Slave-pac
30、ked DLE number of occupied DLE station slots 32 Table 43 Slave-packed DLE baud rate synchronization timeout . 32 Table 44 Slave-packed DLE Master timeout . 33 Table 45 DLPDU Packed poll test response 33 61158-4-18 IEC:2010 5 INTERNATIONAL ELECTROTECHNICAL COMMISSION _ INDUSTRIAL COMMUNICATION NETWOR
31、KS FIELDBUS SPECIFICATIONS Part 4-18: Data-link layer protocol specification Type 18 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 I
32、EC 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, Publicly Available Specifications (PAS
33、) 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- governmental organizations liaising wit
34、h 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 ne
35、arly 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 by IEC National Committees in th
36、at 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 uniformity, IEC National Committe
37、es 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. 5) IEC itself does not provide
38、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 ensure that they have the latest
39、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 of any nature whatsoever, whether
40、 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 referenced publications is indis
41、pensable for the correct application of this publication. International Standard IEC 61158-4-18 has been prepared by subcommittee 65C: Industrial networks, of IEC technical committee 65: Industrial-process measurement, control and automation. This bilingual version (2012-08) corresponds to the monol
42、ingual English version, published in 2010-08. This second edition cancels and replaces the first edition published in 2007. This edition constitutes a technical revision. The main changes with respect to the previous edition are listed below: Editorial improvements Addition of cyclic data segmenting
43、 6 61158-4-18 IEC:2010 The text of this standard is based on the following documents: FDIS Report on voting 65C/605/FDIS 65C/619/RVD Full information on the voting for the approval of this standard can be found in the report on voting indicated in the above table. The French version of this standard
44、 has not been voted upon. This publication has been drafted in accordance with ISO/IEC Directives, Part 2. A list of all the parts of the IEC 61158 series, published under the general title Industrial communication networks Fieldbus specifications, can be found on the IEC web site. The committee has
45、 decided that the contents of this publication will remain unchanged until the stability date indicated on the IEC web site under “http:/webstore.iec.ch“ in the data related to the specific publication. At this date, the publication will be reconfirmed; withdrawn; replaced by a revised edition, or a
46、mended. NOTE The revision of this standard will be synchronized with the other parts of the IEC 61158 series. 61158-4-18 IEC:2010 7 INTRODUCTION This part of IEC 61158 is one of a series produced to facilitate the interconnection of automation system components. It is related to other standards in t
47、he set as defined by the “three-layer” fieldbus reference model described in IEC 61158-1. The data-link protocol provides the data-link service by making use of the services available from the physical layer. The primary aim of this standard is to provide a set of rules for communication expressed i
48、n terms of the procedures to be carried out by peer data-link entities (DLEs) at the time of communication. These rules for communication are intended to provide a sound basis for development in order to serve a variety of purposes: a) as a guide for implementors and designers; b) for use in the testing and procurement of equipment; c) as part of an agreement for the admittance of systems into the open systems environment; d) as a refinement to the understanding of time-critical communications within OSI. This standard is concerned, in particular, with the communication and interwork