Industrial communication networks - Fieldbus specifications - Part 6-2: Application layer protocol specification - Type 2 elements

The fieldbus application layer (FAL) provides user programs with a means to access the fieldbus communication environment. In this respect, the FAL can be viewed as a "window between corresponding application programs." This standard 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. This standard specifies interactions between remote applications and defines the externally visible behavior provided by the Type 2 fieldbus application layer in terms of a) the formal abstract syntax defining the application layer protocol data units conveyed between communicating application entities; b) the transfer syntax defining encoding rules that are applied to the application layer protocol data units; c) the application context state machine defining the application service behavior visible between communicating application entities; d) the application relationship state machines defining the communication behavior visible between communicating application entities. The purpose of this standard is to define the protocol provided to 1) define the wire-representation of the service primitives defined in IEC 61158-5-2, and 2) define the externally visible behavior associated with their transfer. This standard specify the protocol of the Type 2 fieldbus application layer, in conformance with the OSI Basic Reference Model (ISO/IEC 7498) and the OSI application layer structure (ISO/IEC 9545).

Industrielle Kommunikationsnetze - Feldbusse - Teil 6-2: Protokollspezifikation des Application Layer (Anwendungsschicht) - Typ 2-Elemente

Réseaux de communication industriels - Spécifications des bus de terrain - Partie 6-2: Spécification des services des couches d'application - Eléments de type 2

Industrijska komunikacijska omrežja - Specifikacije za procesno vodilo - 6-2. del: Specifikacija protokola na aplikacijskem nivoju - Elementi tipa 2 (IEC 61158-6-2:2007)

General Information

Status
Withdrawn
Publication Date
15-Jun-2008
Withdrawal Date
26-Aug-2012
Current Stage
9900 - Withdrawal (Adopted Project)
Start Date
17-Jul-2012
Due Date
09-Aug-2012
Completion Date
27-Aug-2012

Relations

Buy Standard

Standard
EN 61158-6-2:2008
English language
102 pages
sale 10% off
Preview
sale 10% off
Preview
e-Library read for
1 day

Standards Content (Sample)

SLOVENSKI STANDARD
SIST EN 61158-6-2:2008
01-julij-2008
1DGRPHãþD
SIST EN 61158-6:2004
Industrijska komunikacijska omrežja - Specifikacije za procesno vodilo - 6-2. del:
Specifikacija protokola na aplikacijskem nivoju - Elementi tipa 2 (IEC 61158-6-
2:2007)
Industrial communication networks - Fieldbus specifications - Part 6-2: Application layer
protocol specification - Type 2 elements
Industrielle Kommunikationsnetze - Feldbusse - Teil 6-2: Protokollspezifikation des
Application Layer (Anwendungsschicht) - Typ 2-Elemente
Réseaux de communication industriels - Spécifications des bus de terrain - Partie 6-2:
Spécification des services des couches d'application - Eléments de type 2
Ta slovenski standard je istoveten z: EN 61158-6-2:2008
ICS:
25.040.40 Merjenje in krmiljenje Industrial process
industrijskih postopkov measurement and control
35.100.70 Uporabniški sloj Application layer
35.110 Omreževanje Networking
SIST EN 61158-6-2:2008 en,de
2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.

---------------------- Page: 1 ----------------------

SIST EN 61158-6-2:2008

---------------------- Page: 2 ----------------------

SIST EN 61158-6-2:2008

EUROPEAN STANDARD
EN 61158-6-2

NORME EUROPÉENNE
March 2008
EUROPÄISCHE NORM

ICS 35.100.70; 25.040.40 Partially supersedes EN 61158-6:2004


English version


Industrial communication networks -
Fieldbus specifications -
Part 6-2: Application layer protocol specification -
Type 2 elements
(IEC 61158-6-2:2007)


