Digital data communication for measurement and control - Fieldbus for use in industrial control systems -- Part 6: Application layer protocol specification

This part of EN 61158 is one of a series produced to facilitate the interconnection of automation system components. It is related to other standards in the set as defined by the three-layer Fieldbus Reference Model, which is based in part on the Basic Reference Model for Open Systems Interconnection. Both Reference Models subdivide the area of standardisation for interconnection into a series of layers of specification, each of manageable size. This standard describes the Fieldbus Application Layer (FAL) protocol that defines the information interchange and the interactions between Application Entity invocations (AE-Is) to support the Application Services. The Application Protocol provides the Application Service by making use of the services available from the Data Link Layer or other immediately lower layer.

Digitale Datenkommunikation in der Leittechnik - Feldbus für industrielle Leitsysteme -- Teil 6: Spezifikation des Protokolls der Anwendungsschicht (Application Layer)

Communications numériques pour les systèmes de mesure et de commande - Bus de terrain utilisés dans les systèmes de commande industriels -- Partie 6: Spécification du protocole de la couche d'application

Veuillez noter que cette partie est également disponible sur un CD-ROM spécial qui contient les parties EN 61158-2 (y compris 2 amendements), EN 61158-3, EN 61158-4, EN 61158-5 et EN 61158-6 au prix préférentiel de CHF 459,00

Digital data communication for measurement and control - Fieldbus for use in industrial control systems - Part 6: Application layer protocol specification

General Information

Status
Withdrawn
Publication Date
30-Nov-2004
Withdrawal Date
27-Oct-2016
Current Stage
9900 - Withdrawal (Adopted Project)
Start Date
27-Oct-2016
Due Date
19-Nov-2016
Completion Date
28-Oct-2016

Relations

Buy Standard

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

Standards Content (Sample)

SLOVENSKI STANDARD
SIST EN 61158-6:2004
01-december-2004
1DGRPHãþD
SIST EN 50170:2001
SIST EN 50170:2001/A1:2003
SIST EN 50170:2001/A2:2001
SIST EN 50254:2001
SIST EN 61158-6-4:2008
Digital data communication for measurement and control - Fieldbus for use in
industrial control systems - Part 6: Application layer protocol specification
Digital data communication for measurement and control - Fieldbus for use in industrial
control systems -- Part 6: Application layer protocol specification
Digitale Datenkommunikation in der Leittechnik - Feldbus für industrielle Leitsysteme --
Teil 6: Spezifikation des Protokolls der Anwendungsschicht (Application Layer)
Communications numériques pour les systèmes de mesure et de commande - Bus de
terrain utilisés dans les systèmes de commande industriels -- Partie 6: Spécification du
protocole de la couche d'application
Ta slovenski standard je istoveten z: EN 61158-6:2004
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:2004 en
2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.

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

SIST EN 61158-6:2004

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

SIST EN 61158-6:2004
EUROPEAN STANDARD EN 61158-6
NORME EUROPÉENNE
EUROPÄISCHE NORM July 2004

ICS 25.040; 35.100; 35.240.50 Partially supersedes EN 50170:1996 + A1:2002 + A2:1999 + A3:2002 and EN 50254:1998


English version


Digital data communication for measurement and control -
Fieldbus for use in industrial control systems
Part 6: Application layer protocol specification
(IEC 61158-6:2003 + corrigendum 2004)


Communications numériques pour les Digitale Datenkommunikation
systèmes de mesure et de commande - in der Leittechnik -
Bus de terrain utilisés dans les systèmes Feldbus für industrielle Leitsysteme
de commande industriels Teil 6: Spezifikation des Protokolls der
Partie 6: Spécification du protocole Anwendungsschicht (Application Layer)
de la couche d'application (IEC 61158-6:2003 + Corrigendum 2004)
(CEI 61158-6:2003 + corrigendum 2004)






This European Standard was approved by CENELEC on 2004-03-16. 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 one official version (English). 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, Cyprus, Czech
Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia,
Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Slovakia, Slovenia, Spain, Sweden,
Switzerland and 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


© 2004 CENELEC - All rights of exploitation in any form and by any means reserved worldwide for CENELEC members.

Ref. No. EN 61158-6:2004 E

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

