Industrial communication networks - Fieldbus specifications - Part 4-12: Data-link layer protocol specification - Type 12 elements (IEC 61158-4-12:2019)

The data-link layer provides basic time-critical messaging communications between devices in an automation environment. This protocol provides communication opportunities to all participating data- link entities a) in a synchronously-starting cyclic manner, and b) in a cyclic or acyclic asynchronous manner, as requested each cycle by each of those data-link entities. Thus this protocol can be characterized as one which provides cyclic and acyclic access asynchronously but with a synchronous restart of each cycle.

Industrielle Kommunikationsnetze - Feldbusse - Teil 4-12: Protokollspezifikation des Data Link Layer (Sicherungsschicht) - Typ 12-Elemente (IEC 61158-4-12:2019)

Réseaux de communication industriels - Spécifications des bus de terrain - Partie 4-12: Spécification du protocole de la couche liaison de données - Éléments de type 12 (IEC 61158-4-12:2019)

L'IEC 61158-4-12:2019 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 à toutes les entités de liaison de données participantes
a) de manière cyclique et synchrone, et
b) de manière cyclique ou acyclique asynchrone, comme demandé par chaque cycle de chacune de ces entités de liaison de données.
Par conséquent, ce protocole peut se caractériser comme assurant un accès cyclique et acyclique asynchrone, mais avec un redémarrage synchrone de chaque cycle.

Industrijska komunikacijska omrežja - Specifikacije za procesna vodila - 4-12. del: Specifikacija protokola na ravni podatkovnih povezav - Elementi tipa 12 (IEC 61158-4-12:2019)

Nivo podatkovnih povezav omogoča osnovne časovno kritične sporočilne komunikacije med napravami v avtomatizacijskem okolju. Ta protokol omogoča komunikacijske priložnosti vsem sodelujočim entitetam podatkovnih povezav: a) na cikličen način s sinhronim začetkom in b) na cikličen ali necikličen asinhroni način, kot posamezne entitete podatkovnih povezav zahtevajo v vsakem ciklu. Tako lahko ta protokol opredelimo kot protokol, ki asinhrono omogoča cikličen in acikličen dostop s sinhronim ponovnim zagonom vsakega cikla.

General Information

Status
Published
Publication Date
10-Oct-2019
Current Stage
6060 - National Implementation/Publication (Adopted Project)
Start Date
01-Jul-2019
Due Date
05-Sep-2019
Completion Date
11-Oct-2019

Relations

Buy Standard

Standard
EN IEC 61158-4-12:2019 - BARVE
English language
145 pages
sale 10% off
Preview
sale 10% off
Preview
e-Library read for
1 day

Standards Content (Sample)

SLOVENSKI STANDARD
SIST EN IEC 61158-4-12:2019
01-november-2019
Nadomešča:
SIST EN 61158-4-12:2015
Industrijska komunikacijska omrežja - Specifikacije za procesna vodila - 4-12. del:
Specifikacija protokola na ravni podatkovnih povezav - Elementi tipa 12 (IEC 61158
-4-12:2019)
Industrial communication networks - Fieldbus specifications - Part 4-12: Data-link layer
protocol specification - Type 12 elements (IEC 61158-4-12:2019)
Industrielle Kommunikationsnetze - Feldbusse - Teil 4-12: Protokollspezifikation des
Data Link Layer (Sicherungsschicht) - Typ 12-Elemente (IEC 61158-4-12:2019)
Réseaux de communication industriels - Spécifications des bus de terrain - Partie 4-12:
Spécification du protocole de la couche liaison de données - Éléments de type 12 (IEC
61158-4-12:2019)
Ta slovenski standard je istoveten z: EN IEC 61158-4-12:2019
ICS:
25.040.40 Merjenje in krmiljenje Industrial process
industrijskih postopkov measurement and control
35.100.20 Podatkovni povezovalni sloj Data link layer
35.110 Omreževanje Networking
SIST EN IEC 61158-4-12:2019 en,fr,de
2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.

---------------------- Page: 1 ----------------------
SIST EN IEC 61158-4-12:2019

---------------------- Page: 2 ----------------------
SIST EN IEC 61158-4-12:2019


EUROPEAN STANDARD EN IEC 61158-4-12

NORME EUROPÉENNE