Réseaux de communication industriels -  Industrielle Kommunikationsnetze -
Spécifications des bus de terrain - Feldbusse -
Partie 6-2: Spécification des services Teil 6-2: Protokollspezifikation
des couches d'application - des Application Layer
Eléments de type 2 (Anwendungsschicht) -
(CEI 61158-6-2:2007) Typ 2-Elemente
(IEC 61158-6-2:2007)




This European Standard was approved by CENELEC on 2008-02-01. 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 Central Secretariat 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 Central Secretariat has the same status as the official versions.

CENELEC members are the national electrotechnical committees of Austria, Belgium, Bulgaria, Cyprus, the
Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia,
Lithuania, Luxembourg, Malta, the Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain,
Sweden, Switzerland and the United Kingdom.

CENELEC
European Committee for Electrotechnical Standardization
Comité Européen de Normalisation Electrotechnique
Europäisches Komitee für Elektrotechnische Normung

Central Secretariat: rue de Stassart 35, B - 1050 Brussels


© 2008 CENELEC - All rights of exploitation in any form and by any means reserved worldwide for CENELEC members.
Ref. No. EN 61158-6-2:2008 E

---------------------- Page: 3 ----------------------

SIST EN 61158-6-2:2008
EN 61158-6-2:2008 - 2 -
Foreword
The text of document 65C/476/FDIS, future edition 1 of IEC 61158-6-2, 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 was approved by CENELEC as EN 61158-6-2 on 2008-02-01.
This and the other parts of the EN 61158-6 series supersede EN 61158-6:2004.
With respect to EN 61158-6:2004 the following changes were made:
– deletion of Type 6 fieldbus for lack of market relevance;
– addition of new fieldbus types;
– partition into multiple parts numbered 6-2, 6-3, …6-20.
The following dates were fixed:
– latest date by which the EN has to be implemented
at national level by publication of an identical
national standard or by endorsement (dop) 2008-11-01
– latest date by which the national standards conflicting
with the EN have to be withdrawn (dow) 2011-02-01
NOTE  Use of some of the associated protocol types is restricted by their 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 particular data-link layer
protocol type to be used with physical layer and application layer protocols in type combinations as specified explicitly in the
EN 61784 series. Use of the various protocol types in other combinations may require permission from their respective
intellectual-property-right holders.
Annex ZA has been added by CENELEC.
__________
Endorsement notice
The text of the International Standard IEC 61158-6-2:2007 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-3 NOTE  Harmonized as EN 61131-3:2003 (not modified).
IEC 61784-1 NOTE  Harmonized as EN 61784-1:2008 (not modified).
IEC 61784-2 NOTE  Harmonized as EN 61784-2:2008 (not modified).
ISO/IEC 9506-2 NOTE  Harmonized as EN 29506-2:1993 (not modified).
__________

---------------------- Page: 4 ----------------------

SIST EN 61158-6-2:2008
- 3 - EN 61158-6-2:2008

Annex ZA
(normative)

Normative references to international publications
with their corresponding European publications

The following referenced documents are indispensable for the application 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  When an international publication has been modified by common modifications, indicated by (mod), the relevant EN/HD
applies.

Publication Year Title EN/HD Year
1) 2)
IEC 61158-3-2 - Industrial communication networks - EN 61158-3-2 2008
Fieldbus specifications -
Part 3-2: Data-link layer service definition -
Type 2 elements

1) 2)
IEC 61158-4-2 - Industrial communication networks - EN 61158-4-2 2008
Fieldbus specifications -
Part 4-2: Data-link layer protocol
specification - Type 2 elements


1) 2)
IEC 61158-5-2 - Industrial communication networks - EN 61158-5-2 2008
Fieldbus specifications -
Part 5-2: Application layer service definition -
Type 2 elements


IEC 61588 2004 Precision clock synchronization protocol for - -
networked measurement and control systems


1) 2)
IEC 61784-3-2 - Industrial communication networks - EN 61784-3-2 2008
Profiles -
Part 3-2: Functional safety fieldbuses -
Additional specifications for CPF 2