SIST EN 61158-6:2004
EN 61158-6:2004 - 2 -
Foreword
The text of the International Standard IEC 61158-6:2003, prepared by SC 65C, Digital
communications, of IEC TC 65, Industrial-process measurement and control, was submitted to the
Unique Acceptance Procedure and was approved by CENELEC as EN 61158-6 on 2004-03-16 with
inclusion of the accepted future IEC corrigendum.
This European Standard, together with EN 61158-2:2004 to EN 61158-5:2004 and EN 61784-1:2004,
supersedes EN 50170:1996 + A1:2002 (+ corr. Aug. 2002) + A2:1999 + A3:2002 (+ corr. Aug. 2002)
and EN 50254:1998.
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) 2005-04-01
– latest date by which the national standards conflicting
with the EN have to be withdrawn (dow) 2007-04-01
The International Electrotechnical Commission (IEC) and CENELEC draw attention to the fact that it is
claimed that compliance with this document may involve the use of patents as follows, where the [xx]
notation indicates the holder of the patent right:
Type 8 and possibly other types:
 DE 197 39 297 A1 [PxC] Automatisierungssystem und Steuervorrichtung zur
transparenten Kommunikation zwischen verschiedenen
Netzwerken
 US Application number 09/145,848 Filling Date 09/02/98
  [PxC] Automation System and connecting Apparatus for the
Transparent Communication between two Networks
The IEC and CENELEC take no position concerning the evidence, validity and scope of these patent
rights.
The holders of these patent rights have assured the IEC that they are willing to negotiate licences
under reasonable and non-discriminatory terms and conditions with applicants throughout the world. In
this respect, the statements of the holders of these patent rights are registered with the IEC.
Information may be obtained from:
[PxC]: Phoenix Contact GmbH & Co. KG
Referat Patente / Patent Department
Postfach 1341
D-32819 Blomberg
Germany
Attention is drawn to the possibility that some of the elements of this document may be the subject of
patent rights other than those identified above. IEC and CENELEC shall not be held responsible for
identifying any or all such patent rights.
Annex ZA has been added by CENELEC.
__________

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

SIST EN 61158-6:2004
- 3 - EN 61158-6:2004
Endorsement notice
The text of the International Standard IEC 61158-6:2003 and its corrigendum July 2004 was approved
by CENELEC as a European Standard without any modification.
__________

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

SIST EN 61158-6:2004
EN 61158-6:2004 - 4 -
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 Where an international publication has been modified by common modifications, indicated by (mod), the relevant
EN/HD applies.
Publication Year Title EN/HD Year
IEC 60559 1989 Binary floating-point arithmetic for HD 592 S1 1991
microprocessor systems

1)
IEC 61131-3 1993 Programmable controllers EN 61131-3 1993
Part 3: Programming languages

IEC 61158-3 2003 Digital data communication for EN 61158-3 2004
measurement and control - Fieldbus
for use in industrial control systems
Part 3: Data Link Layer service
definition

IEC 61158-4 2003 Part 4: Data Link Layer protocol EN 61158-4 2004
+ corr. July 2004 specification

IEC 61158-5 2003 Part 5: Application Layer service EN 61158-5 2004
+ corr. July 2004 definition

ISO/IEC 7498 Series Information technology - Open - -
Systems Interconnection - Basic
reference model

ISO/IEC 8822 1994 Information technology - Open - -
Systems Interconnection -
Presentation service definition

ISO/IEC 8824 1990 Information technology - Open - -
Systems Interconnection -
Specification of Abstract Syntax
Notation One (ASN.1)

ISO/IEC 8825 1990 Information technology - Open - -
Systems Interconnection -
Specification of Basic Encoding Rules
for Abstract Syntax Notation One
(ASN.1)

ISO/IEC 9506-2 1990 Industrial automation systems - EN ISO/IEC 9506-2 1993
Manufacturing message specification
Part 2: Protocol specification


1)

EN 61131-1:1993 is superseded by EN 61131-1:2003, which is based on IEC 61131-1:2003.

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

SIST EN 61158-6:2004
- 5 - EN 61158-6:2004
Publication Year Title EN/HD Year
ISO/IEC 9545 1994 Information technology - Open - -
Systems Interconnection - Application
Layer structure

ISO/IEC 10646 Series Information technology - Universal - -
Multiple-Octet Coded Character Set
(UCS)

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

ISO/IEC 8649 1996 Information technology - Open - -
Systems Interconnection - Service
definition for the Association Control
Service Element (ACSE)

ISO/IEC 8650 Series Information technology - Open - -
Systems Interconnection - Connection-
oriented protocol for the association
control service element protocol
specification

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

SIST EN 61158-6:2004

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

SIST EN 61158-6:2004
INTERNATIONAL IEC
STANDARD 61158-6
Third edition
2003-05
Digital data communications
for measurement and control –
Fieldbus for use in industrial
control systems –
Part 6:
Application layer protocol specification
© IEC 2003 ⎯ Copyright - all rights reserved
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 the publisher.
International Electrotechnical Commission, 3, rue de Varembé, PO Box 131, CH-1211 Geneva 20, Switzerland
Telephone: +41 22 919 02 11 Telefax: +41 22 919 03 00 E-mail: inmail@iec.ch  Web: www.iec.ch
PRICE CODE
Commission Electrotechnique Internationale XW
International Electrotechnical Commission
ɆɟɠɞɭɧɚɪɨɞɧɚɹɗɥɟɤɬɪɨɬɟɯɧɢɱɟɫɤɚɹɄɨɦɢɫɫɢɹ
For price, see current catalogue

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

