IEC 61158-4-2:2019
(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:2019 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 fourth edition cancels and replaces the third edition published in 2014 and constitutes a technical revision.
This edition includes the following significant technical changes with respect to the previous edition:
•clarifications of ControlNet object in 7.2;
•extensions and clarifications of TCP/IP interface object in 7.5;
•extensions and clarifications of Ethernet Link object in 7.6;
•clarifications of DeviceNet object in 7.7;
•extensions and clarifications of CCO object in 7.8;
•extensions and clarifications of DLR object in 7.9;
•extensions and clarifications of Port object in 7.11;
•addition of PRP/HSR Protocol and PRP/HSR Nodes Table objects in 7.12 and 7.13;
•extensions and clarifications of DLR protocol in Clause 10;
•addition of PRP/HSR protocol mapping in Clause 11;
•update of indicator behaviour in A.2.2 and A.2.4;
•miscellaneous editorial corrections.
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 - Éléments de type 2
La couche de liaison de données assure les communications de messagerie à contrainte de temps de base entre les appareils d'un environnement d'automatisation.
Ce protocole offre des opportunités de communication séquentielle et synchrone cyclique à toutes les entités de liaison de données participantes. Un accès planifié de premier plan est proposé à toutes les activités à contrainte de temps, un accès non planifié l'étant aux activités moins critiques.
Des transferts déterministes et synchronisés peuvent être assurés à des intervalles cycliques allant jusqu’à 1 ms et des appareils distants de 25 km. Cette performance peut être adaptée de manière dynamique et en ligne en reconfigurant les paramètres de la liaison locale sans interrompre le fonctionnement normal. De la même manière, des connexions DL et de nouveaux appareils peuvent être ajoutés ou retirés pendant le fonctionnement normal.
Ce protocole offre la possibilité de maintenir la synchronisation d'horloge d'une liaison étendue supérieure à 10 μs.
Ce protocole permet d'optimiser chaque opportunité d'accès en concaténant plusieurs DLSDU et DLPCI associés en une seule DLPDU, améliorant le transfert de données des entités de liaison de données qui émettent activement plusieurs flux de données.
La taille maximale du système est un nombre illimité de liaisons de 99 nœuds, comportant chacune 255 adresses DLSAP. Chaque liaison comporte un maximum de 224 homologues connexes et DLCEP d'éditeur.
General Information
Relations
Overview
IEC 61158-4-2:2019 - Industrial communication networks - Fieldbus specifications - Part 4-2 - is the international standard that defines the data-link layer protocol (Type 2 elements) for fieldbus systems. This fourth edition (2019) replaces the 2014 edition and specifies procedures for the timely transfer of data and control information between data-link user entities, the structure and encoding of DLPDUs (Data-Link Protocol Data Units) and their representation as physical interface data units. It formalizes media access, addressing, QoS and scheduling mechanisms used by Type 2 fieldbus implementations.
Key topics and technical requirements
- Data-link services: connected and connectionless transfer, queue maintenance, tag filtering, synchronization and event reporting.
- DLPDU and Lpacket structure: definitions for DLPDU components, preamble, delimiters, Lpackets and Frame Check Sequence (FCS) handling.
- Addressing and identifiers: MAC ID, generic and fixed tag addressing and DL-address structure.
- Media access & scheduling: Access Control Machine (ACM), moderator behavior, sending/receiving scheduled and unscheduled DLPDUs.
- Station management objects: standardized objects and attributes including ControlNet, DeviceNet, TCP/IP interface, Ethernet Link, CCO, DLR, Port and keeper objects.
- Redundancy and mapping: additions for PRP/HSR protocol and PRP/HSR node tables; PRP/HSR protocol mapping; DLR protocol extensions.
- Interoperability & PhL interface: DLL-to-physical-layer assumptions, data encoding rules and physical interface data units (PhIDUs).
- Quality of Service (QoS) and indicator behavior updates (A.2.2 / A.2.4) and other editorial and clarifying changes compared to the previous edition.
Applications and who uses this standard
IEC 61158-4-2 is used where deterministic, timely and interoperable fieldbus data-link services are required:
- Automation engineers and control system architects designing industrial networks and deterministic communications.
- Device manufacturers and embedded systems developers implementing fieldbus data-link firmware (DLPDU/Lpacket handling, MAC logic).
- Network integrators and system vendors deploying networks using ControlNet, DeviceNet, Ethernet Link, DLR, PRP/HSR and TCP/IP interfaces.
- Test laboratories and certification bodies verifying conformance to data-link layer specifications.
- OEMs and asset owners who require standardized interoperability, redundancy (PRP/HSR) and resilience in industrial communication networks.
Related standards
- Part of the IEC 61158 fieldbus series (other parts cover physical layers, station management and application mappings).
- References to industry technologies such as ControlNet, DeviceNet, Ethernet Link, DLR and PRP/HSR are incorporated into the data-link specification to enable practical protocol mappings and interoperability.
Keywords: IEC 61158-4-2:2019, fieldbus, data-link layer, DLPDU, Lpacket, ControlNet, DeviceNet, PRP, HSR, DLR, Ethernet, TCP/IP, industrial communication networks.
Standards Content (Sample)
IEC 61158-4-2 ®
Edition 4.0 2019-04
INTERNATIONAL
STANDARD
colour
inside
Industrial communication networks – Fieldbus specifications –
Part 4-2: Data-link layer protocol specification – Type 2 elements
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.
IEC Central Office Tel.: +41 22 919 02 11
3, rue de Varembé info@iec.ch
CH-1211 Geneva 20 www.iec.ch
Switzerland
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 corrigendum or an amendment might have been published.
IEC publications search - webstore.iec.ch/advsearchform Electropedia - www.electropedia.org
The advanced search enables to find IEC publications by a The world's leading online dictionary on electrotechnology,
variety of criteria (reference number, text, technical containing more than 22 000 terminological entries in English
committee,…). It also gives information on projects, replaced and French, with equivalent terms in 16 additional languages.
and withdrawn publications. Also known as the International Electrotechnical Vocabulary
(IEV) online.
IEC Just Published - webstore.iec.ch/justpublished
Stay up to date on all new IEC publications. Just Published IEC Glossary - std.iec.ch/glossary
details all new publications released. Available online and 67 000 electrotechnical terminology entries in English and
once a month by email. French extracted from the Terms and Definitions clause of
IEC publications issued since 2002. Some entries have been
IEC Customer Service Centre - webstore.iec.ch/csc collected from earlier publications of IEC TC 37, 77, 86 and
If you wish to give us your feedback on this publication or CISPR.
need further assistance, please contact the Customer Service
Centre: sales@iec.ch.
IEC 61158-4-2 ®
Edition 4.0 2019-04
INTERNATIONAL
STANDARD
colour
inside
Industrial communication networks – Fieldbus specifications –
Part 4-2: Data-link layer protocol specification – Type 2 elements
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
ICS 25.040.40; 35.100.20; 35.110 ISBN 978-2-8322-6772-1
– 2 – IEC 61158-4-2:2019 © IEC 2019
CONTENTS
FOREWORD . 15
INTRODUCTION . 17
1 Scope . 19
1.1 General . 19
1.2 Specifications . 19
1.3 Procedures . 19
1.4 Applicability . 20
1.5 Conformance . 20
2 Normative references . 20
3 Terms, definitions, symbols, abbreviated terms and conventions . 22
3.1 Reference model terms and definitions . 22
3.2 Service convention terms and definitions . 24
3.3 Common terms and definitions . 24
3.4 Additional Type 2 definitions . 25
3.5 Type 2 symbols and abbreviated terms . 33
3.6 Conventions for station management objects . 34
4 Overview of the data-link protocol . 35
4.1 General . 35
4.1.1 DLL architecture . 35
4.1.2 Access control machine (ACM) and scheduling support functions . 36
4.1.3 Connection-mode, connectionless-mode data transfer and DL service . 37
4.2 Services provided by the DL . 37
4.2.1 Overview . 37
4.2.2 QoS . 37
4.3 Structure and definition of DL-addresses . 38
4.3.1 General . 38
4.3.2 MAC ID address . 38
4.3.3 Generic tag address . 39
4.3.4 Fixed tag address . 39
4.4 Services assumed from the PhL . 40
4.4.1 General requirements . 40
4.4.2 Data encoding rules . 41
4.4.3 DLL to PhL interface . 41
4.5 Functional classes . 43
5 General structure and encoding of PhIDUs and DLPDUs and related elements of
procedure . 43
5.1 Overview . 43
5.2 Media access procedure . 43
5.3 DLPDU structure and encoding . 47
5.3.1 General . 47
5.3.2 DLPDU components . 47
5.3.3 Preamble . 47
5.3.4 Start and end delimiters . 47
5.3.5 DLPDU octets and ordering . 47
5.3.6 Source MAC ID . 48
5.3.7 Lpackets field . 48
5.3.8 Frame check sequence (FCS). 48
5.3.9 Null DLPDU . 51
5.3.10 Abort DLPDU . 51
5.4 Lpacket components . 51
5.4.1 General Lpacket structure . 51
5.4.2 Size . 51
5.4.3 Control . 52
5.4.4 Generic tag Lpackets . 52
5.4.5 Fixed tag Lpackets . 53
5.5 DLPDU procedures . 53
5.5.1 General . 53
5.5.2 Sending scheduled DLPDUs . 54
5.5.3 Sending unscheduled DLPDUs . 54
5.5.4 Receiving DLPDUs . 54
5.6 Summary of DLL support services and objects . 54
6 Specific DLPDU structure, encoding and procedures . 56
6.1 Modeling language . 56
6.1.1 State machine description . 56
6.1.2 Use of DLL- prefix . 57
6.1.3 Data types . 57
6.2 DLS user services . 58
6.2.1 General . 58
6.2.2 Connected mode and connectionless mode transfer service . 58
6.2.3 Queue maintenance service . 60
6.2.4 Tag filter service . 60
6.2.5 Link synchronization service . 61
6.2.6 Synchronized parameter change service . 61
6.2.7 Event reports service . 62
6.2.8 Bad FCS service . 63
6.2.9 Current moderator service . 63
6.2.10 Power up and online services . 64
6.2.11 Enable moderator service . 64
6.2.12 Listen only service . 64
6.3 Generic tag Lpacket . 64
6.3.1 General . 64
6.3.2 Structure of the generic-tag Lpacket . 65
6.3.3 Sending and receiving the generic-tag Lpacket . 65
6.4 Moderator Lpacket . 65
6.4.1 General . 65
6.4.2 Structure of the moderator Lpacket . 65
6.4.3 Sending and receiving the moderator Lpacket . 66
6.5 Time distribution Lpacket . 67
6.5.1 General . 67
6.5.2 Structure of the time distribution Lpacket . 67
6.5.3 Sending and receiving the time distribution Lpacket . 69
6.6 UCMM Lpacket . 69
6.6.1 General . 69
6.6.2 Structure of the UCMM Lpacket . 69
6.6.3 Sending and receiving the UCMM Lpacket . 69
– 4 – IEC 61158-4-2:2019 © IEC 2019
6.7 Keeper UCMM Lpacket . 69
6.7.1 General . 69
6.7.2 Structure of the Keeper UCMM Lpacket . 70
6.7.3 Sending and receiving the Keeper UCMM Lpacket . 70
6.8 TUI Lpacket . 70
6.8.1 General . 70
6.8.2 Structure of the TUI Lpacket . 70
6.8.3 Sending and receiving the TUI Lpacket . 71
6.9 Link parameters Lpacket and tMinus Lpacket . 71
6.9.1 General . 71
6.9.2 Structure of link parameters and tMinus Lpackets . 72
6.9.3 Sending and receiving the tMinus and Link parameters Lpackets . 72
6.10 I’m-alive Lpacket . 73
6.10.1 General . 73
6.10.2 Structure or the I’m-alive Lpacket . 73
6.10.3 Sending and receiving I’m Alive . 73
6.10.4 I’m alive state processing . 73
6.11 Ping Lpackets . 74
6.11.1 General . 74
6.11.2 Structure of the ping Lpackets . 75
6.11.3 Sending and receiving the ping Lpackets . 75
6.12 WAMI Lpacket . 76
6.12.1 General . 76
6.12.2 Structure of the WAMI Lpacket . 76
6.12.3 Sending and receiving the WAMI Lpacket . 76
6.13 Debug Lpacket . 76
6.14 IP Lpacket . 77
6.15 Ethernet Lpacket . 77
7 Objects for station management . 77
7.1 General . 77
7.2 ControlNet™ object . 79
7.2.1 Overview . 79
7.2.2 Class attributes . 79
7.2.3 Instance attributes . 79
7.2.4 Common services . 87
7.2.5 Class specific services . 88
7.2.6 Behavior . 89
7.2.7 Module status indicator . 89
7.3 Keeper object . 90
7.3.1 Overview . 90
7.3.2 Revision history . 90
7.3.3 Class attributes . 90
7.3.4 Instance attributes . 90
7.3.5 Common services . 98
7.3.6 Class specific services . 99
7.3.7 Service error codes . 105
7.3.8 Behavior . 106
7.3.9 Miscellaneous notes . 107
7.3.10 Keeper power up sequence . 108
7.4 Scheduling object . 113
7.4.1 Overview . 113
7.4.2 Class attributes . 114
7.4.3 Instance attributes . 114
7.4.4 Common services . 115
7.4.5 Class specific services . 117
7.4.6 Typical scheduling session . 123
7.5 TCP/IP Interface object . 124
7.5.1 Overview . 124
7.5.2 Revision history . 124
7.5.3 Class attributes . 125
7.5.4 Instance attributes . 125
7.5.5 Common services . 139
7.5.6 Class specific services . 141
7.5.7 Behavior . 142
7.5.8 Address Conflict Detection (ACD) . 144
7.6 Ethernet link object . 150
7.6.1 Overview . 150
7.6.2 Revision history . 150
7.6.3 Class attributes . 150
7.6.4 Instance attributes . 151
7.6.5 Common services . 161
7.6.6 Class specific services . 163
7.6.7 Behavior . 163
7.7 DeviceNet™ object . 164
7.7.1 Overview . 164
7.7.2 Revision history . 164
7.7.3 Class attributes . 165
7.7.4 Instance attributes . 165
7.7.5 Common services . 172
7.7.6 Class specific services . 173
7.8 Connection configuration object (CCO) . 173
7.8.1 Overview . 173
7.8.2 Revision history . 174
7.8.3 Class attributes . 174
7.8.4 Instance attributes . 176
7.8.5 Connection Configuration Object change control . 185
7.8.6 Common services . 185
7.8.7 Class specific services . 192
7.8.8 Behavior . 195
7.9 DLR object . 196
7.9.1 Overview . 196
7.9.2 Revision history . 196
7.9.3 Class attributes . 197
7.9.4 Instance attributes . 197
7.9.5 Common services . 208
7.9.6 Class specific services . 212
7.10 QoS object . 213
7.10.1 Overview . 213
– 6 – IEC 61158-4-2:2019 © IEC 2019
7.10.2 Revision History . 213
7.10.3 Class attributes . 213
7.10.4 Instance Attributes . 214
7.10.5 Common services . 215
7.10.6 Get_Attributes_All response (class level) . 216
7.11 Port object . 216
7.11.1 Overview . 216
7.11.2 Revision History . 216
7.11.3 Class attributes . 217
7.11.4 Instance attributes . 217
7.11.5 Common services . 223
7.12 PRP/HSR Protocol object . 224
7.12.1 Overview . 224
7.12.2 Revision history . 224
7.12.3 Class attributes . 225
7.12.4 Instance attributes . 225
7.12.5 Common Services . 232
7.13 PRP/HSR Nodes Table object . 234
7.13.1 Overview . 234
7.13.2 Revision history . 234
7.13.3 Class attributes . 234
7.13.4 Instance attributes . 234
7.13.5 Common services . 237
8 Other DLE elements of procedure . 237
8.1 Network attachment monitor (NAM). 237
8.1.1 General . 237
8.1.2 Default parameters . 238
8.1.3 Auto-addressing . 239
8.1.4 Valid MAC IDs . 239
8.1.5 State machine description . 239
8.2 Calculating link parameters . 245
8.2.1 Link parameters . 245
8.2.2 Conditions affecting link parameters . 246
8.2.3 Moderator change. 246
8.2.4 NUT timing . 246
8.2.5 Slot timing . 248
8.2.6 Blanking . 248
8.2.7 Example implementation . 249
9 Detailed specification of DL components . 253
9.1 General . 253
9.2 Access control machine (ACM) . 253
9.3 TxLLC . 273
9.4 RxLLC . 277
9.5 Transmit machine (TxM) . 281
9.6 Receive machine (RxM) . 285
9.7 Serializer . 291
9.8 Deserializer . 293
9.8.1 Octet construction . 293
9.8.2 FCS checking . 293
9.8.3 End of DLPDU processing . 294
9.9 DLL management . 294
10 Device Level Ring (DLR) protocol . 296
10.1 General . 296
10.2 Support for Multiple DLR Ring Pairs . 296
10.3 Supported topologies . 297
10.4 Overview of DLR operation . 298
10.4.1 Normal operation . 298
10.4.2 Link failures . 300
10.5 Classes of DLR implementation . 301
10.6 DLR behavior . 302
10.6.1 DLR variables . 302
10.6.2 Ring supervisor . 302
10.6.3 Ring node . 305
10.6.4 Sign on process . 306
10.6.5 Neighbor check process . 307
10.7 Implementation requirements . 307
10.7.1 Embedded switch requirements and recommendations . 307
10.7.2 DLR implementation requirements . 308
10.7.3 IEC 61588 and CP 2/2.1 considerations . 309
10.7.4 IEEE 802.1D/IEEE 802.1Q STP/RSTP/MSTP considerations . 309
10.8 Using non-DLR nodes in the ring network . 309
10.8.1 General considerations . 309
10.8.2 Non-DLR end devices . 310
10.8.3 Non-DLR switches . 310
10.9 Redundant gateway devices on DLR network . 313
10.9.1 General . 313
10.9.2 Supported topologies . 313
10.9.3 Redundant gateway capable device . 314
10.9.4 Redundant gateway device behavior . 314
10.10 DLR messages . 317
10.10.1 General . 317
10.10.2 Common frame header . 318
10.10.3 Beacon frame . 319
10.10.4 Neighbor_Check request . 319
10.10.5 Neighbor_Check_response . 320
10.10.6 Link_Status/Neighbor_Status . 320
10.10.7 Locate_Fault. 321
10.10.8 Announce . 321
10.10.9 Sign_On . 321
10.10.10 Advertise . 322
10.10.11 Flush_Tables . 322
10.10.12 Learning_Update . 323
10.11 State diagrams and state-event-action matrices . 323
10.11.1 Beacon-based ring node . 323
10.11.2 Announce-based ring node . 330
10.11.3 Ring supervisor . 334
10.11.4 Redundant gateway . 349
– 8 – IEC 61158-4-2:2019 © IEC 2019
10.12 Performance analysis . 354
10.12.1 General . 354
10.12.2 Redundant gateway switchover performance . 358
11 PRP and HSR redundancy protocols . 359
11.1 General . 359
11.2 PRP overview . 360
11.2.1 General . 360
11.2.2 Address Conflict Detection (ACD) . 361
11.3 HSR overview . 362
Annex A (normative) Indicators and switches . 364
A.1 Purpose . 364
A.2 Indicators . 364
A.2.1 General indicator requirements . 364
A.2.2 Common indicator requirements . 364
A.2.3 Fieldbus specific indicator requirements – option 1 . 366
A.2.4 Fieldbus specific indicator requirements – option 2 . 370
A.2.5 Fieldbus specific indicator requirements – option 3 . 374
A.3 Switches . 378
A.3.1 Common switch requirements . 378
A.3.2 Fieldbus specific switch requirements – option 1 . 378
A.3.3 Fieldbus specific switch requirements – option 2 . 378
A.3.4 Fieldbus specific switch requirements – option 3 . 379
Bibliography . 380
Figure 1 – Data-link layer internal architecture . 36
Figure 2 – Relationships of DLSAPs, DLSAP-addresses, and group DL-addresses . 38
Figure 3 – Basic structure of a MAC ID address . 39
Figure 4 – Basic structure of a generic tag address . 39
Figure 5 – Basic structure of a fixed tag address . 39
Figure 6 – M_symbols and Manchester encoding at 5 MHz . 41
Figure 7 – NUT structure . 44
Figure 8 – Media access during scheduled time . 45
Figure 9 – Media access during unscheduled time . 46
Figure 10 – DLPDU format . 47
Figure 11 – Aborting a DLPDU during transmission . 51
Figure 12 – Lpacket format . 51
Figure 13 – Generic tag Lpacket format . 52
Figure 14 – Fixed tag Lpacket format . 53
Figure 15 – Goodness parameter of TimeDist_Lpacket . 68
Figure 16 – Example I’m alive processing algorithm . 74
Figure 17 – Keeper CRC algorithm . 96
Figure 18 – Keeper object power-up state diagram . 109
Figure 19 – Keeper object operating state diagram . 110
Figure 20 – Synchronized network change processing . 113
Figure 21 – State transition diagram for TCP/IP Interface object . 143
Figure 22 – State transition diagram for TCP/IP Interface object . 144
Figure 23 – ACD Behavior . 146
Figure 24 – State transition diagram for Ethernet Link object . 164
Figure 25 – Connection configuration object edit flowchart . 196
Figure 26 – NAM state machine . 238
Figure 27 – Devices with Multiple DLR Ring Pairs . 297
Figure 28 – DLR rings connected to switches. 298
Figure 29 – Normal operation of a DLR network . 299
Figure 30 – Beacon and Announce frames . 299
Figure 31 – Link failure . 300
Figure 32 – Network reconfiguration after link failure . 301
Figure 33 – Neighbor Check process . 307
Figur
...
IEC 61158-4-2 ®
Edition 4.0 2019-04
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
colour
inside
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 –
Élé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é info@iec.ch
CH-1211 Geneva 20 www.iec.ch
Switzerland
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 corrigendum or an amendment might have been published.
IEC publications search - webstore.iec.ch/advsearchform Electropedia - www.electropedia.org
The advanced search enables to find IEC publications by a The world's leading online dictionary on electrotechnology,
variety of criteria (reference number, text, technical containing more than 22 000 terminological entries in English
committee,…). It also gives information on projects, replaced and French, with equivalent terms in 16 additional languages.
and withdrawn publications. Also known as the International Electrotechnical Vocabulary
(IEV) online.
IEC Just Published - webstore.iec.ch/justpublished
Stay up to date on all new IEC publications. Just Published IEC Glossary - std.iec.ch/glossary
details all new publications released. Available online and 67 000 electrotechnical terminology entries in English and
once a month by email. French extracted from the Terms and Definitions clause of
IEC publications issued since 2002. Some entries have been
IEC Customer Service Centre - webstore.iec.ch/csc collected from earlier publications of IEC TC 37, 77, 86 and
If you wish to give us your feedback on this publication or CISPR.
need further assistance, please contact the Customer Service
Centre: sales@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é.
Recherche de publications IEC - Electropedia - www.electropedia.org
webstore.iec.ch/advsearchform Le premier dictionnaire d'électrotechnologie en ligne au
La recherche avancée permet de trouver des publications IEC monde, avec plus de 22 000 articles terminologiques en
en utilisant différents critères (numéro de référence, texte, anglais et en français, ainsi que les termes équivalents dans
comité d’études,…). Elle donne aussi des informations sur les 16 langues additionnelles. Egalement appelé Vocabulaire
projets et les publications remplacées ou retirées. Electrotechnique International (IEV) en ligne.
IEC Just Published - webstore.iec.ch/justpublished Glossaire IEC - std.iec.ch/glossary
Restez informé sur les nouvelles publications IEC. Just 67 000 entrées terminologiques électrotechniques, en anglais
Published détaille les nouvelles publications parues. et en français, extraites des articles Termes et Définitions des
Disponible en ligne et une fois par mois par email. publications IEC parues depuis 2002. Plus certaines entrées
antérieures extraites des publications des CE 37, 77, 86 et
Service Clients - webstore.iec.ch/csc CISPR de l'IEC.
Si vous désirez nous donner des commentaires sur cette
publication ou si vous avez des questions contactez-nous:
sales@iec.ch.
IEC 61158-4-2 ®
Edition 4.0 2019-04
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
colour
inside
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 –
Éléments de type 2
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
COMMISSION
ELECTROTECHNIQUE
INTERNATIONALE
ICS 25.040.40; 35.100.20; 35.110 ISBN 978-2-8322-9134-4
– 2 – IEC 61158-4-2:2019 © IEC 2019
CONTENTS
FOREWORD . 15
INTRODUCTION . 17
1 Scope . 19
1.1 General . 19
1.2 Specifications . 19
1.3 Procedures . 19
1.4 Applicability . 20
1.5 Conformance . 20
2 Normative references . 20
3 Terms, definitions, symbols, abbreviated terms and conventions . 22
3.1 Reference model terms and definitions . 22
3.2 Service convention terms and definitions . 24
3.3 Common terms and definitions . 24
3.4 Additional Type 2 definitions . 25
3.5 Type 2 symbols and abbreviated terms . 33
3.6 Conventions for station management objects . 34
4 Overview of the data-link protocol . 35
4.1 General . 35
4.1.1 DLL architecture . 35
4.1.2 Access control machine (ACM) and scheduling support functions . 36
4.1.3 Connection-mode, connectionless-mode data transfer and DL service . 37
4.2 Services provided by the DL . 37
4.2.1 Overview . 37
4.2.2 QoS . 37
4.3 Structure and definition of DL-addresses . 38
4.3.1 General . 38
4.3.2 MAC ID address . 38
4.3.3 Generic tag address . 39
4.3.4 Fixed tag address . 39
4.4 Services assumed from the PhL . 40
4.4.1 General requirements . 40
4.4.2 Data encoding rules . 41
4.4.3 DLL to PhL interface . 41
4.5 Functional classes . 43
5 General structure and encoding of PhIDUs and DLPDUs and related elements of
procedure . 43
5.1 Overview . 43
5.2 Media access procedure . 43
5.3 DLPDU structure and encoding . 47
5.3.1 General . 47
5.3.2 DLPDU components . 47
5.3.3 Preamble . 47
5.3.4 Start and end delimiters . 47
5.3.5 DLPDU octets and ordering . 47
5.3.6 Source MAC ID . 48
5.3.7 Lpackets field . 48
5.3.8 Frame check sequence (FCS). 48
5.3.9 Null DLPDU . 51
5.3.10 Abort DLPDU . 51
5.4 Lpacket components . 51
5.4.1 General Lpacket structure . 51
5.4.2 Size . 51
5.4.3 Control . 52
5.4.4 Generic tag Lpackets . 52
5.4.5 Fixed tag Lpackets . 53
5.5 DLPDU procedures . 53
5.5.1 General . 53
5.5.2 Sending scheduled DLPDUs . 54
5.5.3 Sending unscheduled DLPDUs . 54
5.5.4 Receiving DLPDUs . 54
5.6 Summary of DLL support services and objects . 54
6 Specific DLPDU structure, encoding and procedures . 56
6.1 Modeling language . 56
6.1.1 State machine description . 56
6.1.2 Use of DLL- prefix . 57
6.1.3 Data types . 57
6.2 DLS user services . 58
6.2.1 General . 58
6.2.2 Connected mode and connectionless mode transfer service . 58
6.2.3 Queue maintenance service . 60
6.2.4 Tag filter service . 60
6.2.5 Link synchronization service . 61
6.2.6 Synchronized parameter change service . 61
6.2.7 Event reports service . 62
6.2.8 Bad FCS service . 63
6.2.9 Current moderator service . 63
6.2.10 Power up and online services . 64
6.2.11 Enable moderator service . 64
6.2.12 Listen only service . 64
6.3 Generic tag Lpacket . 64
6.3.1 General . 64
6.3.2 Structure of the generic-tag Lpacket . 65
6.3.3 Sending and receiving the generic-tag Lpacket . 65
6.4 Moderator Lpacket . 65
6.4.1 General . 65
6.4.2 Structure of the moderator Lpacket . 65
6.4.3 Sending and receiving the moderator Lpacket . 66
6.5 Time distribution Lpacket . 67
6.5.1 General . 67
6.5.2 Structure of the time distribution Lpacket . 67
6.5.3 Sending and receiving the time distribution Lpacket . 69
6.6 UCMM Lpacket . 69
6.6.1 General . 69
6.6.2 Structure of the UCMM Lpacket . 69
6.6.3 Sending and receiving the UCMM Lpacket . 69
– 4 – IEC 61158-4-2:2019 © IEC 2019
6.7 Keeper UCMM Lpacket . 69
6.7.1 General . 69
6.7.2 Structure of the Keeper UCMM Lpacket . 70
6.7.3 Sending and receiving the Keeper UCMM Lpacket . 70
6.8 TUI Lpacket . 70
6.8.1 General . 70
6.8.2 Structure of the TUI Lpacket . 70
6.8.3 Sending and receiving the TUI Lpacket . 71
6.9 Link parameters Lpacket and tMinus Lpacket . 71
6.9.1 General . 71
6.9.2 Structure of link parameters and tMinus Lpackets . 72
6.9.3 Sending and receiving the tMinus and Link parameters Lpackets . 72
6.10 I’m-alive Lpacket . 73
6.10.1 General . 73
6.10.2 Structure or the I’m-alive Lpacket . 73
6.10.3 Sending and receiving I’m Alive . 73
6.10.4 I’m alive state processing . 73
6.11 Ping Lpackets . 74
6.11.1 General . 74
6.11.2 Structure of the ping Lpackets . 75
6.11.3 Sending and receiving the ping Lpackets . 75
6.12 WAMI Lpacket . 76
6.12.1 General . 76
6.12.2 Structure of the WAMI Lpacket . 76
6.12.3 Sending and receiving the WAMI Lpacket . 76
6.13 Debug Lpacket . 76
6.14 IP Lpacket . 77
6.15 Ethernet Lpacket . 77
7 Objects for station management . 77
7.1 General . 77
7.2 ControlNet™ object . 79
7.2.1 Overview . 79
7.2.2 Class attributes . 79
7.2.3 Instance attributes . 79
7.2.4 Common services . 87
7.2.5 Class specific services . 88
7.2.6 Behavior . 89
7.2.7 Module status indicator . 89
7.3 Keeper object . 90
7.3.1 Overview . 90
7.3.2 Revision history . 90
7.3.3 Class attributes . 90
7.3.4 Instance attributes . 90
7.3.5 Common services . 98
7.3.6 Class specific services . 99
7.3.7 Service error codes . 105
7.3.8 Behavior . 106
7.3.9 Miscellaneous notes . 107
7.3.10 Keeper power up sequence . 108
7.4 Scheduling object . 113
7.4.1 Overview . 113
7.4.2 Class attributes . 114
7.4.3 Instance attributes . 114
7.4.4 Common services . 115
7.4.5 Class specific services . 117
7.4.6 Typical scheduling session . 123
7.5 TCP/IP Interface object . 124
7.5.1 Overview . 124
7.5.2 Revision history . 124
7.5.3 Class attributes . 125
7.5.4 Instance attributes . 125
7.5.5 Common services . 139
7.5.6 Class specific services . 141
7.5.7 Behavior . 142
7.5.8 Address Conflict Detection (ACD) . 144
7.6 Ethernet link object . 150
7.6.1 Overview . 150
7.6.2 Revision history . 150
7.6.3 Class attributes . 150
7.6.4 Instance attributes . 151
7.6.5 Common services . 161
7.6.6 Class specific services . 163
7.6.7 Behavior . 163
7.7 DeviceNet™ object . 164
7.7.1 Overview . 164
7.7.2 Revision history . 164
7.7.3 Class attributes . 165
7.7.4 Instance attributes . 165
7.7.5 Common services . 172
7.7.6 Class specific services . 173
7.8 Connection configuration object (CCO) . 173
7.8.1 Overview . 173
7.8.2 Revision history . 174
7.8.3 Class attributes . 174
7.8.4 Instance attributes . 176
7.8.5 Connection Configuration Object change control . 185
7.8.6 Common services . 185
7.8.7 Class specific services . 192
7.8.8 Behavior . 195
7.9 DLR object . 196
7.9.1 Overview . 196
7.9.2 Revision history . 196
7.9.3 Class attributes . 197
7.9.4 Instance attributes . 197
7.9.5 Common services . 208
7.9.6 Class specific services . 212
7.10 QoS object . 213
7.10.1 Overview . 213
– 6 – IEC 61158-4-2:2019 © IEC 2019
7.10.2 Revision History . 213
7.10.3 Class attributes . 213
7.10.4 Instance Attributes . 214
7.10.5 Common services . 215
7.10.6 Get_Attributes_All response (class level) . 216
7.11 Port object . 216
7.11.1 Overview . 216
7.11.2 Revision History . 216
7.11.3 Class attributes . 217
7.11.4 Instance attributes . 217
7.11.5 Common services . 223
7.12 PRP/HSR Protocol object . 224
7.12.1 Overview . 224
7.12.2 Revision history . 224
7.12.3 Class attributes . 225
7.12.4 Instance attributes . 225
7.12.5 Common Services . 232
7.13 PRP/HSR Nodes Table object . 234
7.13.1 Overview . 234
7.13.2 Revision history . 234
7.13.3 Class attributes . 234
7.13.4 Instance attributes . 234
7.13.5 Common services . 237
8 Other DLE elements of procedure . 237
8.1 Network attachment monitor (NAM). 237
8.1.1 General . 237
8.1.2 Default parameters . 238
8.1.3 Auto-addressing . 239
8.1.4 Valid MAC IDs . 239
8.1.5 State machine description . 239
8.2 Calculating link parameters . 245
8.2.1 Link parameters . 245
8.2.2 Conditions affecting link parameters . 246
8.2.3 Moderator change. 246
8.2.4 NUT timing . 246
8.2.5 Slot timing . 248
8.2.6 Blanking . 248
8.2.7 Example implementation . 249
9 Detailed specification of DL components . 253
9.1 General . 253
9.2 Access control machine (ACM) . 253
9.3 TxLLC . 273
9.4 RxLLC . 277
9.5 Transmit machine (TxM) . 281
9.6 Receive machine (RxM) . 285
9.7 Serializer . 291
9.8 Deserializer . 293
9.8.1 Octet construction . 293
9.8.2 FCS checking . 293
9.8.3 End of DLPDU processing . 294
9.9 DLL management . 294
10 Device Level Ring (DLR) protocol . 296
10.1 General . 296
10.2 Support for Multiple DLR Ring Pairs . 296
10.3 Supported topologies . 297
10.4 Overview of DLR operation . 298
10.4.1 Normal operation . 298
10.4.2 Link failures . 300
10.5 Classes of DLR implementation . 301
10.6 DLR behavior . 302
10.6.1 DLR variables . 302
10.6.2 Ring supervisor . 302
10.6.3 Ring node . 305
10.6.4 Sign on process . 306
10.6.5 Neighbor check process . 307
10.7 Implementation requirements . 307
10.7.1 Embedded switch requirements and recommendations . 307
10.7.2 DLR implementation requirements . 308
10.7.3 IEC 61588 and CP 2/2.1 considerations . 309
10.7.4 IEEE 802.1D/IEEE 802.1Q STP/RSTP/MSTP considerations . 309
10.8 Using non-DLR nodes in the ring network . 309
10.8.1 General considerations . 309
10.8.2 Non-DLR end devices . 310
10.8.3 Non-DLR switches . 310
10.9 Redundant gateway devices on DLR network . 313
10.9.1 General . 313
10.9.2 Supported topologies . 313
10.9.3 Redundant gateway capable device . 314
10.9.4 Redundant gateway device behavior . 314
10.10 DLR messages . 317
10.10.1 General . 317
10.10.2 Common frame header . 318
10.10.3 Beacon frame . 319
10.10.4 Neighbor_Check request . 319
10.10.5 Neighbor_Check_response . 320
10.10.6 Link_Status/Neighbor_Status . 320
10.10.7 Locate_Fault. 321
10.10.8 Announce . 321
10.10.9 Sign_On . 321
10.10.10 Advertise . 322
10.10.11 Flush_Tables . 322
10.10.12 Learning_Update . 323
10.11 State diagrams and state-event-action matrices . 323
10.11.1 Beacon-based ring node . 323
10.11.2 Announce-based ring node . 330
10.11.3 Ring supervisor . 334
10.11.4 Redundant gateway . 349
– 8 – IEC 61158-4-2:2019 © IEC 2019
10.12 Performance analysis . 354
10.12.1 General . 354
10.12.2 Redundant gateway switchover performance . 358
11 PRP and HSR redundancy protocols . 359
11.1 General . 359
11.2 PRP overview . 360
11.2.1 General . 360
11.2.2 Address Conflict Detection (ACD) . 361
11.3 HSR overview . 362
Annex A (normative) Indicators and switches . 364
A.1 Purpose . 364
A.2 Indicators . 364
A.2.1 General indicator requirements . 364
A.2.2 Common indicator requirements . 364
A.2.3 Fieldbus specific indicator requirements – option 1 . 366
A.2.4 Fieldbus specific indicator requirements – option 2 . 370
A.2.5 Fieldbus specific indicator requirements – option 3 . 374
A.3 Switches . 378
A.3.1 Common switch requirements . 378
A.3.2 Fieldbus specific switch requirements – option 1 . 378
A.3.3 Fieldbus specific switch requirements – option 2 . 378
A.3.4 Fieldbus specific switch requirements – option 3 . 379
Bibliography . 380
Figure 1 – Data-link layer internal architecture . 36
Figure 2 – Relationships of DLSAPs, DLSAP-addresses, and group DL-addresses . 38
Figure 3 – Basic structure of a MAC ID address . 39
Figure 4 – Basic structure of a generic tag address . 39
Figure 5 – Basic structure of a fixed tag address . 39
Figure 6 – M_symbols and Manchester encoding at 5 MHz . 41
Figure 7 – NUT structure . 44
Figure 8 – Media access during scheduled time . 45
Figure 9 – Media access during unscheduled time . 46
Figure 10 – DLPDU format .
...
Frequently Asked Questions
IEC 61158-4-2:2019 is a standard published by the International Electrotechnical Commission (IEC). Its full title is "Industrial communication networks - Fieldbus specifications - Part 4-2: Data-link layer protocol specification - Type 2 elements". This standard covers: IEC 61158-4-2:2019 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 fourth edition cancels and replaces the third edition published in 2014 and constitutes a technical revision. This edition includes the following significant technical changes with respect to the previous edition: •clarifications of ControlNet object in 7.2; •extensions and clarifications of TCP/IP interface object in 7.5; •extensions and clarifications of Ethernet Link object in 7.6; •clarifications of DeviceNet object in 7.7; •extensions and clarifications of CCO object in 7.8; •extensions and clarifications of DLR object in 7.9; •extensions and clarifications of Port object in 7.11; •addition of PRP/HSR Protocol and PRP/HSR Nodes Table objects in 7.12 and 7.13; •extensions and clarifications of DLR protocol in Clause 10; •addition of PRP/HSR protocol mapping in Clause 11; •update of indicator behaviour in A.2.2 and A.2.4; •miscellaneous editorial corrections.
IEC 61158-4-2:2019 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 fourth edition cancels and replaces the third edition published in 2014 and constitutes a technical revision. This edition includes the following significant technical changes with respect to the previous edition: •clarifications of ControlNet object in 7.2; •extensions and clarifications of TCP/IP interface object in 7.5; •extensions and clarifications of Ethernet Link object in 7.6; •clarifications of DeviceNet object in 7.7; •extensions and clarifications of CCO object in 7.8; •extensions and clarifications of DLR object in 7.9; •extensions and clarifications of Port object in 7.11; •addition of PRP/HSR Protocol and PRP/HSR Nodes Table objects in 7.12 and 7.13; •extensions and clarifications of DLR protocol in Clause 10; •addition of PRP/HSR protocol mapping in Clause 11; •update of indicator behaviour in A.2.2 and A.2.4; •miscellaneous editorial corrections.
IEC 61158-4-2:2019 is classified under the following ICS (International Classification for Standards) categories: 25.040.40 - Industrial process measurement and control; 35.100.20 - Data link layer; 35.110 - Networking. The ICS classification helps identify the subject area and facilitates finding related standards.
IEC 61158-4-2:2019 has the following relationships with other standards: It is inter standard links to IEC 61158-4-2:2014, IEC 61158-4-2:2023. Understanding these relationships helps ensure you are using the most current and applicable version of the standard.
You can purchase IEC 61158-4-2:2019 directly from iTeh Standards. The document is available in PDF format and is delivered instantly after payment. Add the standard to your cart and complete the secure checkout process. iTeh Standards is an authorized distributor of IEC standards.










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...