1)
IEC 62026-3 - Low-voltage switchgear and controlgear - - -
Controller-device interfaces (CDIs) -
Part 3: DeviceNet


1) 2)
ISO/IEC 7498-1 - Information technology - Open Systems EN ISO/IEC 7498-1 1995
Interconnection - Basic Reference Model:
The Basic Model


1)
ISO/IEC 8824-2 - Information technology - Abstract Syntax - -
Notation One (ASN.1): Information object
specification


1)
ISO/IEC 8825-1 - Information technology - ASN.1 encoding - -
rules: Specification of Basic Encoding Rules
(BER), Canonical Encoding Rules (CER) and
Distinguished Encoding Rules (DER)


1)
ISO/IEC 9545 - Information technology - Open Systems - -
Interconnection - Application Layer structure



1)
Undated reference.
2)
Valid edition at date of issue.

---------------------- Page: 5 ----------------------

SIST EN 61158-6-2:2008
EN 61158-6-2:2008 - 4 -

Publication Year Title EN/HD Year
1)
ISO/IEC 10646 - Information technology - Universal multiple-- -
octet coded character set (UCS)


1)
ISO/IEC 10731 - Information technology - Open Systems - -
Interconnection - Basic reference model -
Conventions for the definition of OSI services


ISO 11898 1993 Road vehicles - Interchange of digital - -
information - Controller area network (CAN)
for high-speed communication

---------------------- Page: 6 ----------------------

SIST EN 61158-6-2:2008
IEC 61158-6-2
Edition 1.0 2007-12
INTERNATIONAL
STANDARD

Industrial communication networks – Fieldbus specifications –
Part 6-2: Application layer protocol specification – Type 2 elements

INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
PRICE CODE
XL
ICS 35.100.70; 25.040.40 ISBN 2-8318-9474-3

---------------------- Page: 7 ----------------------

SIST EN 61158-6-2:2008
– 2 – 61158-6-2 © IEC:2007(E)
CONTENTS
FOREWORD.12
INTRODUCTION.14
1 Scope.15
1.1 General .15
1.2 Specifications .15
1.3 Conformance.15
2 Normative references .16
3 Terms, definitions, symbols, abbreviations and conventions .17
3.1 Terms and definitions from other ISO/IEC standards .17
3.2 Terms and definitions from IEC 61158-5-2.18
3.3 Additional terms and definitions.18
3.4 Abbreviations and symbols .24
3.5 Conventions .24
3.6 Conventions used in state machines.28
4 Abstract syntax.30
4.1 FAL PDU abstract syntax.30
4.2 Data abstract syntax specification .110
4.3 Encapsulation abstract syntax .114
5 Transfer syntax.128
5.1 Compact encoding.128
5.2 Data type reporting.136
6 Structure of FAL protocol state machines .141
7 AP-Context state machine .142
7.1 Overview .142
7.2 Connection object state machine .142
8 FAL service protocol machine (FSPM) .151
8.1 General .151
8.2 Primitive definitions .151
8.3 Parameters of primitives.155
8.4 FSPM state machines.156
9 Application relationship protocol machines (ARPMs) .157
9.1 General .157
9.2 Connection-less ARPM (UCMM).157
9.3 Connection-oriented ARPMs (transports).167
10 DLL mapping protocol machine 1 (DMPM 1) .237
10.1 General .237
10.2 Link producer .237
10.3 Link consumer .237
10.4 Primitive definitions .237
10.5 DMPM state machine .239
10.6 Data-link Layer service selection .241
11 DLL mapping protocol machine 2 (DMPM 2) .241
11.1 General .241
11.2 Mapping of UCMM PDUs .241
11.3 Mapping of transport class 0 and class 1 PDUs .246
11.4 Mapping of transport class 2 and class 3 PDU’s .248

---------------------- Page: 8 ----------------------