EUROPÄISCHE NORM
June 2019
Supersedes EN 61158-4-12:2014
ICS 25.040.40; 35.100.20; 35.110
English Version
Industrial communication networks - Fieldbus specifications -
Part 4-12: Data-link layer protocol specification - Type 12
elements
(IEC 61158-4-12:2019)
Réseaux de communication industriels - Spécifications des Industrielle Kommunikationsnetze - Feldbusse - Teil 4-12:
bus de terrain - Partie 4-12: Spécification du protocole de la Protokollspezifikation des Data Link Layer
couche liaison de données - Éléments de type 12 (Sicherungsschicht) - Typ 12-Elemente
(IEC 61158-4-12:2019) (IEC 61158-4-12:2019)
This European Standard was approved by CENELEC on 2019-05-23. CENELEC members are bound to comply with the CEN/CENELEC
Internal Regulations which stipulate the conditions for giving this European Standard the status of a national standard without any alteration.
Up-to-date lists and bibliographical references concerning such national standards may be obtained on application to the CEN-CENELEC
Management Centre or to any CENELEC member.
This European Standard exists in three official versions (English, French, German). A version in any other language made by translation
under the responsibility of a CENELEC member into its own language and notified to the CEN-CENELEC Management Centre has the
same status as the official versions.
CENELEC members are the national electrotechnical committees of Austria, Belgium, Bulgaria, Croatia, Cyprus, the Czech Republic,
Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, the
Netherlands, Norway, Poland, Portugal, Republic of North Macedonia, Romania, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland,
Turkey and the United Kingdom.



European Committee for Electrotechnical Standardization
Comité Européen de Normalisation Electrotechnique
Europäisches Komitee für Elektrotechnische Normung
CEN-CENELEC Management Centre: Rue de la Science 23, B-1040 Brussels
© 2019 CENELEC All rights of exploitation in any form and by any means reserved worldwide for CENELEC Members.
 Ref. No. EN IEC 61158-4-12:2019 E

---------------------- Page: 3 ----------------------
SIST EN IEC 61158-4-12:2019
EN IEC 61158-4-12:2019 (E)
European foreword
The text of document 65C/946/FDIS, future edition 4 of IEC 61158-4-12, prepared by SC 65C
"Industrial networks" of IEC/TC 65 "Industrial-process measurement, control and automation" was
submitted to the IEC-CENELEC parallel vote and approved by CENELEC as EN IEC 61158-4-
12:2019.
The following dates are fixed:
• latest date by which the document has to be implemented at national (dop) 2020-02-23
level by publication of an identical national standard or by endorsement
• latest date by which the national standards conflicting with the (dow) 2022-05-23
document have to be withdrawn

This document supersedes EN 61158-4-12:2014.
Attention is drawn to the possibility that some of the elements of this document may be the subject of
patent rights. CENELEC shall not be held responsible for identifying any or all such patent rights.
Endorsement notice
The text of the International Standard IEC 61158-4-12:2019 was approved by CENELEC as a
European Standard without any modification.
In the official version, for Bibliography, the following notes have to be added for the standards
indicated:
IEC 61131-2 NOTE Harmonized as EN 61131-2
IEC 61131-3 NOTE Harmonized as EN 61131-3
IEC 61158-1 NOTE Harmonized as EN 61158-1
IEC 61158-2:2014 NOTE Harmonized as EN 61158-2:2014 (not modified)
IEC 61158-5-12:2019 NOTE Harmonized as EN IEC 61158-5-12:2019 (not modified)
IEC 61158-6-12 NOTE Harmonized as EN 61158-6-12
IEC 61784-1 NOTE Harmonized as EN 61784-1
IEC 61784-2 NOTE Harmonized as EN 61784-2

2

---------------------- Page: 4 ----------------------
SIST EN IEC 61158-4-12:2019
EN IEC 61158-4-12:2019 (E)
Annex ZA
(normative)

Normative references to international publications
with their corresponding European publications
The following documents are referred to in the text in such a way that some or all of their content
constitutes requirements of this document. For dated references, only the edition cited applies. For
undated references, the latest edition of the referenced document (including any amendments)
applies.
NOTE 1  Where an International Publication has been modified by common modifications, indicated by (mod), the relevant
EN/HD applies.
NOTE 2  Up-to-date information on the latest versions of the European Standards listed in this annex is available here:
www.cenelec.eu.
Publication Year Title EN/HD Year
IEC 61158-3-12 2019 Industrial communication networks - EN IEC 61158-3-12 2019
Fieldbus specifications - Part 3-12: Data-
link layer service definition - Type 12
elements
IEC 61588 -  Precision clock synchronization protocol for - -
networked measurement and control
systems
ISO/IEC 7498-1 -  Information technology - Open Systems - -
Interconnection - Basic reference model:
The basic model
ISO/IEC 7498-3 -  Information technology - Open Systems - -
Interconnection - Basic reference model:
Naming and addressing
ISO/IEC 9899 -  Information technology - Programming - -
languages - C
ISO/IEC 10731 -  Information technology - Open Systems - -
Interconnection - Basic Reference Model -
Conventions for the definition of OSI
services
ISO/IEC/IEEE 8802--  Standard for Ethernet - -
3
IEEE Std 802.1Q -  IEEE Standard for Local and Metropolitan - -
Area Networks – Bridges and bridged
networks
IETF RFC 768 -  User Datagram Protocol - -
IETF RFC 791 -  Internet protocol DARPA internet program - -
protocol specification


