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
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.
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
– 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
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
– 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
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
– 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 . 115
Table 44 – Status error descriptions for Forced_Write . 115
Table 45 – Status error descriptions for Change_Start . 116
Table 46 – Status error descriptions for Break_Connections . 116
Table 47 – Status error descriptions for Change_Complete . 117
Table 48 – Status error descriptions for Restart_Connections . 118
Table 49 – Revision history . 119
Table 50 – TCP/IP Interface object class attributes . 120
Table 51 – TCP/IP Interface object instance attributes . 120
Table 52 – Status bits . 123
Table 53 – Configuration capability bits . 124
Table 54 – Configuration control bits . 124
Table 55 – Example path . 125
Table 56 – Interface configuration components . 126
Table 57 – Alloc control values . 128
Table 58 – AcdActivity values . 129
Table 59 – ArpPdu - ARP Response PDU in binary format . 129
Table 60 – TCP/IP Interface object common services . 130
Table 61 – Get_Attribute_All reply format . 130
Table 62 – Ethernet link object revision history . 139
Table 63 – Ethernet link object class attributes . 140
Table 64 – Ethernet link object instance attributes . 140
Table 65 – Interface flags bits . 143
Table 66 – Control bits . 145
Table 67 – Interface type . 145
Table 68 – Interface state . 146
Table 69 – Admin state . 146
Table 70 – Ethernet Link object common services . 146
Table 71 – Get_Attribute_All reply format . 147
Table 72 – Ethernet Link object class specific services . 148
Table 73 – DeviceNet object revision history . 150
Table 74 – DeviceNet object class attributes . 150
Table 75 – DeviceNet object instance attributes . 150
Table 76 – Bit rate attribute values . 152
Table 77 – BOI attribute values . 153
Table 78 – Diagnostic counters bit description . 155
Table 79 – DeviceNet object common services . 156
Table 80 – Reset service parameter . 156
Table 81 – Reset service parameter values . 156
Table 82 – DeviceNet object class specific services . 157
Table 83 – Connection configuration object revision history . 158
Table 84 – Connection configuration object class attributes . 158
Table 85 – Format number values . 159
Table 86 – Connection configuration object instance attributes . 160
Table 87 – Originator connection status values . 164
Table 88 – Target connection status values . 164
Table 89 – Connection flags . 165
Table 90 – I/O mapping formats . 167
Table 91 – Services valid during a change operation . 169
Table 92 – Connection configuration object common services . 169
Table 93 – Get_Attribute_All Response – class level . 170
Table 94 – Get_Attribute_All response – instance level. 170
Table 95 – Set_Attribute_All error codes . 172
Table 96 – Set_Attribute_All request . 172
Table 97 – Create request parameters . 174
Table 98 – Create error codes . 174
Table 99 – Delete error codes . 175
Table 100 – Restore error codes . 175
Table 101 – Connection configuration object class specific services . 175
Table 102 – Change_Start error codes . 177
Table 103 – Get_Status service parameter . 177
Table 104 – Get_Status service response . 177
Table 105 – Get_Status service error codes . 178
Table 106 – Change_Complete service parameter . 178
Table 107 – Change_Complete service error codes . 178
Table 108 – Audit_Changes service parameter . 179
Table 109 – Audit_Changes service error codes . 179
Table 110 – Revision history . 181
Table 111 – DLR object class attributes . 181
Table 112 – DLR object instance attributes . 181
Table 113 – Network Status values . 185
Table 114 – Ring Supervisor Status values . 185
Table 115 – Capability flags . 188
Table 116 – Redundant Gateway Status values . 190
Table 117 – DLR object common services . 191
Table 118 – Get_Attribute_All Response – Object Revision 1, non supervisor device . 191
Table 119 – Get_Attribute_All Response – Object Revision 1, supervisor-capable
device . 192
Table 120 – Get_Attribute_All Response – Object Revision 2, non supervisor device . 192
Table 121 – Get_Attribute_All Response – All other cases . 193
Table 122 – DLR object class specific services . 194
– 8 – IEC 61158-4-2:2014 © IEC 2014
Table 123 – QoS object revision history . 195
Table 124 – QoS object class attributes . 195
Table 125 – QoS object instance attributes . 196
Table 126 – Default DCSP values and usages . 197
Table 127 – QoS object common services . 197
Table 128 – Port object class attributes . 198
Table 129 – Port object instance attributes . 199
Table 130 – Port object common services . 201
Table 131 – NAM states . 201
Table 132 – Default link parameters. 202
Table 133 – PhL timing characteristics . 210
Table 134 – DLR variables . 268
Table 135 – Redundant gateway variables . 281
Table 136 – MAC addresses for DLR messages . 283
Table 137 – IEEE 802.1Q common frame header format . 284
Table 138 –DLR message payload fields . 284
Table 139 – DLR frame types . 284
Table 140 – Format of the Beacon frame . 285
Table 141 – Ring State values . 285
Table 142 – Format of the Neighbor_Check request . 286
Table 143 – Format of the Neighbor_Check response . 286
Table 144 – Format of the Link_Status/Neighbor_Status frame . 286
Table 145 – Link/Neighbor status values . 287
Table 146 – Format of the Locate_Fault frame . 287
Table 147 – Format of the Announce frame . 287
Table 148 – Format of the Sign_On frame . 288
Table 149 – Format of the Advertise frame . 288
Table 150 – Gateway state values . 288
Table 151 – Format of the Flush_Tables frame . 289
Table 152 – Format of the Learning_Update frame . 289
Table 153 – Parameter values for Beacon frame based non-supervisor ring node . 290
Table 154 – LastBcnRcvPort bit definitions . 291
Table 155 – State-event-action matrix for Beacon frame based non-supervisor ring
node . 291
Table 156 – Parameter values for Announce frame based non-supervisor ring node . 295
Table 157 – State-event-action matrix for Announce frame based non-supervisor ring
node . 296
Table 158 – Parameter values for ring supervisor node . 299
Table 159 – LastBcnRcvPort bit definitions . 300
Table 160 – State-event-action matrix for ring supervisor node . 301
Table 161 – Parameter values for redundant gateway node . 313
Table 162 – State-event-action matrix for redundant gateway node . 314
Table 163 – Parameters/assumptions for example performance calculations . 316
T
...








Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.
Loading comments...