Industrial communication networks - Fieldbus specifications - Part 4-12: Data-link layer protocol specification - Type 12 elements

IEC 61158-4-12: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. The main changes are: technical corrections and editorial improvements for clarification.

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

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.

General Information

Status
Published
Publication Date
17-Apr-2019
Technical Committee
Drafting Committee
Current Stage
PPUB - Publication issued
Start Date
26-Apr-2019
Completion Date
18-Apr-2019
Ref Project

Buy Standard

Standard
IEC 61158-4-12:2019 - Industrial communication networks - Fieldbus specifications - Part 4-12: Data-link layer protocol specification - Type 12 elements
English language
142 pages
sale 15% off
Preview
sale 15% off
Preview
Standard
IEC 61158-4-12:2019 - Industrial communication networks - Fieldbus specifications - Part 4-12: Data-link layer protocol specification - Type 12 elements
English and French language
303 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (Sample)

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

IEC 61158-4-12:2019-04(en)

---------------------- Page: 1 ----------------------
THIS PUBLICATION IS COPYRIGHT PROTECTED
Copyright © 2019 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.


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.

---------------------- Page: 2 ----------------------
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: 3 ----------------------
– 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: 4 ----------------------
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: 5 ----------------------
– 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: 6 ----------------------
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 . 103
Figure 47 – Slave information interface reload operation . 104
Figure 48 – Distributed clock . 106
Figure 49 – Delay measurement sequence . 107

---------------------- Page: 7 ----------------------
– 6 – IEC 61158-4-12:2019 © IEC 2019
Table 1 – PDU element description example . 20
Table 2 – Example attribute description . 21
Table 3 – State machine description elements . 23
Table 4 – Description of state machine elements . 23
Table 5 – Conventions used in state machines . 23
Table 6 – Transfer Syntax for bit sequences . 29
Table 7 – Transfer syntax for data type Unsignedn . 29
Table 8 – Transfer syntax for data type Integern . 30
Table 9 – Type 12 frame inside an Ethernet frame . 31
Table 10 – Type 12 frame inside an UDP PDU . 32
Table 11 – Type 12 frame structure containing Type 12 PDUs . 33
Table 12 – Type 12 frame structure containing network variables . 33
Table 13 – Type 12 frame structure containing mailbox . 33
Table 14 – Auto increment physical read (APRD) . 34
Table 15 – Configured address physical read (FPRD) . 35
Table 16 – Broadcast read (BRD) . 36
Table 17 – Logical read (LRD) . 37
Table 18 – Auto Increment physical write (APWR) . 38
Table 19 – Configured address physical write (FPWR) . 39
Table 20 – Broadcast write (BWR) . 41
Table 21 – Logical write (LWR) . 42
Table 22 – Auto increment physical read write (APRW) . 43
Table 23 – Configured address physical read write (FPRW) . 44
Table 24 – Broadcast read write (BRW) . 45
Table 25 – Logical read write (LRW) . 47
Table 26 – Auto increment physical read multiple write (ARMW) . 48
Table 27 – Configured address physical read multiple write (FRMW) . 49
Table 28 – Network variable . 50
Table 29 – Mailbox . 51
Table 30 – Error Reply Service Data . 52
Table 31 – DL information . 54
Table 32 – Configured station address . 57
Table 33 – DL control . 58
Table 34 – DL status . 61
Table 35 – DLS-user specific registers .
...

IEC 61158-4-12
®

Edition 4.0 2019-04
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
colour
inside


Industrial communication networks – Fieldbus specifications –
Part 4-12: Data-link layer protocol specification – Type 12 elements

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-04(en-fr)

---------------------- Page: 1 ----------------------
THIS PUBLICATION IS COPYRIGHT PROTECTED
Copyright © 2019 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é 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.

---------------------- Page: 2 ----------------------
IEC 61158-4-12

®


Edition 4.0 2019-04




INTERNATIONAL



STANDARD




NORME


INTERNATIONALE
colour

inside










Industrial communication networks – Fieldbus specifications –

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



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















INTERNATIONAL

ELECTROTECHNICAL

COMMISSION


COMMISSION

ELECTROTECHNIQUE


INTERNATIONALE




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





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-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: 4 ----------------------
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: 5 ----------------------
– 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: 6 ----------------------
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 . 103
Figure 47 – Slave information interface reload operation . 104
Figure 48 – Distributed clock . 106
Figure 49 – Delay measurement sequence . 107

---------------------- Page: 7 ----------------------
– 6 – IEC 61158-4-12:2019 © IEC 2019
Table 1 – PDU element description example . 20
Table 2 – Example attribute description . 21
Table 3 – State machine description elements . 23
Table 4 – Description of state machine elements . 23
Table 5 – Conventions used in state machines . 23
Table 6 – Transfer Syntax for bit sequences . 29
Table 7 – Transfer syntax for data type Unsignedn . 29
Table 8 – Transfer syntax for data type Integern . 30
Table 9 – Type 12 frame inside an Ethernet frame . 31
Table 10 – Type 12 frame inside an UDP PDU . 32
Table 11 – Type 12 frame structure containing
...

Questions, Comments and Discussion

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