3

---------------------- Page: 5 ----------------------
SIST EN IEC 61158-4-12:2019

---------------------- Page: 6 ----------------------
SIST EN IEC 61158-4-12:2019




IEC 61158-4-12

®


Edition 4.0 2019-04




INTERNATIONAL



STANDARD








colour

inside










Industrial communication networks – Fieldbus specifications –

Part 4-12: Data-link layer protocol specification – Type 12 elements



























INTERNATIONAL

ELECTROTECHNICAL


COMMISSION





ICS 25.040.40; 35.100.20; 35.110 ISBN 978-2-8322-6775-2




  Warning! Make sure that you obtained this publication from an authorized distributor.


® Registered trademark of the International Electrotechnical Commission

---------------------- Page: 7 ----------------------
SIST EN IEC 61158-4-12:2019
– 2 – IEC 61158-4-12:2019 © IEC 2019
CONTENTS
FOREWORD . 8
INTRODUCTION . 10
1 Scope . 11
1.1 General . 11
1.2 Specifications . 11
1.3 Procedures . 11
1.4 Applicability . 11
1.5 Conformance . 11
2 Normative references . 12
3 Terms, definitions, symbols, abbreviations and conventions . 12
3.1 Reference model terms and definitions . 12
3.2 Service convention terms and definitions . 13
3.3 Common terms and definitions . 14
3.4 Additional Type 12 definitions . 14
3.5 Common symbols and abbreviations . 17
3.6 Additional Type 12 symbols and abbreviations . 18
3.7 Conventions . 19
3.7.1 General concept . 19
3.7.2 Abstract syntax conventions . 19
3.7.3 Convention for the encoding of reserved bits and octets . 21
3.7.4 Conventions for the common coding s of specific field octets . 21
3.7.5 State machine conventions . 22
4 Overview of the DL-protocol . 24
4.1 Operating principle. 24
4.2 Topology . 24
4.3 Frame processing principles . 24
4.4 Data-link layer overview . 25
4.5 Error detection overview . 26
4.6 Node reference model . 26
4.6.1 Mapping onto OSI basic reference model . 26
4.6.2 Data-link Layer features . 27
4.7 Operation overview . 27
4.7.1 Relation to ISO/IEC/IEEE 8802-3 . 27
4.7.2 Frame structure . 27
5 Frame structure . 28
5.1 Frame coding principles . 28
5.2 Data types and encoding rules . 28
5.2.1 General description of data types and encoding rules . 28
5.2.2 Transfer syntax for bit sequences . 28
5.2.3 Unsigned Integer . 29
5.2.4 Signed Integer . 30
5.2.5 Octet String . 30
5.2.6 Visible String . 30
5.3 Ethernet DLPDU structure . 31
5.3.1 Type 12 frame inside an Ethernet frame . 31
5.3.2 Type 12 frame inside a UDP datagram . 31

---------------------- Page: 8 ----------------------
SIST EN IEC 61158-4-12:2019
IEC 61158-4-12:2019 © IEC 2019 – 3 –
5.3.3 Type 12 frame structure . 33
5.4 Type 12 DLPDU structure . 33
5.4.1 Read . 33
5.4.2 Write . 38
5.4.3 Read write . 43
5.4.4 Attributes access . 50
5.5 Network variable structure . 50
5.6 Type 12 mailbox structure . 51
6 Attributes . 52
6.1 Management . 52
6.1.1 DL Information . 52
6.1.2 Station address . 56
6.1.3 DL control . 57
6.1.4 DL status . 59
6.1.5 DLS-user specific registers . 62
6.1.6 Event parameter . 63
6.2 Statistics . 68
6.2.1 RX error counter . 68
6.2.2 Lost link counter . 69
6.2.3 Additional counter . 70
6.3 Watchdogs . 71
6.3.1 Watchdog divider . 71
6.3.2 DLS-user watchdog . 72
6.3.3 Sync manager watchdog . 72
6.3.4 Sync manager watchdog status . 73
6.3.5 Watchdog counter. 74
6.4 Slave information interface . 74
6.4.1 Slave information interface area . 74
6.4.2 Slave information interface access . 74
6.4.3 Slave information interface control/status . 75
6.4.4 Slave information interface address . 77
6.4.5 Slave information interface data . 78
6.5 Media independent interface (MII) . 78
6.5.1 MII control/status . 78
6.5.2 MII address . 80
6.5.3 MII data . 81
6.5.4 MII access . 81
6.6 Fieldbus memory management unit (FMMU) . 82
6.6.1 General . 82
6.6.2 FMMU attributes . 83
6.7 Sync manager . 85
6.7.1 Sync manager overview . 85
6.7.2 Sync Manager Attributes . 88
6.8 Distributed clock . 91
6.8.1 General . 91
6.8.2 Delay measurement . 91
6.8.3 Local time parameter . 92
6.8.4 DL-user time parameter . 92
6.8.5 DC attributes . 93