SIST EN 61158-6:2004
– 2 – 61158-6 ” IEC:2003(E)
CONTENTS
FOREWORD.32
0 Introduction.34
1 Scope .36
2 Normative references.37
3 Terms and definitions.38
3.1 Summary.38
3.2 Terms and definitions from other ISO/IEC standards .38
3.3 Terms and definitions from IEC 61158-5.39
3.4 Other terms and definitions.39
3.5 Abbreviations and symbols .49
3.6 Conventions .53
3.7 Conventions used in state machines.61
4 Type 1 .68
4.1 FAL syntax description .68
4.2 Transfer syntaxes.107
4.3 FAL protocol state machines structure.132
4.4 AP-Context state machine .134
4.5 FAL Service Protocol Machine (FSPM) .151
4.6 Application Relationship Protocol Machines (ARPMs).157
4.7 DLL Mapping Protocol Machine (DMPM) .298
4.8 Protocol options .312
5 Type 2 . 316
5.1 Abstract syntax.316
5.2 Transfer syntax .390
5.3 Structure of FAL protocol state machines .402
5.4 Context state machine.402
5.5 FAL Service Protocol Machine (FSPM) .402
5.6 Application Relationship Protocol Machines (ARPMs).408
5.7 DLL Mapping Protocol Machine (DMPM) .492
5.8 Alternate DLL mapping protocol machine.496
6 Type 3 . 502
6.1 FAL syntax description .502
6.2 Transfer syntax .506
6.3 FAL protocol state machines .553
6.4 AP-Context state machine .567
6.5 FAL Service Protocol Machines (FSPMs) .567
6.6 Application Relationship Protocol Machines (ARPMs).650
6.7 DLL Mapping Protocol Machines (DMPMs) .791
6.8 Parameters for a DP-slave.827
7 Type 4 . 828
7.1 FAL syntax description .828
7.2 Transfer syntaxes.830
7.3 FAL Protocol State Machines.837
7.4 AP-Context State Machine.838
7.5 FAL Service Protocol Machine (FSPM) .838

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

SIST EN 61158-6:2004
61158-6 ” IEC:2003(E) – 3 –
7.6 Application Relationship Protocol Machine (ARPM) .843
7.7 DLL Mapping Protocol Machine (DMPM) .846
7.8 Protocol options .849
8 Type 5 . 850
8.1 Overview .850
8.2 FAL Syntax Description .850
8.3 Transfer syntax .850
8.4 FAL Protocol State Machine Structure .899
8.5 SMK State Machine .899
8.6 VCR State Machine .914
8.7 FAL Service Protocol Machine (FSPM) .915
8.8 Application Relationship Protocol Machines (ARPMs).916
8.9 DLL Mapping Protocol Machine (DMPM) .930
9 Type 6 . 936
9.1 Reference.936
9.2 Usage of Parameters.936
9.3 AP Context State Tables .936
9.4 Application Relationship protocol machines (ARPMs) .936
9.5 DLL Mapping protocol machine (DMPM).952
10 Type 7 . 962
10.1 Abstract syntax of data type .962
10.2 Transfer Syntaxes .967
10.3 Structure of Protocol Machines. 1027
10.4 AP-Context state machine . 1028
10.5 Sub-MMS FAL Service Protocol Machine (FSPM). 1028
10.6 DLL Mapping Protocol Machine (DMPM) and Association Relationship
Protocol Machine (ARPM ) . 1033
10.7 Protocol options . 1081
11 Type 8 . 1101
11.1 FAL Syntax Description . 1101
11.2 Transfer Syntax . 1110
11.3 Protocol Machine Overview . 1118
11.4 AP-Context State Machine. 1119
11.5 FAL Service Protocol Machine (FSPM) . 1119
11.6 Application Relationship Protocol Machines (ARPMs). 1119
11.7 DLL Mapping Protocol Machine . 1128
12 Type 9 . 1139
12.1 FAL syntax description . 1139
12.2 Transfer Syntax . 1158
12.3 FAL Protocol State Machines Structure . 1167
12.4 VCR PM State Machine . 1170
12.5 AREP State Machines . 1182
13 Type 10. 1230
13.1 FAL Syntax Description . 1230
13.2 Transfer Syntax . 1247
13.3 FAL Protocol State Machines. 1247

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

