IEC 61158-4-2:2014
(Main)Industrial communication networks - Fieldbus specifications - Part 4-2: Data-link layer protocol specification - Type 2 elements
Industrial communication networks - Fieldbus specifications - Part 4-2: Data-link layer protocol specification - Type 2 elements
IEC 61158-4-2:2014 specifies procedures for the timely transfer of data and control information from one data-link user entity to a peer user entity, and among the data-link entities forming the distributed data-link service provider and the structure of the fieldbus DLPDUs used for the transfer of data and control information by the protocol of this standard, and their representation as physical interface data units. This third edition cancels and replaces the second edition published in 2010 and constitutes a technical revision. The main changes are:
- Addition of conventions in 3.6;
- Updates of ControlNet object in 7.2;
- Addition of missing V/NV attribute characteristic in 7.5, 7.6, 7.7;
- Extensions and clarifications of TCP/IP interface object in 7.5;
- Extensions and clarifications of Ethernet Link object in 7.6;
- Extensions and clarifications of CCO object in 7.8;
- Extensions and updates of DLR object in 7.9;
- Updates of QoS object in 7.10;
- Addition of Port object in 7.11;
- Updates to DL state machines in 8.1 and 9.2;
- Extensions and updates of DLR protocol in Clause 10;
- Update of indicator behavior in A.2.2 and A.2.3.
Réseaux de communication industriels - Spécifications des bus de terrain - Partie 4-2: Spécification du protocole de la couche liaison de données - Eléments de type 2
L'IEC 61158-4-2:2014 spécifie les procédures pour le transfert en temps utile de données et d'informations de commande d'une entité d'utilisateur de liaison de données vers une entité d'utilisateur homologue, et parmi les entités de liaison de données formant le fournisseur de service de liaison de données distribué et la structure des DLPDU du bus de terrain utilisée pour le transfert de données et d'informations de commande par le protocole de la présente norme, et leur représentation comme unités de données d'interface physique. Cette troisième édition annule et remplace la deuxième édition, parue en 2010. Elle constitue une révision technique. Les modification sont:
- Addition de conventions en 3.6;
- Mises à jour de l'objet ControlNet en 7.2;
- Addition de caractéristique d'attribut V/NV manquante en 7.5, 7.6 et 7.7;
- Extensions et clarifications de l'objet d'interface TCP/IP en 7.5;
- Extensions et clarifications de l'objet Ethernet Link en 7.6;
- Extensions et clarifications de l'objet CCO en 7.8;
- Extensions et mises à jour de l'objet DLR en 7.9;
- Mises à jour de l'objet QoS en 7.10;
- Addition de l'objet de port en 7.11;
- Mises à jour des diagrammes d'états DL en 8.1 et en 9.2;
- Extensions et mises à jour du protocole DLR à l'Article 10;
- Mise à jour du comportement des indicateurs en A.2.2 et A.2.3.
General Information
Relations
Standards Content (Sample)
IEC 61158-4-2
®
Edition 3.0 2014-08
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
Industrial communication networks – Fieldbus specifications –
Part 4-2: Data-link layer protocol specification – Type 2 elements
Réseaux de communication industriels – Spécifications des bus de terrain –
Partie 4-2: Spécification du protocole de la couche liaison de données –
Eléments de type 2
IEC 61158-4-2:2014-08(en-fr)
---------------------- Page: 1 ----------------------
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, electronic or mechanical, including photocopying and microfilm, without permission in writing from
either IEC or IEC's 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 contact the address below or
your local IEC member National Committee for further information.
Droits de reproduction réservés. Sauf indication contraire, aucune partie de cette publication ne peut être reproduite
ni utilisée sous quelque forme que ce soit et par aucun procédé, électronique ou mécanique, y compris la photocopie
et les microfilms, sans l'accord écrit de l'IEC ou du Comité national de l'IEC du pays du demandeur. Si vous avez des
questions sur le copyright de l'IEC ou si vous désirez obtenir des droits supplémentaires sur cette publication, utilisez
les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pays de résidence.
IEC Central Office Tel.: +41 22 919 02 11
3, rue de Varembé Fax: +41 22 919 03 00
CH-1211 Geneva 20 info@iec.ch
Switzerland www.iec.ch
About the IEC
The International Electrotechnical Commission (IEC) is the leading global organization that prepares 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 published.
IEC Catalogue - webstore.iec.ch/catalogue Electropedia - www.electropedia.org
The stand-alone application for consulting the entire The world's leading online dictionary of electronic and
bibliographical information on IEC International Standards, electrical terms containing more than 30 000 terms and
Technical Specifications, Technical Reports and other definitions in English and French, with equivalent terms in 14
documents. Available for PC, Mac OS, Android Tablets and additional languages. Also known as the International
iPad. Electrotechnical Vocabulary (IEV) online.
IEC publications search - www.iec.ch/searchpub IEC Glossary - std.iec.ch/glossary
The advanced search enables to find IEC publications by a More than 55 000 electrotechnical terminology entries in
variety of criteria (reference number, text, technical English and French extracted from the Terms and Definitions
committee,…). It also gives information on projects, replaced clause of IEC publications issued since 2002. Some entries
and withdrawn publications. have been collected from earlier publications of IEC TC 37,
77, 86 and CISPR.
IEC Just Published - webstore.iec.ch/justpublished
Stay up to date on all new IEC publications. Just Published IEC Customer Service Centre - webstore.iec.ch/csc
details all new publications released. Available online and If you wish to give us your feedback on this publication or
also once a month by email. need further assistance, please contact the Customer Service
Centre: csc@iec.ch.
A propos de l'IEC
La Commission Electrotechnique Internationale (IEC) est la première organisation mondiale qui élabore et publie des
Normes internationales pour tout ce qui a trait à l'électricité, à l'électronique et aux technologies apparentées.
A propos des publications IEC
Le contenu technique des publications IEC est constamment revu. Veuillez vous assurer que vous possédez l’édition la
plus récente, un corrigendum ou amendement peut avoir été publié.
Catalogue IEC - webstore.iec.ch/catalogue Electropedia - www.electropedia.org
Application autonome pour consulter tous les renseignements
Le premier dictionnaire en ligne de termes électroniques et
bibliographiques sur les Normes internationales,
électriques. Il contient plus de 30 000 termes et définitions en
Spécifications techniques, Rapports techniques et autres
anglais et en français, ainsi que les termes équivalents dans
documents de l'IEC. Disponible pour PC, Mac OS, tablettes
14 langues additionnelles. Egalement appelé Vocabulaire
Android et iPad.
Electrotechnique International (IEV) en ligne.
Recherche de publications IEC - www.iec.ch/searchpub
Glossaire IEC - std.iec.ch/glossary
Plus de 55 000 entrées terminologiques électrotechniques, en
La recherche avancée permet de trouver des publications IEC
en utilisant différents critères (numéro de référence, texte, anglais et en français, extraites des articles Termes et
comité d’études,…). Elle donne aussi des informations sur les Définitions des publications IEC parues depuis 2002. Plus
projets et les publications remplacées ou retirées. certaines entrées antérieures extraites des publications des
CE 37, 77, 86 et CISPR de l'IEC.
IEC Just Published - webstore.iec.ch/justpublished
Service Clients - webstore.iec.ch/csc
Restez informé sur les nouvelles publications IEC. Just
Published détaille les nouvelles publications parues. Si vous désirez nous donner des commentaires sur cette
Disponible en ligne et aussi une fois par mois par email. publication ou si vous avez des questions contactez-nous:
csc@iec.ch.
---------------------- Page: 2 ----------------------
IEC 61158-4-2
®
Edition 3.0 2014-08
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
Industrial communication networks – Fieldbus specifications –
Part 4-2: Data-link layer protocol specification – Type 2 elements
Réseaux de communication industriels – Spécifications des bus de terrain –
Partie 4-2: Spécification du protocole de la couche liaison de données – Eléments
de type 2
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
COMMISSION
ELECTROTECHNIQUE
PRICE CODE
INTERNATIONALE
CODE PRIX XH
ICS 25.04.40; 35.100.20; 35.110 ISBN 978-2-8322-1720-7
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éé.
® Registered trademark of the International Electrotechnical Commission
Marque déposée de la Commission Electrotechnique Internationale
---------------------- Page: 3 ----------------------
– 2 – IEC 61158-4-2:2014 © IEC 2014
CONTENTS
FOREWORD . 10
INTRODUCTION . 13
1 Scope . 15
1.1 General . 15
1.2 Specifications . 15
1.3 Procedures . 15
1.4 Applicability . 16
1.5 Conformance . 16
2 Normative references . 16
3 Terms, definitions, symbols, abbreviations and conventions . 17
3.1 Reference model terms and definitions . 17
3.2 Service convention terms and definitions . 19
3.3 Common terms and definitions . 20
3.4 Additional Type 2 definitions. 22
3.5 Type 2 symbols and abbreviations . 30
3.6 Conventions for station management objects . 31
4 Overview of the data-link protocol. 31
4.1 General . 31
4.2 Services provided by the DL . 34
4.3 Structure and definition of DL-addresses . 35
4.4 Services assumed from the PhL . 37
4.5 Functional classes . 39
5 General structure and encoding of PhIDUs and DLPDUs and related elements of
procedure . 40
5.1 Overview . 40
5.2 Media access procedure . 40
5.3 DLPDU structure and encoding . 44
5.4 Lpacket components . 48
5.5 DLPDU procedures . 50
5.6 Summary of DLL support services and objects . 51
6 Specific DLPDU structure, encoding and procedures . 53
6.1 Modeling language . 53
6.2 DLS user services . 55
6.3 Generic tag Lpacket . 61
6.4 Moderator Lpacket . 62
6.5 Time distribution Lpacket . 63
6.6 UCMM Lpacket . 66
6.7 Keeper UCMM Lpacket . 66
6.8 TUI Lpacket . 67
6.9 Link parameters Lpacket and tMinus Lpacket . 68
6.10 I’m-alive Lpacket . 70
6.11 Ping Lpackets. 71
6.12 WAMI Lpacket . 73
6.13 Debug Lpacket . 73
6.14 IP Lpacket . 74
6.15 Ethernet Lpacket . 74
---------------------- Page: 4 ----------------------
IEC 61158-4-2:2014 © IEC 2014 – 3 –
7 Objects for station management . 74
7.1 General . 74
7.2 ControlNet object . 76
7.3 Keeper object . 86
7.4 Scheduling object . 108
7.5 TCP/IP Interface object . 119
7.6 Ethernet link object. 139
7.7 DeviceNet object . 149
7.8 Connection configuration object (CCO). 157
7.9 DLR object . 180
7.10 QoS object . 195
7.11 Port object . 198
8 Other DLE elements of procedure. 201
8.1 Network attachment monitor (NAM) . 201
8.2 Calculating link parameters . 209
9 Detailed specification of DL components . 218
9.1 General . 218
9.2 Access control machine (ACM) . 218
9.3 TxLLC . 238
9.4 RxLLC . 243
9.5 Transmit machine (TxM) . 247
9.6 Receive machine (RxM) . 251
9.7 Serializer . 257
9.8 Deserializer . 260
9.9 DLL management . 260
10 Device Level Ring (DLR) protocol . 262
10.1 General . 262
10.2 Supported topologies . 263
10.3 Overview of DLR operation . 264
10.4 Classes of DLR implementation . 267
10.5 DLR behavior . 268
10.6 Implementation requirements . 273
10.7 Using non-DLR nodes in the ring network . 275
10.8 Redundant gateway devices on DLR network . 278
10.9 DLR messages . 283
10.10 State diagrams and state-event-action matrices . 289
10.11 Performance analysis . 316
Annex A (normative) Indicators and switches . 322
A.1 Purpose . 322
A.2 Indicators . 322
A.2.1 General indicator requirements . 322
A.2.2 Common indicator requirements . 322
A.2.3 Fieldbus specific indicator requirements (1) . 324
A.2.4 Fieldbus specific indicator requirements (2) . 328
A.2.5 Fieldbus specific indicator requirements (3) . 331
A.3 Switches . 335
A.3.1 Common switch requirements . 335
A.3.2 Fieldbus specific switch requirements (1) . 336
---------------------- Page: 5 ----------------------
– 4 – IEC 61158-4-2:2014 © IEC 2014
A.3.3 Fieldbus specific switch requirements (2) . 336
A.3.4 Fieldbus specific switch requirements (3) . 337
Bibliography . 338
Figure 1 – Relationships of DLSAPs, DLSAP-addresses and group DL-addresses . 21
Figure 2 – Data-link layer internal architecture . 33
Figure 3 – Basic structure of a MAC ID address . 35
Figure 4 – Basic structure of a generic tag address . 35
Figure 5 – Basic structure of a fixed tag address . 36
Figure 6 – M_symbols and Manchester encoding at 5 MHz . 38
Figure 7 – NUT structure . 41
Figure 8 – Media access during scheduled time . 42
Figure 9 – Media access during unscheduled time . 43
Figure 10 – DLPDU format . 44
Figure 11 – Aborting a DLPDU during transmission . 48
Figure 12 – Lpacket format . 48
Figure 13 – Generic tag Lpacket format . 49
Figure 14 – Fixed tag Lpacket format . 50
Figure 15 – Goodness parameter of TimeDist_Lpacket . 64
Figure 16 – Example I’m alive processing algorithm . 71
Figure 17 – Keeper CRC algorithm . 92
Figure 18 – Keeper object power-up state diagram . 103
Figure 19 – Keeper object operating state diagram . 105
Figure 20 – Synchronized network change processing . 108
Figure 21 – State transition diagram for TCP/IP Interface object . 132
Figure 22 – State transition diagram for TCP/IP Interface object (continued) . 133
Figure 23 – ACD Behavior . 135
Figure 24 – State transition diagram for Ethernet Link object . 149
Figure 25 – Connection configuration object edit flowchart . 180
Figure 26 – NAM state machine . 202
Figure 27 – DLR rings connected to switches. 264
Figure 28 – Normal operation of a DLR network . 265
Figure 29 – Beacon and Announce frames . 265
Figure 30 – Link failure . 266
Figure 31 – Network reconfiguration after link failure . 267
Figure 32 – Neighbor Check process . 273
Figure 33 – Unsupported topology – example 1 . 277
Figure 34 – Unsupported topology – example 2 . 277
Figure 35 – DLR ring connected to switches through redundant gateways . 279
Figure 36 – DLR redundant gateway capable device . 280
Figure 37 – Advertise frame . 282
Figure 38 – State transition diagram for Beacon frame based non-supervisor ring node . 290
Figure 39 – State transition diagram for Announce frame based non-supervisor ring
node . 295
---------------------- Page: 6 ----------------------
IEC 61158-4-2:2014 © IEC 2014 – 5 –
Figure 40 – State transition diagram for ring supervisor . 299
Figure 41 – State transition diagram for redundant gateway . 312
Figure A.1 – Non redundant network status indicator labeling . 328
Figure A.2 – Redundant network status indicator labeling . 328
Figure A.3 – Network status indicator state diagram . 331
Table 1 – Format of attribute tables . 31
Table 2 – Data-link layer components . 32
Table 3 – MAC ID addresses allocation . 35
Table 4 – Fixed tag service definitions . 36
Table 5 – Data encoding rules . 37
Table 6 – M Data symbols . 39
Table 7 – Truth table for ph_status_indication . 39
Table 8 – FCS length, polynomials and constants . 45
Table 9 – DLL support services and objects . 52
Table 10 – Elementary data types . 55
Table 11 – DLL events . 59
Table 12 – Time distribution priority . 65
Table 13 – Format of the TUI Lpacket . 67
Table 14 – ControlNet object class attributes . 76
Table 15 – ControlNet object instance attributes . 76
Table 16 – TUI status flag bits . 80
Table 17 – Mac_ver bits . 81
Table 18 – Channel state bits . 82
Table 19 – ControlNet object common services. 83
Table 20 – ControlNet object class specific services . 84
Table 21 – Keeper object revision history . 86
Table 22 – Keeper object class attributes . 87
Table 23 – Keeper object instance attributes . 87
Table 24 – Keeper operating state definitions . 90
Table 25 – Port status flag bit definitions . 90
Table 26 – TUI status flag bits . 91
Table 27 – Keeper attributes . 94
Table 28 – Memory requirements (in octets) for the Keeper attributes . 94
Table 29 – Keeper object common services . 95
Table 30 – Keeper object class specific services . 95
Table 31 – Service error codes . 96
Table 32 – Wire order format of the TUI Lpacket . 100
Table 33 – Service error codes . 101
Table 34 – Keeper object operating states . 101
Table 35 – Keeper object state event matrix . 105
Table 36 – Scheduling object class attributes . 109
Table 37 – Scheduling object instance attributes . 109
---------------------- Page: 7 ----------------------
– 6 – IEC 61158-4-2:2014 © IEC 2014
Table 38 – Scheduling object common services . 110
Table 39 – Status error descriptions for Create . 111
Table 40 – Status error descriptions for Delete and Kick_Timer . 112
Table 41 – Scheduling object class specific services . 112
Table 42 – Status error descriptions for Read . 114
Table 43 – Status error descriptions for Conditional_Write .
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.