---------------------- Page: 9 ----------------------
SIST EN IEC 61158-4-12:2019
– 4 – IEC 61158-4-12:2019 © IEC 2019
7 DL-user memory . 95
7.1 Overview . 95
7.2 Mailbox access type . 95
7.2.1 Mailbox transfer . 95
7.2.2 Write access from master . 95
7.2.3 Read access from master . 97
7.3 Buffered access type . 98
7.3.1 Write access from master . 98
7.3.2 Read access from master . 98
8 Type 12: FDL protocol state machines . 99
8.1 Overview of slave DL state machines . 99
8.2 State machine description . 100
8.2.1 Port state machine (PSM) . 100
8.2.2 PDU handler state machine (DHSM) . 100
8.2.3 Sync manager state machine (SYSM) . 101
8.2.4 Resilient mailbox state machine (RMSM) . 101
8.2.5 SII state machine (SIISM) . 101
8.2.6 MII state machine (MIISM) . 105
8.2.7 DC state machine (DCSM) . 105
Annex A (informative) Type 12: Additional specifications on DL-Protocol state
machines . 108
A.1 DHSM . 108
A.1.1 Primitive definitions . 108
A.1.2 State machine description . 109
A.1.3 DHSM table . 110
A.1.4 Functions . 125
A.2 SYSM . 126
A.2.1 Primitive definition . 126
A.2.2 State machine description . 127
A.2.3 Local variables . 128
A.2.4 State table nomenclature . 128
A.2.5 SYSM table . 128
A.2.6 Functions . 138
A.3 RMSM . 138
A.3.1 Primitive definitions . 138
A.3.2 State machine description . 139
A.3.3 Local variables . 139
A.3.4 RMSM table . 139
A.3.5 Functions . 141
Bibliography . 142

Figure 1 – Type description example . 20
Figure 2 – Common structure of specific fields . 21
Figure 3 – Frame structure. 25
Figure 4 – Mapping of data in a frame . 26
Figure 5 – Slave node reference model . 27
Figure 6 – Type 12 PDUs embedded in Ethernet frame . 28
Figure 7 – Type 12 PDUs embedded in UDP/IP . 28

---------------------- Page: 10 ----------------------
SIST EN IEC 61158-4-12:2019
IEC 61158-4-12:2019 © IEC 2019 – 5 –
Figure 8 – DL information type description . 54
Figure 9 – Address type description . 56
Figure 10 – DL control type description . 58
Figure 11 – DL status type description . 61
Figure 12 – Successful write sequence to DL-user control register . 62
Figure 13 – Successful read sequence to the DL-user status register . 63
Figure 14 – RX error counter type description . 69
Figure 15 – Lost link counter type description . 70
Figure 16 – Additional counter type description . 71
Figure 17 – Watchdog divider type description . 72
Figure 18 – DLS-user Watchdog divider type description . 72
Figure 19 – Sync manager watchdog type description . 73
Figure 20 – Sync manager watchdog status type description . 73
Figure 21 – Watchdog counter type description . 74
Figure 22 – Slave information interface access type description . 74
Figure 23 – Slave information interface control/status type description . 76
Figure 24 – Slave information interface address type description . 78
Figure 25 – Slave information interface data type description . 78
Figure 26 – MII control/status type description . 79
Figure 27 – MII address type description . 81
Figure 28 – MII data type description . 81
Figure 29 – MII access type description . 82
Figure 30 – FMMU mapping example . 83
Figure 31 – FMMU entity type description . 84
Figure 32 – SyncM mailbox interaction . 86
Figure 33 – SyncM buffer allocation . 86
Figure 34 – SyncM buffer interaction . 87
Figure 35 – Handling of write/read toggle with read mailbox . 87
Figure 36 – Sync manager channel type description . 89
Figure 37 – Distributed clock local time parameter type description . 93
Figure 38 – Successful write sequence to mailbox . 96
Figure 39 – Bad write sequence to mailbox . 96
Figure 40 – Successful read sequence to mailbox . 97
Figure 41 – Bad read sequence to mailbox . 97
Figure 42 – Successful write sequence to buffer . 98
Figure 43 – Successful read sequence to buffer. 99
Figure 44 – Structuring of the protocol machines of an slave . 100
Figure 45 – Slave information interface read operation . 102
Figure 46 – Slave information interface write operation .
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.