SIST EN 61158-6:2004
– 4 – 61158-6 ” IEC:2003(E)
13.4 AP Context State Machine. 1248
13.5 FAL Service Protocol Machines (FSPM) . 1248
13.6 Application Relationship Protocol Machine (ARPM) . 1303
13.7 DLL Mapping Protocol Machine (DMPM) . 1306
13.8 Protocol Options. 1309
Figure 1 – Relationship of IEC 61158-6 to other fieldbus layers and to users of the
fieldbus Application service.34
Figure 2 – Attribute table format and terms .53
Figure 3 – Service request/response parameter .54
Figure 4 – Common structure of specific fields.58
Figure 5 – Example of an STD .63
Figure 6 – Example of an evaluation net .67
Figure 7 – APDU overview .108
Figure 8 – Identification information (format 1).108
Figure 9 – Identification information (format 2).109
Figure 10 – Identification information (format 3) .109
Figure 11 – Identification information (format 4) .109
Figure 12 – Coding of the data type BinaryDate .111
Figure 13 – Encoding of Time of Day value.111
Figure 14 – Encoding of Time Difference value .112
Figure 15 – Encoding Time value.112
Figure 16 – Encoding of data of data type DLTime-offset.113
Figure 17 – Structure of an object definition.114
Figure 18 – APDU overview .117
Figure 19 – Type field .117
Figure 20 – Identifier octet (context-specific) .118
Figure 21 – Identifier octet (FAL-specific) .118
Figure 22 – Length octet (one-octet format) .119
Figure 23 – Length octet (three-octet format) .119
Figure 24 – APDU overview .127
Figure 25 – Relationships among protocol machines and adjacent layers .133
Figure 26 – AP to AP-Context initiation state machine .135
Figure 27 – State transition diagram of FSPM.153
Figure 28 – State transition diagram of the QUU ARPM .160
Figure 29 – State transition diagram of QUB-CO ARPM.169
Figure 30 – State transition diagram of the QUB-CL ARPM.181
Figure 31 – State transition diagram of QUB-seg ARPM .191
Figure 32 – State transition diagram of QUB-FC ARPM .211
Figure 33 – State transition diagram of BUB ARPM.238
Figure 34 – State transition diagram of BNB ARPM (basic state machine) .254
Figure 35 – State transition diagram of BNB ARPM (confirmed service sending and
receiving – client) .255
Figure 36 – State transition diagram of BNB ARPM (confirmed service receiving and
responding – server).255
Figure 37 – State transition diagram of BNB ARPM (unconfirmed service sending- client) .255
Figure 38 – State transition diagram of the BNU ARPM .279

---------------------- Page: 12 ----------------------

SIST EN 61158-6:2004
61158-6 ” IEC:2003(E) – 5 –
Figure 39 – State transition diagram of the BNU-MP ARPM .291
Figure 40 – State transition diagram of DMPM .304
Figure 41 – Primitives exchanged between protocol machines .313
Figure 42 – Primitives exchanged between protocol machines .314
Figure 43 – Primitives exchanged between protocol machines .315
Figure 44– Network connection parameters .333
Figure 45 – Time tick .335
Figure 46 – Connection establishment time-out.337
Figure 47 – Segment type.352
Figure 48 – Port segment.353
Figure 49 – Encapsulation message .377
Figure 50 – FixedLengthBitString compact encoding bit placement rules .394
Figure 51 – Example compact encoding of a OCTET FixedLengthBitString .394
Figure 52 – Example compact encoding of a WORD FixedLengthBitString.395
Figure 53 – Example compact encoding of a DWORD FixedLengthBitString .395
Figure 54 – Example compact encoding of a LWORD FixedLengthBitString.395
Figure 55 – Example 2 of formal encoding of a structure type specification.399
Figure 56 – Example of abbreviated encoding of a structure type specification .399
Figure 57 – Example 1 of formal encoding of an array type specification.400
Figure 58 – Example 2 of formal encoding of an array type specification.401
Figure 59 – Example 1 of abbreviated encoding of an array type specification .401
Figure 60 – Example 2 of abbreviated encoding of an array type specification .402
Figure 61 – State transition diagram of UCMM client.411
Figure 62 – State transition diagram of high–end UCMM server.413
Figure 63 – State transition diagram of low–end UCMM server .415
Figure 64 – Sequence diagram for a UCMM with one outstanding message.416
Figure 65 – Sequence diagram for a UCMM with multiple outstanding messages.417
Figure 66 – TPDU buffer .418
Figure 67 – Data flow diagram using a client transport class 0 and server transport class 0 420
Figure 68 – Sequence diagram of data transfer using transport class 0.421
Figure 69 – Class 0 client STD.
...

Questions, Comments and Discussion

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