SIST EN 61158-6-2:2008
61158-6-2 © IEC:2007(E) – 3 –
11.5 Mapping of transport classes 4 to 6 .248
11.6 IGMP Usage.248
11.7 Management of an encapsulation session .249
12 DLL mapping protocol machine 3 (DMPM 3) .250
Bibliography.251

Figure 1 – Attribute table format and terms .24
Figure 2 – Service request/response parameter .25
Figure 3 – Example of an STD .29
Figure 4 – Network connection parameters .48
Figure 5 – Time tick .50
Figure 6 – Connection establishment time-out.52
Figure 7 – Transport Class Trigger attribute.76
Figure 8 – CP2/3_initial_comm_characteristics attribute format .79
Figure 9 – Segment type.87
Figure 10 – Port segment.88
Figure 11 – Logical segment encoding .90
Figure 12 – Extended network segment .94
Figure 13 – Encapsulation message.115
Figure 14 – FixedLengthBitString compact encoding bit placement rules .132
Figure 15 – Example compact encoding of a SWORD FixedLengthBitString.133
Figure 16 – Example compact encoding of a WORD FixedLengthBitString .133
Figure 17 – Example compact encoding of a DWORD FixedLengthBitString .133
Figure 18 – Example compact encoding of a LWORD FixedLengthBitString .133
Figure 19 – Example 2 of formal encoding of a structure type specification.138
Figure 20 – Example of abbreviated encoding of a structure type specification .138
Figure 21 – Example 1 of formal encoding of an array type specification.139
Figure 22 – Example 2 of formal encoding of an array type specification.139
Figure 23 – Example 1 of abbreviated encoding of an array type specification .140
Figure 24 – Example 2 of abbreviated encoding of an array type specification .140
Figure 25 – I/O Connection object state transition diagram .142
Figure 26 –Bridged Connection object state transition diagram .146
Figure 27 – Explicit Messaging Connection object state transition diagram .148
Figure 28 – State transition diagram of UCMM client.160
Figure 29 – State transition diagram of high–end UCMM server .161
Figure 30 – State transition diagram of low–end UCMM server .164
Figure 31 – Sequence diagram for a UCMM with one outstanding message.165
Figure 32 – Sequence diagram for a UCMM with multiple outstanding messages.166
Figure 33 – TPDU buffer .167
Figure 34 – Data flow diagram using a client transport class 0 and server transport
class 0 .170
Figure 35 – Sequence diagram of data transfer using transport class 0.170
Figure 36 – Class 0 client STD.171
Figure 37 – Class 0 server STD .172

---------------------- Page: 9 ----------------------

SIST EN 61158-6-2:2008
– 4 – 61158-6-2 © IEC:2007(E)
Figure 38 – Data flow diagram using client transport class 1 and server transport
class 1 .173
Figure 39 – Sequence diagram of data transfer using client transport class 1 and
server transport class 1.174
Figure 40 – Class 1 client STD.176
Figure 41 – Class 1 server STD .177
Figure 42 – Data flow diagram using client transport class 2 and server transport
class 2 .179
Figure 43 – Diagram of data transfer using client transport class 2 and server transport
class 2 without returned data .180
Figure 44 – Sequence diagram of data transfer using client transport class 2 and
server transport class 2 with returned data.181
Figure 45 – Class 2 client STD.182
Figure 46 – Class 2 server STD .184
Figure 47 – Data flow diagram using client transport class 3 and server transport
class 3 .187
Figure 48 – Sequence diagram of data transfer using client transport class 3 and
server transport class 3 without returned data.188
Figure 49 – Sequence diagram of data transfer using client transport class 3 and
server transport class 3 with returned data.189
Figure 50 – Class 3 client STD.191
Figure 51 – Class 3 server STD .194
Figure 52 – Data flow diagram using transport classes 4 and 5.196
Figure 53 – Sequence diagram of message exchange using transport classes 4 and 5 .197
Figure 54 – Sequence diagram of messages overwriting each other .198
Figure 55 – Sequence diagram of queued message exchange using transport classes 4
and 5 .199
Figure 56 – Sequence diagram of retries using transport classes 4 and 5 .199
Figure 57 – Sequence diagram of idle traffic using transport classes 4 and 5.200
Figure 58 – Classes 4 and 5 basic structure.201
Figure 59 – Class 6 basic structure.202
Figure 60 – Classes 4 to 6 general STD.203
Figure 61 – Class 4 sender STD .205
Figure 62 – Class 4 receiver STD .208
Figure 63 – Sequence diagram of three fragments using transport class 5 .211
Figure 64 – Sequence diagram of fragmentation with retries using transport class 5 .212
Figure 65 – Sequence diagram of two fragments using transport class 5.212
Figure 66 – Sequence diagram of aborted message using transport class 5.213
Figure 67 – Class 5 sender STD .214
Figure 68 – Class 5 receiver STD .217
Figure 69 – Data flow diagram for transport class 6 .221
Figure 70 – Sequence diagram of message exchange using transport class 6 .223
Figure 71 – Sequence diagram of retries using transport class 6 .223
Figure 72 – Sequence diagram of idle traffic using transport class 6 .224
Figure 73 – Sequence diagram of request overwriting null .225
Figure 74 – Sequence diagram of response overwriting ACK of null.225

