IEC 61158-5-2:2023
(Main)Industrial communication networks - Fieldbus specifications - Part 5-2: Application layer service definition - Type 2 elements
Industrial communication networks - Fieldbus specifications - Part 5-2: Application layer service definition - Type 2 elements
IEC 61158-5-2:2023 provides common elements for basic time-critical and non-time-critical messaging communications between application programs in an automation environment and material specific to Type 2 fieldbus. The term "time-critical" is used to represent the presence of a time-window, within which one or more specified actions are required to be completed with some defined level of certainty. Failure to complete specified actions within the time window risks failure of the applications requesting the actions, with attendant risk to equipment, plant and possibly human life.
General Information
Relations
Standards Content (Sample)
IEC 61158-5-2
®
Edition 5.0 2023-03
INTERNATIONAL
STANDARD
Industrial communication networks – Fieldbus specifications –
Part 5-2: Application layer service definition – Type 2 elements
IEC 61158-5-2:2023-03(en)
---------------------- Page: 1 ----------------------
THIS PUBLICATION IS COPYRIGHT PROTECTED
Copyright © 2023 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 Secretariat 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 IEC Products & Services Portal - products.iec.ch
The advanced search enables to find IEC publications by a Discover our powerful search engine and read freely all the
variety of criteria (reference number, text, technical publications previews. With a subscription you will always have
committee, …). It also gives information on projects, replaced access to up to date content tailored to your needs.
and withdrawn publications.
Electropedia - www.electropedia.org
IEC Just Published - webstore.iec.ch/justpublished
The world's leading online dictionary on electrotechnology,
Stay up to date on all new IEC publications. Just Published
containing more than 22 300 terminological entries in English
details all new publications released. Available online and once
and French, with equivalent terms in 19 additional languages.
a month by email.
Also known as the International Electrotechnical Vocabulary
(IEV) online.
IEC Customer Service Centre - webstore.iec.ch/csc
If you wish to give us your feedback on this publication or need
further assistance, please contact the Customer Service
Centre: sales@iec.ch.
---------------------- Page: 2 ----------------------
IEC 61158-5-2
®
Edition 5.0 2023-03
INTERNATIONAL
STANDARD
Industrial communication networks – Fieldbus specifications –
Part 5-2: Application layer service definition – Type 2 elements
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
ICS 25.040.40; 35.100.70; 35.110 ISBN 978-2-8322-6569-7
Warning! Make sure that you obtained this publication from an authorized distributor.
® Registered trademark of the International Electrotechnical Commission
---------------------- Page: 3 ----------------------
– 2 – IEC 61158-5-2:2023 © IEC 2023
CONTENTS
FOREWORD . 6
INTRODUCTION . 8
1 Scope . 9
1.1 General . 9
1.2 Specifications . 10
1.3 Conformance . 10
2 Normative references . 10
3 Terms, definitions, symbols, abbreviated terms and conventions . 12
3.1 ISO/IEC 7498-1 terms . 13
3.2 ISO/IEC 8822 terms . 13
3.3 ISO/IEC 9545 terms . 13
3.4 ISO/IEC 8824-1 terms . 13
3.5 Type 2 fieldbus data-link layer terms . 13
3.6 Type 2 fieldbus application-layer specific definitions . 14
3.7 Type 2 abbreviated terms and symbols . 22
3.8 Conventions . 23
3.8.1 Overview . 23
3.8.2 General conventions . 23
3.8.3 Conventions for class definitions . 24
3.8.4 Conventions for service definitions . 25
4 Common concepts . 26
5 Data type ASE . 26
5.1 General . 26
5.2 Formal definition of data type objects . 26
5.3 FAL defined data types . 26
5.3.1 Fixed length types . 26
5.3.2 String types . 33
5.3.3 Structure types . 34
5.4 Data type ASE service specification . 37
6 Communication model specification . 37
6.1 Concepts . 37
6.1.1 General . 37
6.1.2 General concepts . 38
6.1.3 Relationships between ASEs . 38
6.1.4 Naming and addressing . 40
6.1.5 Data types . 41
6.1.6 Diagnostic connection points . 48
6.2 ASEs . 49
6.2.1 Object management ASE . 49
6.2.2 Connection manager ASE . 175
6.2.3 Connection ASE . 193
6.3 ARs . 207
6.3.1 Overview . 207
6.3.2 UCMM AR formal model . 218
6.3.3 Transport AR formal model . 220
6.3.4 AR ASE services . 230
---------------------- Page: 4 ----------------------
IEC 61158-5-2:2023 © IEC 2023 – 3 –
6.4 Summary of FAL classes . 237
6.5 Permitted FAL services by AR type . 238
Bibliography . 240
Figure 1 – Overview of ASEs and object classes. 40
Figure 2 – Addressing format using MAC, class, instance and attribute IDs . 40
Figure 3 – Identity object state transition diagram . 67
Figure 4 – Explicit and Implicit Setting interaction . 70
Figure 5 – Static Assembly state transition diagram . 75
Figure 6 – Dynamic Assembly state transition diagram . 76
Figure 7 – Variable Assembly state transition diagram . 78
Figure 8 – Typical timing relationships for acknowledged data production . 89
Figure 9 – Example of a COS system with two acking devices . 89
Figure 10 – Message flow in COS connection – one Connection object, one consumer . 90
Figure 11 – Message flow in COS connection – multiple consumers . 90
Figure 12 – Path Reconfiguration in a ring topology . 103
Figure 13 – Doubly attached clocks in a PRP network . 104
Figure 14 – Type 2 Time Synchronization offset clock model . 106
Figure 15 – Type 2 Time Synchronization system with offset clock model . 106
Figure 16 – Type 2 time synchronization group startup sequence . 109
Figure 17 – Parameter object state transition diagram . 115
Figure 18 – Example of Find_Next_Object_Instance service . 141
Figure 19 – State Transition Diagram for Fragmentation Session . 172
Figure 20 – Transmission Trigger Timer behavior . 201
Figure 21 – Inactivity watchdog timer . 202
Figure 22 – Using tools for configuration . 202
Figure 23 – Production Inhibit Timer behavior . 203
Figure 24 – Context of transport services within the connection model . 210
Figure 25 – Application–to–application view of data transfer . 210
Figure 26 – Data flow diagram for a link producer . 211
Figure 27 – Data flow diagram for a link consumer . 212
Figure 28 – Triggers . 213
Figure 29 – Binding transport instances to the producer and consumer of a transport
connection that does not have a reverse data path . 214
Figure 30 – Binding transport instances to the producers and consumers of a transport
connection that does have a reverse data path . 214
Figure 31 – Binding transport instances to the producer and consumers of a multipoint
connection when the transport connection does not have a reverse data path . 215
Figure 32 – Binding transport instances to the producers and consumers of a multipoint
connection when the transport connection does have reverse data paths . 215
Table 1 – Valid IANA MIB printer codes for character set selection . 36
Table 2 – Common elements . 43
Table 3 – ST language elements . 44
Table 4 – Type conversion operations . 45
---------------------- Page: 5 ----------------------
– 4 – IEC 61158-5-2:2023 © IEC 2023
Table 5 – Values of implementation-dependent parameters . 47
Table 6 – Extensions to IEC 61131-3:2003 . 47
Table 7 – Identity object state event matrix . 68
Table 8 – Static Assembly state event matrix . 76
Table 9 – Static Assembly instance attribute access . 76
Table 10 – Dynamic Assembly state event matrix . 77
Table 11 – Dynamic Assembly instance attribute access . 77
Table 12 – Variable Assembly state event matrix . 78
Table 13 – Variable Assembly instance attribute access . 78
Table 14 – Message Router object Forward_Open parameters . 82
Table 15 – Acknowledge Handler object state event matrix . 85
Table 16 – Producing I/O application object state event matrix . 87
Table 17 – PTPEnable attribute default values . 94
Table 18 – Profile identification . 101
Table 19 – Profile default settings and ranges . 101
Table 20 – Default PTP clock settings . 102
Table 21 – HAND set clock quality management . 103
Table 22 – Path Reconfiguration Signalling message . 104
Table 23 – Parameter object state event matrix . 116
Table 24 – Status codes . 118
Table 25 – Get_Attributes_All service parameters . 120
Table 26 – Set_Attributes_All service parameters . 122
Table 27 – Get_Attribute_List service parameters . 124
Table 28 – Set_Attribute_List service parameters . 126
Table 29 – Reset service parameters . 128
Table 30 – Start service parameters . 130
Table 31 – Stop service parameters . 131
Table 32 – Create service parameters . 133
Table 33 – Delete service parameters . 135
Table 34 – Get_Attribute_Single service parameters . 136
Table 35 – Set_Attribute_Single service parameters . 138
Table 36 – Find_Next_Object_Instance service parameters . 140
Table 37 – NOP service parameters . 142
Table 38 – Apply_Attributes service parameters . 143
Table 39 – Save service parameters . 145
Table 40 – Restore service parameters . 146
Table 41 – Get_Member service parameters . 148
Table 42 – Set_Member service parameters . 150
Table 43 – Insert_Member service parameters . 151
Table 44 – Remove_Member service parameters . 153
Table 45 – Group_Sync service parameters . 154
Table 46 – Add_AckData_Path service parameters . 156
Table 47 – Remove_AckData_Path service parameters . 157
---------------------- Page: 6 ----------------------
IEC 61158-5-2:2023 © IEC 2023 – 5 –
Table 48 – Get_Enum_String service parameters . 158
Table 49 – Symbolic_Translation service parameters . 160
Table 50 – Flash_LEDs service parameters . 161
Table 51 – Multiple_Service_Packet service parameters . 163
Table 52 – Get_Connection_Point_Member_List service parameters . 165
Table 53 – Send_Receive_Fragment service parameters . 167
Table 54 – Fragmentation Session Manager Event/Activity Matrix . 171
Table 55 – Fragmentation State Event Matrix. 172
Table 56 – CM_Open service parameters . 184
Table 57 – CM_Close service parameters . 186
Table 58 – CM_ Unconnected_Send service parameters . 188
Table 59 – CM_Get_Connection_Data service parameters. 189
Table 60 – CM_Search_Connection_Data service parameters . 190
Table 61 – CM_Get_Connection_Data service parameters. 192
Table 62 – I/O Connection object attribute access . 197
Table 63 – Bridged Connection object attribute access . 198
Table 64 – Explicit messaging object attribute access . 199
Table 65 – Connection_Bind service parameters . 204
Table 66 – Service_Name service parameters . 206
Table 67 – How production trigger, transport class, and CM_RPI determine when data
is produced . 209
Table 68 – Transport classes . 220
Table 69 – UCMM_Create service parameters . 230
Table 70 – UCMM_Delete service parameters . 231
Table 71 – UCMM_Write service parameters . 232
Table 72 – UCMM_Abort service parameters . 234
Table 73 – TR_Write service parameters . 234
Table 74 – TR_Trigger service parameters . 235
Table 75 – TR_Packet_arrived service parameters . 235
Table 76 – TR_Ack_received service parameters . 236
Table 77 – TR_Verify service parameters . 237
Table 78 – FAL class summary . 237
Table 79 – FAL services by AR type . 238
---------------------- Page: 7 ----------------------
– 6 – IEC 61158-5-2:2023 © IEC 2023
INTERNATIONAL ELECTROTECHNICAL COMMISSION
____________
INDUSTRIAL COMMUNICATION NETWORKS –
FIELDBUS SPECIFICATIONS –
Part 5-2: Application layer service definition –
Type 2 elements
FOREWORD
1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising
all national electrotechnical committees (IEC National Committees). The object of IEC is to promote international
co-operation on all questions concerning standardization in the electrical and electronic fields. To this end and
in addition to other activities, IEC publishes International Standards, Technical Specifications, Technical Reports,
Publicly Available Specifications (PAS) and Guides (hereafter referred to as "IEC Publication(s)"). Their
preparation is entrusted to technical committees; any IEC National Committee interested in the subject dealt with
may participate in this preparatory work. International, governmental and non-governmental organizations liaising
with the IEC also participate in this preparation. IEC collaborates closely with the International Organization for
Standardization (ISO) in accordance with conditions determined by agreement between the two organizations.
2) The formal decisions or agreements of IEC on technical matters express, as nearly as possible, an international
consensus of opinion on the relevant subjects since each technical committee has representation from all
interested IEC National Committees.
3) IEC Publications have the form of recommendations for international use and are accepted by IEC National
Committees in that sense. While all reasonable efforts are made to ensure that the technical content of IEC
Publications is accurate, IEC cannot be held responsible for the way in which they are used or for any
misinterpretation by any end user.
4) In order to promote international uniformity, IEC National Committees undertake to apply IEC Publications
transparently to the maximum extent possible in their national and regional publications. Any divergence between
any IEC Publication and the corresponding national or regional publication shall be clearly indicated in the latter.
5) IEC itself does not provide any attestation of conformity. Independent certification bodies provide conformity
assessment services and, in some areas, access to IEC marks of conformity. IEC is not responsible for any
services carried out by independent certification bodies.
6) All users should ensure that they have the latest edition of this publication.
7) No liability shall attach to IEC or its directors, employees, servants or agents including individual experts and
members of its technical committees and IEC National Committees for any personal injury, property damage or
other damage of any nature whatsoever, whether direct or indirect, or for costs (including legal fees) and
expenses arising out of the publication, use of, or reliance upon, this IEC Publication or any other IEC
Publications.
8) Attention is drawn to the Normative references cited in this publication. Use of the referenced publications is
indispensable for the correct application of this publication.
9) Attention is drawn to the possibility that some of the elements of this IEC Publication may be the subject of patent
rights. IEC shall not be held responsible for identifying any or all such patent rights.
Attention is drawn to the fact that the use of the associated protocol type is restricted by its
intellectual-property-right holders. In all cases, the commitment to limited release of intellectual-
property-rights made by the holders of those rights permits a layer protocol type to be used with
other layer protocols of the same type, or in other type combinations explicitly authorized by its
intellectual-property-right holders.
NOTE Combinations of protocol types are specified in the IEC 61784-1 series and the IEC 61784-2 series.
IEC 61158-5-2 has been prepared by subcommittee 65C: Industrial networks, of IEC technical
committee 65: Industrial-process measurement, control and automation. It is an International
Standard.
This fifth edition cancels and replaces the fourth edition published in 2019. This edition
constitutes a technical revision.
---------------------- Page: 8 ----------------------
IEC 61158-5-2:2023 © IEC 2023 – 7 –
This edition includes the following significant technical changes with respect to the previous
edition:
a) update of normative and bibliographic references;
b) new STIME, UTIME and NTIME data types in 5.3.1.5;
c) updated list of managements objects in 6.1.3;
d) new attributes and services for the ASE general formal model in 6.2.1.2.1, 6.2.1.3 and 6.5;
e) clarifications, new attributes and services for the Identity ASE in 6.2.1.2.2;
f) clarifications, new attributes and other extensions for the Assembly ASE in 6.2.1.2.3;
g) new attributes and services for the Message Router ASE in 6.2.1.2.4;
h) addition of missing class attributes for the Acknowledge Handler ASE in 6.2.1.2.5;
i) clarifications, new attributes and services for the Time Sync ASE in 6.2.1.2.6;
j) addition of missing class attributes for the Parameter ASE in 6.2.1.2.7;
k) clarifications of service parameters, status codes and procedures in 6.2.1.3;
l) addition of a new service for the Message Router ASE in 6.2.1.3;
m) clarifications and new services for the Connection Manager ASE in 6.2.2;
n) clarifications and new services for the Connection ASE in 6.2.3;
o) removal of obsoleted transport options and related services in 6.3.3;
p) removal of all references to CPF and CPs (material moved to profile documents);
q) miscellaneous editorial corrections.
The text of this International Standard is based on the following documents:
Draft Report on voting
65C/1203/FDIS 65C/1244/RVD
Full information on the voting for its approval can be found in the report on voting indicated in
the above table.
The language used for the development of this International Standard is English.
This document was drafted in accordance with ISO/IEC Directives, Part 2, and developed in
accordance with ISO/IEC Directives, Part 1 and ISO/IEC Directives, IEC Supplement, available
at www.iec.ch/members_experts/refdocs. The main document types developed by IEC are
described in greater detail at www.iec.ch/publications.
A list of all parts of the IEC 61158 series, published under the general title Industrial
communication networks – Fieldbus specifications, can be found on the IEC web site.
The committee has decided that the contents of this document will remain unchanged until the
stability date indicated on the IEC website under webstore.iec.ch in the data related to the
specific document. At this date, the document will be
• reconfirmed,
• withdrawn,
• replaced by a revis
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.