SIST EN 61158-6-5:2008
Industrial communication networks - Fieldbus specifications - Part 6-5: Application layer protocol specification - Type 5 elements
Industrial communication networks - Fieldbus specifications - Part 6-5: Application layer protocol specification - Type 5 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 5 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 defines in an abstract way the externally visible behavior provided by the Type 5 fieldbus Application Layer in terms of a) the abstract syntax defining the application layer protocol data units conveyed between communicating application entities, b) the transfer syntax defining the application layer protocol data units conveyed between communicating application entities, c) the application context state machine defining the application service behavior visible between communicating application entities; and d) the application relationship state machines defining the communication behavior visible between communicating application entities; and. 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-5, and 2) define the externally visible behavior associated with their transfer. This standard specifies the protocol of the Type 5 IEC fieldbus Application Layer, in conformance with the OSI Basic Reference Model (ISO/IEC 7498) and the OSI Application Layer Structure (ISO/IEC 9545). FAL services and protocols are provided by FAL application-entities (AE) contained within the application processes. The FAL AE is composed of a set of object-oriented Application Service Elements (ASEs) and a Layer Management Entity (LME) that manages the AE. The ASEs provide communication services that operate on a set of related application process object (APO) classes. One of the FAL ASEs is a management ASE that provides a common set of services for the management of the instances of FAL classes. Although these services specify, from the perspective of applications, how request and responses are issued and delivered, they do not include a specification of what the requesting and responding applications are to do with them. That is, the behavioral aspects of the applications are not specified; only a definition of what requests and responses they can send/receive is specified. This permits greater flexibility to the FAL users in standardizing such object behavior. In addition to these services, some supporting services are also defined in this standard to provide access to the FAL to control certain aspects of its operation.
Industrielle Kommunikationsnetze - Feldbusse - Teil 6-5: Protokollspezifikation des Application Layer (Anwendungsschicht) - Typ 5-Elemente
Réseaux de communication industriels - Spécifications des bus de terrain - Partie 6-5: Spécification des services des couches d'application - Eléments de type 5
Industrijska komunikacijska omrežja - Specifikacije za procesno vodilo - 6-5. del: Specifikacija protokola na aplikacijskem nivoju - Elementi tipa 5 (IEC 61158-6-5:2007)
General Information
Relations
Standards Content (Sample)
SLOVENSKI STANDARD
SIST EN 61158-6-5:2008
01-julij-2008
1DGRPHãþD
SIST EN 61158-6:2004
Industrijska komunikacijska omrežja - Specifikacije za procesno vodilo - 6-5. del:
Specifikacija protokola na aplikacijskem nivoju - Elementi tipa 5 (IEC 61158-6-
5:2007)
Industrial communication networks - Fieldbus specifications - Part 6-5: Application layer
protocol specification - Type 5 elements
Industrielle Kommunikationsnetze - Feldbusse - Teil 6-5: Protokollspezifikation des
Application Layer (Anwendungsschicht) - Typ 5-Elemente
Réseaux de communication industriels - Spécifications des bus de terrain - Partie 6-5:
Spécification des services des couches d'application - Eléments de type 5
Ta slovenski standard je istoveten z: EN 61158-6-5: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-5: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-5:2008
---------------------- Page: 2 ----------------------
SIST EN 61158-6-5:2008
EUROPEAN STANDARD
EN 61158-6-5
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-5: Application layer protocol specification -
Type 5 elements
(IEC 61158-6-5:2007)
Réseaux de communication industriels - Industrielle Kommunikationsnetze -
Spécifications des bus de terrain - Feldbusse -
Partie 6-5: Spécification des services Teil 6-5: Protokollspezifikation
des couches d'application - des Application Layer
Eléments de type 5 (Anwendungsschicht) -
(CEI 61158-6-5:2007) Typ 5-Elemente
(IEC 61158-6-5: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-5:2008 E
---------------------- Page: 3 ----------------------
SIST EN 61158-6-5:2008
EN 61158-6-5:2008 - 2 -
Foreword
The text of document 65C/476/FDIS, future edition 1 of IEC 61158-6-5, 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-5 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-5: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 60559 NOTE Harmonized as HD 592 S1:1991 (not modified).
IEC 61784-1 NOTE Harmonized as EN 61784-1:2008 (not modified).
IEC 61784-3-1 NOTE Harmonized as EN 61784-3-1:2008 (not modified).
__________
---------------------- Page: 4 ----------------------
SIST EN 61158-6-5:2008
- 3 - EN 61158-6-5: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-1 - Industrial communication networks - EN 61158-3-4 2008
Fieldbus specifications -
Part 3-1: Data-link layer service definition -
Type 1 elements
1) 2)
IEC 61158-4-1 - Industrial communication networks - EN 61158-4-4 2008
Fieldbus specifications -
Part 4-1: Data-link layer protocol
specification - Type 1 elements
1) 2)
IEC 61158-5-5 - Industrial communication networks - EN 61158-5-5 2008
Fieldbus specifications -
Part 5-5: Application layer service definition -
Type 5 elements
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-5:2008
---------------------- Page: 6 ----------------------
SIST EN 61158-6-5:2008
IEC 61158-6-5
Edition 1.0 2007-12
INTERNATIONAL
STANDARD
Industrial communication networks – Fieldbus specifications –
Part 6-5: Application layer protocol specification – Type 5 elements
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
PRICE CODE
XE
ICS 35.100.70; 25.040.40 ISBN 2-8318-9477-8
---------------------- Page: 7 ----------------------
SIST EN 61158-6-5:2008
– 2 – 61158-6-5 © IEC:2007(E)
CONTENTS
FOREWORD.7
INTRODUCTION.9
1 Scope.10
1.1 General .10
1.2 Specifications.11
1.3 Conformance.11
2 Normative references .11
3 Terms, definitions, symbols, abbreviations and conventions .11
3.1 Terms and definitions from other ISO/IEC standards .11
3.2 IEC/TR 61158-1 terms.12
3.3 Abbreviations and symbols.16
3.4 Conventions .17
3.5 Conventions used in state machines .17
4 Protocol.19
4.1 Overview .19
4.2 FAL syntax description .19
4.3 Transfer syntax .19
4.4 FAL protocol state machine structure .75
4.5 SMK state machine .75
4.6 VCR state machine.92
4.7 FAL service protocol machine (FSPM).93
4.8 Application relationship protocol machines (ARPMs) .93
4.9 DLL mapping protocol machine (DMPM).108
Bibliography.114
Figure 1 – State transition diagram for SMK.77
Figure 2 – State transition diagram of client / server ARPM .97
Figure 3 – State transition diagram of the publisher / subscriber ARPM . 104
Figure 4 – State transition diagram of DMPM.110
Table 1 – Conventions used for state machines .17
Table 2 – Data types.20
Table 3 – Data types.20
Table 4 – APDU header format .21
Table 5 – FDA address use.22
Table 6 – FDA address header field APDUs sent by a client VCR endpoint.23
Table 7 – FDA address header field APDUs sent by a server VCR endpoint .24
Table 8 – FDA address header field APDUs sent by a publisher VCR endpoint.24
Table 9 – FDA address header field APDUs sent by a report source VCR endpoint .25
Table 10 – APDU trailer fields.25
Table 11 – Request APDU parameters.27
Table 12 – SMK FDA address values.29
Table 13 – SMK FDA address values.30
---------------------- Page: 8 ----------------------
SIST EN 61158-6-5:2008
61158-6-5 © IEC:2007(E) – 3 –
Table 14 – Request APDU parameters.31
Table 15 – SMK FDA address values for SM identify .32
Table 16 – SMK FDA address values for SMK set assignment info request APDUs .32
Table 17 – SMK clear address request APDU parameters.33
Table 18 – SMK FDA address values for SMK set assignment info request APDUs .33
Table 19 – SMK set assignment info request APDU parameters .34
Table 20 – SMK set assignment info response APDU parameters.35
Table 21 – SMK FDA address values for SMK device clear assignment Info APDUs .36
Table 22 – SMK clear assignment info request APDU parameters .36
Table 23 – SMK FDA address values for SMK device annunciation request APDUs.36
Table 24 – SMK device annunciation request APDU parameters.37
Table 25 – Initiate request APDU parameters .40
Table 26 – Initiate response APDU parameters.40
Table 27 – Abort request APDU parameters .40
Table 28 – Get response APDU parameters.41
Table 29 – Identify response APDU parameters.41
Table 30 – Get OD request APDU parameters .41
Table 31 – Get OD response APDU parameters.42
Table 32 – Initiate put OD request APDU parameters .42
Table 33 – Put OD request APDU parameters.42
Table 34 – Generic initiate download sequence request APDU parameters.43
Table 35 – Generic download segment request APDU parameters.44
Table 36 – Generic terminate download sequence request APDU parameters .44
Table 37 – Response APDU parameters .44
Table 38 – Initiate download sequence request APDU parameters.45
Table 39 – Download segment request APDU parameters .45
Table 40 – Download segment response APDU parameters.45
Table 41 – Terminate download sequence request APDU parameters .46
Table 42 – Initiate upload sequence request APDU parameters .46
Table 43 – Upload segment request APDU parameters.47
Table 44 – Upload segment response APDU parameters .47
Table 45 – Terminate upload sequence request APDU parameters .47
Table 46 – Request domain download request APDU parameters .48
Table 47 – Request domain upload request APDU parameters .48
Table 48 – Create program invocation request APDU parameters.49
Table 49 – Create program invocation response APDU parameters .49
Table 50 – Delete program invocation request APDU parameters .49
Table 51 – Start request APDU parameters .50
Table 52 – Stop request APDU parameters.50
Table 53 – Resume request APDU parameters .50
Table 54 – Reset request APDU parameters.51
Table 55 – Kill request APDU parameters .51
Table 56 – Read request APDU parameters.51
---------------------- Page: 9 ----------------------
SIST EN 61158-6-5:2008
– 4 – 61158-6-5 © IEC:2007(E)
Table 57 – Read response APDU parameters .52
Table 58 – Read with subindex request APDU parameters.52
Table 59 – Read with subindex response APDU parameters .52
Table 60 – Write request APDU parameters.52
Table 61 – Write with subindex request APDU parameters.53
Table 62 – Define variable list request APDU parameters .53
Table 63 – Define variable list response APDU parameters .53
Table 64 – Delete variable list request APDU parameters .54
Table 65 – Information report request APDU parameters .54
Table 66 – Information report with subindex request APDU parameters .54
Table 67 – Information report on change request APDU parameters .55
Table 68 – Information report on change with subindex request APDU parameters .55
Table 69 – Event notification request APDU parameters .55
Table 70 – Alter event condition monitoring request APDU parameters.56
Table 71 – Acknowledge event notification request APDU parameters .56
Table 72 – LAN redundancy diagnostic message request APDU parameters .57
Table 73 – LAN redundancy get information response APDU parameters .59
Table 74 – LAN redundancy get statistics request APDU parameters.61
Table 75 – Object description header.63
Table 76 – Null object .63
Table 77 – Structure of the list of object descriptions .64
Table 78 – Structure of a load region in the S-OD.65
Table 79 – Structure of a function invocation in the DP-OD.66
Table 80 – Structure of an event in the S-OD.67
Table 81 – Structure of a data type in the ST-OD.67
Table 82 – Structure of a data type structure description in the ST-OD .68
Table 83 – Structure of a simple variable in the S-OD.68
Table 84 – Structure of an array in the S-OD .69
Table 85 – Structure of a record in the S-OD .70
Table 86 – Structure of a variable list in the DV-OD .71
Table 87 – Common error parameters.72
Table 88 – PI error parameters .72
Table 89 – OD error parameters .72
Table 90 – Error class and error code values .73
Table 91 – SMKPM service primitives .76
Table 92 – SMKPM states.77
Table 93 – SMKPM state table – initialization .78
Table 94 – SMKPM state table – receive transitions.78
Table 95 – SMKPM state table – internal events .83
Table 96 – HseRepeatTimerExpires () .84
Table 97 – RcvNewNetworkAddress (interface, address) .84
Table 98 – RcvMsg ().84
Table 99 – SntpSyncLost ().84
---------------------- Page: 10 ----------------------
SIST EN 61158-6-5:2008
61158-6-5 © IEC:2007(E) – 5 –
Table 100 – AddressToClear (sm_svc) .85
Table 101 – AssignmentInfo_Set () .85
Table 102 – ConfigurationSessionActive () .85
Table 103 – DeviceRedundancyState () .85
Table 104 – DevId_Match (sm_svc) .86
Table 105 – DuplicateQueryIdMatch (sm_svc) .86
Table 106 – DuplicatePdTagDetected ().86
Table 107 – FdaAddressType (sm_svc) .86
Table 108 – IsValid (sm_svc).87
Table 109 – NetworkAddressChange (interface, address) .87
Table 110 – NumberOfAssignedAddresses ().87
Table 111 – OperationalRestore () .87
Table 112 – PdTag_Match (sm_svc) .87
Table 113 – PdTagDeviceIndex_Check (sm_svc).88
Table 114 – Query_Match (sm_svc).88
Table 115 – QueryType (sm_svc) .88
Table 116 – SmCacheEntry (sm_svc) .88
Table 117 – Clear_Address (interface_to_clear) .89
Table 118 – Clear_DuplicatePdTagFlag () .89
Table 119 – Get_AddlCode () .89
Table 120 – New_Address (interface, address).89
Table 121 – Restart_HseRepeatTimer ().90
Table 122 – Restore_Defaults () .90
Table 123 – Send_SM_CommonErrorRsp (sm_service_type, svc_spec_params).90
Table 124 – Send_SM_ReqRspMessage (sm_svc) .90
Table 125 – Set_Assignment_Data (sm_svc) .90
Table 126 – Set_DuplicatePdTagFlag ().91
Table 127 – SvcType (sm_svc) .91
Table 128 – Additional code used by error class and code.91
Table 129 – Additional code parameter IDs.92
Table 130 – Primitives issued by FSPM to ARPM .94
Table 131 – Primitives issued by ARPM to FSPM .94
Table 132 – Parameters used with primitives exchanged between FSPM and ARPM .95
Table 133 – Client / Server ARPM states .97
Table 134 – Client / server ARPM state table – sender transitions .98
Table 135 – Client / server ARPM state table – receiver transitions .99
Table 136 – Primitives issued by FSPM to ARPM .101
Table 137 – Primitives issued by ARPM to FSPM .102
Table 138 – Parameters used with primitives exchanged between FSPM and ARPM . 102
Table 139 – Publisher / subscriber ARPM states.103
Table 140 – MulticastARPM state table – sender transitions . 104
Table 141 – MulticastARPM state table – receiver transitions . 105
Table 142 – BuildFAL-ErrPDU() .105
---------------------- Page: 11 ----------------------
SIST EN 61158-6-5:2008
– 6 – 61158-6-5 © IEC:2007(E)
Table 143 – BuildFAL-ReqRspPDU() .106
Table 144 – GetArepId() .106
Table 145 – ConfigurationArCheckOK() .106
Table 146 – FAL_Pdu_BufferSize().106
Table 147 – FAL_Pdu_Confirmed() .106
Table 148 – FAL_Pdu_DuplicateMsg () .106
Table 149 – FAL_Pdu_GetVcrId() .107
Table 150 – FAL_Pdu_InactivityCloseTime().107
Table 151 – FAL_Pdu_TransmitDelayTime() .107
Table 152 – FAL_Pdu_SvcType() .107
Table 153 – FAL_Pdu_RemoteAddress() .107
Table 154 – FAL_Pdu_TrailerFields().107
Table 155 – FAL_Pdu_ServiceSpecificParameters() .108
Table 156 – FAL_Pdu_Valid() .108
Table 157 – MaxOutstandingReached() .108
Table 158 – StartInactivityCloseTimer() .
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.