---------------------- Page: 10 ----------------------

SIST EN 61158-6-2:2008
61158-6-2 © IEC:2007(E) – 5 –
Figure 75 – Sequence diagram of three fragments using transport class 6 .226
Figure 76 – Sequence diagram of fragmentation with retries using transport class 6 .227
Figure 77 – Sequence diagram of two fragments using transport class 6.227
Figure 78 – Sequence diagram of aborted fragmented sequence using transport
class 6 .228
Figure 79 – Class 6 client STD.229
Figure 80 – Class 6 server STD .232
Figure 81 – Data flow diagram for a link producer and consumer .237
Figure 82 – State transition diagram for a link producer .240
Figure 83 – State transition diagram for a link consumer.240

Table 1 – Get_Attribute_All response service rules .26
Table 2 – Example class level object/service specific response data of
Get_Attribute_All .26
Table 3 – Example Get_Attribute_All data array method .26
Table 4 – Set_Attribute_All request service rules .27
Table 5 – Example Set_Attribute_All attribute ordering method.27
Table 6 – Example Set_Attribute_All data array method.28
Table 7 – State event matrix format .29
Table 8 – Example state event matrix .30
Table 9 – UCMM_PDU header format .33
Table 10 – UCMM command codes.33
Table 11 – Transport class 0 header .34
Table 12 – Transport class 1 header .34
Table 13 – Transport class 2 header .34
Table 14 – Transport class 3 header .35
Table 15 – Classes 4 to 6 header format.35
Table 16 – Real-time data header – exclusive owner .36
Table 17 – Real-time data header– redundant owner .36
Table 18 – Forward_Open request format .39
Table 19 – Forward_Open_Good response format .39
Table 20 – Forward_Open_Bad response format .40
Table 21 – Large_Forward_Open request format .41
Table 22 – Large_Forward_Open_Good response format .41
Table 23 – Large_Forward_Open_Bad response format.42
Table 24 – Forward_Close request format.43
Table 25 – Forward_Close_Good response format.43
Table 26 – Forward_Close_Bad response format .43
Table 27 – Unconnected_Send request format.44
Table 28 – Unconnected_Send_Good response format.45
Table 29 – Unconnected_Send_Bad response format .45
Table 30 – Get_Connection_Data request format.46
Table 31 – Get_Connection_Data response format .46
Table 32 – Search_Connection_Data request format .47

---------------------- Page: 11 ----------------------

SIST EN 61158-6-2:2008
– 6 – 61158-6-2 © IEC:2007(E)
Table 33 – Get_Object_Owner request format .
...

Questions, Comments and Discussion

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