IEC 61158-6-7:2007
(Main)Industrial communication networks - Fieldbus specifications - Part 6-7: Application layer protocol specification - Type 7 elements
Industrial communication networks - Fieldbus specifications - Part 6-7: Application layer protocol specification - Type 7 elements
IEC 61158-6-7:2007 describes the fieldbus application layer (FAL) which 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." It specifies the protocol of the Type 7 fieldbus application layer, in conformance with the OSI Basic Reference Model (ISO/IEC 7498) and the OSI application layer structure (ISO/IEC 9545). This first edition and its companion parts of the IEC 61158-6 subseries cancel and replace IEC 61158-6:2003. It includes the following changes:
- deletion of the former Type 6 fieldbus for lack of market relevance;
- addition of new types of fieldbuses;
- partition of part 6 of the third edition into multiple parts numbered -6 2, -6 3,.... This bilingual version (2013-09) corresponds to the monolingual English version, published in 2007-12.
Réseaux de communication industriels - Spécifications des bus de terrain - Partie 6-7: Spécifications de protocole de la couche d'application - Éléments de Type 7
La CEI 61158-6-7:2007 décrit la couche d'application de bus de terrain (FAL, "Fieldbus Application Layer") qui fournit aux programmes utilisateur un moyen d'accès à l'environnement de communication des bus de terrain. À cet égard, la FAL peut être considérée comme une "fenêtre entre les programmes d'application correspondants." Elle spécifie le protocole de la couche application de bus de terrain de Type 7, conformément au modèle de référence de base OSI (ISO/CEI 7498) et à la structure de la couche application OSI (ISO/CEI 9545). Cette première édition et ses parties d'accompagnement de la série CEI 61158-6 annulent et remplacent la CEI 61158-6:2003. Elle inclut les modifications suivantes:
- suppression de l'ancien bus de terrain de Type 6 du fait d'un manque de pertinence pour le marché;
- addition de nouveaux types de bus de terrain;
- répartition de la partie 6 de la troisième édition en plusieurs parties numérotées -6 2, -6 3,... La présente version bilingue (2013-09) correspond à la version anglaise monolingue publiée en 2007-12.
General Information
Relations
Standards Content (Sample)
IEC 61158-6-7
Edition 1.0 2007-12
INTERNATIONAL
STANDARD
Industrial communication networks – Fieldbus specifications –
Part 6-7: Application layer protocol specification – Type 7 elements
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
3, rue de Varembé
CH-1211 Geneva 20
Switzerland
Email: inmail@iec.ch
Web: www.iec.ch
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 corrigenda or an amendment might have been published.
ƒ Catalogue of IEC publications: www.iec.ch/searchpub
The IEC on-line Catalogue enables you to search by a variety of criteria (reference number, text, technical committee,…).
It also gives information on projects, withdrawn and replaced publications.
ƒ IEC Just Published: www.iec.ch/online_news/justpub
Stay up to date on all new IEC publications. Just Published details twice a month all new publications released. Available
on-line and also by email.
ƒ Electropedia: www.electropedia.org
The world's leading online dictionary of electronic and electrical terms containing more than 20 000 terms and definitions
in English and French, with equivalent terms in additional languages. Also known as the International Electrotechnical
Vocabulary online.
ƒ Customer Service Centre: www.iec.ch/webstore/custserv
If you wish to give us your feedback on this publication or need further assistance, please visit the Customer Service
Centre FAQ or contact us:
Email: csc@iec.ch
Tel.: +41 22 919 02 11
Fax: +41 22 919 03 00
IEC 61158-6-7
Edition 1.0 2007-12
INTERNATIONAL
STANDARD
Industrial communication networks – Fieldbus specifications –
Part 6-7: Application layer protocol specification – Type 7 elements
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
PRICE CODE
XG
ICS 35.100.70; 25.040.40 ISBN 2-8318-9484-0
– 2 – 61158-6-7 © IEC:2007(E)
CONTENTS
FOREWORD.6
INTRODUCTION.8
1 Scope.9
1.1 General .9
1.2 Specifications.9
1.3 Conformance.9
2 Normative references .10
3 Terms, definitions, symbols, abbreviations and conventions .10
3.1 Terms and definitions from other ISO/IEC standards .10
3.2 Terms and definitions from IEC 61158-5-7.11
3.3 Additional terms and definitions.12
3.4 Abbreviations and symbols.16
3.5 Conventions .16
3.6 Conventions used in state machines .16
4 Abstract syntax of data type .17
4.1 Data abstract syntax specification .17
4.2 FAL PDU abstract syntax .21
5 Transfer syntaxes.22
5.1 Compact encoding.22
5.2 Data type encoding .23
6 Structure of protocol machines .82
7 AP-context state machine.83
8 Sub-MMS FAL service protocol machine (FSPM).83
8.1 General .83
8.2 Projection of the SUB-MMS PDUs on the MCS services .83
8.3 Projection of the SUB-MMS abort service on the MCS services .83
8.4 Construction of a SUB-MMS-PDU from a service primitive .84
8.5 Extraction of a valid service primitive from a SUB-MMS-PDU .84
8.6 Negotiation of an abstract syntax and a transfer syntax commonly called
presentation-context.84
8.7 Identification of the SUB-MMS core abstract syntax .86
8.8 Identification of the application context name .87
8.9 Identification of the ASE of the core abstract syntax and the transfer syntax .87
9 Association relationship protocol machine (ARPM ) .87
10 DLL mapping protocol machine (DMPM).88
10.1 MPS ARPM and DMPM .88
10.2 MCS ARPM and DMPM .99
11 Protocol options .135
11.1 Conformances classes .135
Bibliography.155
Figure 1 – Example of an evaluation net .17
Figure 2 – Encoding of a CompactValue .22
Figure 3 – Organisation of the bits and octets within a PDU.24
61158-6-7 © IEC:2007(E) – 3 –
Figure 4 – Encoding of a Bitstring .27
Figure 5 – Encoding of a Floating point value .28
Figure 6 – Encoding of a structure .29
Figure 7 – Encoding of a Boolean array .30
Figure 8 – Representation of a MCS PDU .36
Figure 9 – Relationships among Protocol Machines and Adjacent Layers .82
Figure 10 – A_Readloc service evaluation net .88
Figure 11 – A_Writeloc service evaluation net.89
Figure 12 – A_Update service evaluation net .90
Figure 13 – A_Readfar service evaluation net.91
Figure 14 – A_Writefar service evaluation net .93
Figure 15 – A_Sent service evaluation net .94
Figure 16 – A_Received service evaluation net.94
Figure 17 – Association establishment: Requester element state machine . 101
Figure 18 – Association establishment: Responder element state machine . 102
Figure 19 – Association termination: Requester element state machine . 104
Figure 20 – Association termination: Responder element state machine . 106
Figure 21 – Association revocation: Requester element state machine . 107
Figure 22 – Association revocation: Acceptor element state machine. 108
Figure 23 – Interactions between state machine in an associated mode data transfer . 110
Figure 24 – Transfer service: Requester element state machine . 114
Figure 25 – Transfer service: Acceptor element state machine . 115
Figure 26 – Unacknowledged transfer: Requester element state machine . 116
Figure 27 – Unacknowledged transfer: Acceptor element state machine . 116
Figure 28 – Acknowledged transfer: Requester element state machine . 118
Figure 29 – Acknowledged transfer: Acceptor element state machine . 119
Figure 30 – Numbering mechanism state machine .120
Figure 31 – Retry machanism state machine.122
Figure 32 – Anticipation mechanism state machine.125
Figure 33 – Segmentation mechanism state machine.127
Figure 34 – Reassembly mechanism state machine . 129
Figure 35 – Interaction of state machine in a non associated data transfer . 131
Figure 36 – Unacknowledged transfer: Requester element state machine . 132
Figure 37 – Unacknowledged transfer: Acceptor element state machine . 132
Figure 38 – Acknowledged transfer: Requester element state machine . 133
Figure 39 – Acknowledged transfer: Acceptor element state machine . 134
Table 1 – Example of encoding of a SEQUENCE .19
Table 2 – Example of encoding of a SEQUENCE OF .19
Table 3 – Example of encoding of a CHOICE.20
Table 4 – Example of encoding of an object identifier .21
Table 5 – Example of encoding of a PDU.22
Table 6 – MPS PDU types .25
– 4 – 61158-6-7 © IEC:2007(E)
Table 7 – Fields of a CompactValuePDU .25
Table 8 – Fields of a VariableDescriptionPDU.32
Table 9 – Fields of an AccessDescriptionPDU .33
Table 10 – Fields of a TypeDescriptionPDU.34
Table 11 – Fields of a ListDescriptionPDU .35
Table 12 – Coding of the different MCS PDU types.37
Table 13 – Coding of the variable part of the PDU .37
Table 14 – Structure of association establishment request.38
Table 15 – Structure of an associated establishment response .42
Table 16 – Structure of an association termination request .44
Table 17 – Structure of an association termination response .44
Table 18 – Structure of an association revocation request .45
Table 19 – Structure of an associated transfer request .46
Table 20 – Structure of an associated transfer acknowledgement .46
Table 21 – Structure of a non-associated transfer request .47
Table 22 – Structure of a non-associated transfer acknowledgement .48
Table 23 – Definitions of object classes .50
Table 24 – Definition of Sub-MMS Services .51
Table 25 – Structure of the antiduplication list.123
Table 26 – Structure of the reassembly list .128
Table 27 – PV_R/W parameter values .136
Table 28 – PV_IND parameter values .136
Table 29 – PV_LIS parameter values.136
Table 30 – Constraints on PV_LIS parameter .137
Table 31 – PV_AT parameter values.137
Table 32 – PV_RE parameter values .137
Table 33 – PV_UT parameter values.137
Table 34 – Constraints on PV_RE parameter .137
Table 35 – PH_R_A parameter values .138
Table 36 – PH_R_S parameter values .138
Table 37 – PH_R_P parameter values .138
Table 38 – PH_P_A parameter values .139
Table 39 – PH_P_S parameter values .139
Table 40 – PH_P_P parameter values .139
Table 41 – PH_COH parameter values .139
Table 42 – PH_FIA parameter values.140
Table 43 – PH_SPF parameter values .140
Table 44 – PH_SPM parameter values.140
Table 45 – PH_ACC parameter values.141
Table 46 – PH_RES parameter values .141
Table 47 – PH_AK parameter values .141
Table 48 – PH_RA parameter values .141
Table 49 – PH_SR parameter values .141
61158-6-7 © IEC:2007(E) – 5 –
Table 50 – PH_CF parameter values .142
Table 51 – Constraints on PH_RA parameter.142
Table 52 – Constraints on PH_SR parameter.142
Table 53 – PT_OCT parameter values .142
Table 54 – PT_BIN parameter values.143
Table 55 – PT_VIS parameter values.143
Table 56 – PT_BOO parameter values.143
Table 57 – PT_BCD parameter values .143
Table 58 – PT_BTM parameter values .144
Table 59 – PT_INT parameter values.144
Table 60 – PT_UNS parameter values .144
Table 61 – PT_FPT parameter values.144
Table 62 – PT_GTM parameter values.145
Table 63 – PT_TAB parameter values.145
Table 64 – PT_STR parameter values .145
Table 65 – Constraints on PT_TAB parameter .146
Table 66 – Constraints on PT_STR parameter .146
Table 67 – Conformance classes for environment management. 149
Table 68 – Conformance classes for VMD management .150
Table 69 – Conformance classes for PI managment.151
Table 70 – Conformance classes for domain management. 152
Table 71 – Conformance classes for variable/variable list management .153
Table 72 – Conformance classes for event management . 154
– 6 – 61158-6-7 © IEC:2007(E)
INTERNATIONAL ELECTROTECHNICAL COMMISSION
____________
INDUSTRIAL COMMUNICATION NETWORKS –
FIELDBUS SPECIFICATIONS –
Part 6-7: Application layer protocol specification – Type 7 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 provides no marking procedure to indicate its approval and cannot be rendered responsible for any
equipment declared to be in conformity with an IEC Publication.
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.
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 IEC 61784 series. Use of the various protocol types in other
combinations may require permission from their respective intellectual-property-right holders.
International Standard IEC 61158-6-7 has been prepared by subcommittee 65C: Industrial
networks, of IEC technical committee 65: Industrial-process measurement, control and
automation.
This first edition and its companion parts of the IEC 61158-6 subseries cancel and replace
IEC 61158-6:2003. This edition of this part constitutes an editorial revision.
This edition of IEC 61158-6 includes the following significant changes from the previous
edition:
a) deletion of the former Type 6 fieldbus for lack of market relevance;
b) addition of new types of fieldbuses;
c) partition of part 6 of the third edition into multiple parts numbered -6-2, -6-3, …
61158-6-7 © IEC:2007(E) – 7 –
The text of this standard is based on the following documents:
FDIS Report on voting
65C/476/FDIS 65C/487/RVD
Full information on the voting for the approval of this standard can be found in the report on
voting indicated in the above table.
This publication has been drafted in accordance with ISO/IEC Directives, Part 2.
The committee has decided that the contents of this publication will remain unchanged until
the maintenance result date indicated on the IEC web site under http://webstore.iec.ch in the
data related to the specific publication. At this date, the publication will be:
• reconfirmed;
• withdrawn;
• replaced by a revised edition, or
• amended.
NOTE The revision of this standard will be synchronized with the other parts of the IEC 61158 series.
The list of all the parts of the IEC 61158 series, under the general title Industrial
communication networks – Fieldbus specifications, can be found on the IEC web site.
– 8 – 61158-6-7 © IEC:2007(E)
INTRODUCTION
This part of IEC 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 described in IEC/TR 61158-1.
The application protocol provides the application service by making use of the services
available from the data-link or other immediately lower layer. The primary aim of this standard
is to provide a set of rules for communication expressed in terms of the procedures to be
carried out by peer application entities (AEs) at the time of communication. These rules for
communication are intended to provide a sound basis for development in order to serve a
variety of purposes:
• as a guide for implementors and designers;
• for use in the testing and procurement of equipment;
• as part of an agreement for the admittance of systems into the open systems environment;
• as a refinement to the understanding of time-critical communications within OSI.
This standard is concerned, in particular, with the communication and interworking of sensors,
effectors and other automation devices. By using this standard together with other standards
positioned within the OSI or fieldbus reference models, otherwise incompatible systems may
work together in any combination.
61158-6-7 © IEC:2007(E) – 9 –
INDUSTRIAL COMMUNICATION NETWORKS –
FIELDBUS SPECIFICATIONS –
Part 6-7: Application layer protocol specification – Type 7 elements
1 Scope
1.1 General
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 7 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 7 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
• define the wire-representation of the service primitives defined in IEC 61158-5-7, and
• define the externally visible behavior associated with their transfer.
This standard specify the protocol of the Type 7 fieldbus application layer, in conformance
with the OSI Basic Reference Model (ISO/IEC 7498) and the OSI application layer structure
(ISO/IEC 9545).
1.2 Specifications
The principal objective of this standard is to specify the syntax and behavior of the application
layer protocol that conveys the application layer services defined in IEC 61158-5-7.
A secondary objective is to provide migration paths from previously-existing industrial
communications protocols. It is this latter objective which gives rise to the diversity of
protocols standardized in parts of the IEC 61158-6 series.
1.3 Conformance
This standard does not specify individual implementations or products, nor does it constrain
the implementations of application layer entities within industrial automation systems.
– 10 – 61158-6-7 © IEC:2007(E)
There is no conformance of equipment to the application layer service definition standard.
Instead, conformance is achieved through implementation of this application layer protocol
specification.
2 Normative references
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.
IEC 60559, Binary floating-point arithmetic for microprocessor systems
IEC 61158-3-7, Industrial communication networks – Fieldbus specifications – Part 3-7: Data-
link layer service definition – Type 7 elements
IEC 61158-4-7, Industrial communication networks – Fieldbus specifications – Part 4-7: Data-
link layer protocol specification – Type 7 elements
IEC 61158-5-7, Industrial communication networks – Fieldbus specifications – Part 5-7:
Application layer service definition – Type 7 elements
ISO/IEC 7498-1, Information technology – Open Systems Interconnection – Basic Reference
Model — Part 1: The Basic Model
ISO/IEC 8824, Information technology – Open Systems Interconnection – Specification of
Abstract Syntax Notation One (ASN.1)
ISO/IEC 8825, Information technology – ASN.1 encoding rules: Specification of Basic
Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules
(DER)
ISO/IEC 9506-2, Industrial automation systems – Manufacturing Message Specification – Part
2: Protocol specification
ISO/IEC 9545, Information technology – Open Systems Interconnection – Application Layer
structure
3 Terms, definitions, symbols, abbreviations and conventions
For the purposes of this document, the following definitions apply.
3.1 Terms and definitions from other ISO/IEC standards
3.1.1 Terms and definitions from ISO/IEC 7498-1
a) abstract syntax
b) application entity
c) application process
d) application protocol data unit
e) application service element
f) application entity invocation
g) application process invocation
h) application transaction
i) presentation context
j) real open system
k) transfer syntax
61158-6-7 © IEC:2007(E) – 11 –
3.1.2 Terms and definitions from ISO/IEC 9545
a) application-association
b) application-context
c) application context name
d) application-entity-invocation
e) application-entity-type
f) application-process-invocation
g) application-process-type
h) application-service-element
i) application control service element
3.1.3 Terms and definitions from ISO/IEC 8824
a) object identifier
b) type
c) value
d) simple type
e) structured type
f) component type
g) tag
h) Boolean type
i) true
j) false
k) integer type
l) bitstring type
m) octetstring type
n) null type
o) sequence type
p) sequence of type
q) choice type
r) tagged type
s) any type
t) module
u) production
3.1.4 Terms and definitions from ISO/IEC 8825
a) encoding (of a data value)
b) data value
c) identifier octets (the singular form is used in this standard)
d) length octet(s) (both singular and plural forms are used in this standard)
e) contents octets
3.2 Terms and definitions from IEC 61158-5-7
a) application relationship
b) conveyance path
c) client
d) dedicated AR
e) dynamic AR
f) error class
g) error code
h) name
i) numeric identifier
j) peer
k) pre-defined AR endpoint
l) pre-established AR endpoint
m) publisher
n) subscriber
– 12 – 61158-6-7 © IEC:2007(E)
3.3 Additional terms and definitions
3.3.1
allocate
take a resource from a common area and assign that resource for the exclusive use of a
specific entity
3.3.2
application
function or data structure for which data is consumed or produced
3.3.3
application objects
multiple object classes that manage and provide a run time exchange of messages across the
network and within the network device
3.3.4
attribute
description of an externally visible characteristic or feature of an object
NOTE The attributes of an object contain information about variable portions of an object. Typically, they provide
status information or govern the operation of an object. Attributes may also affect the behaviour of an object.
Attributes are divided into class attributes and instance attributes.
3.3.5
behaviour
indication of how an object responds to particular events
3.3.6
called
service user or a service provider that receives an indication primitive or a request APDU
3.3.7
calling
service user or a service provider that initiates a request primitive or a request APDU
3.3.8
class
set of objects, all of which represent the same kind of system component
NOTE A class is a generalisation of an object; a template for defining variables and methods. All objects in a class
are identical in form and behaviour, but usually contain different data in their attributes.
3.3.9
class attributes
attribute that is shared by all objects within the same class
3.3.10
class code
unique identifier assigned to each object class
3.3.11
class specific service
service defined by a particular object class to perform a required function which is not
performed by a common service
NOTE A class specific object is unique to the object class which defines it
61158-6-7 © IEC:2007(E) – 13 –
3.3.12
client
a) object which uses the services of another (server) object to perform a task
b) initiator of a message to which a server reacts
3.3.13
clock
device providing a measurement of the passage of time since a defined epoch
NOTE There are two types of clocks in IEC 61588, boundary clocks and ordinary clocks.
3.3.14
communication objects
components that manage and provide a run time exchange of messages across the network
EXAMPLES Connection Manager object, Unconnected Message Manager (UCMM) object, Message Router object.
3.3.15
connection
logical binding between application objects that may be within the same or different devices
NOTE Connections may be either point-to-point or multipoint.
3.3.16
connection ID (CID)
identifier assigned to a transmission that is associated with a particular connection between
producers and consumers, providing a name for a specific piece of application information
3.3.17
connection point
buffer which is represented as a subinstance of an Assembly object
3.3.18
consume
act of receiving data from a producer
3.3.19
consumer
node or sink that is receiving data from a producer
3.3.20
consuming application
application that consumes data
3.3.21
cyclic
repetitive in a regular manner
3.3.22
device
physical hardware connected to the link
NOTE: A device may contain more than one node.
3.3.23
device profile
collection of device dependent information and functionality providing consistency between
similar devices of the same device type
– 14 – 61158-6-7 © IEC:2007(E)
3.3.24
end node
producing or consuming node
3.3.25
end point
one of the communicating entities involved in a connection
3.3.26
error
discrepancy between a computed, observed or measured value or condition and the specified
or theoretically correct value or condition
3.3.27
frame
denigrated synonym for DLPDU
3.3.28
instance
the actual physical occurrence of an object within a class, identifying one of many objects
within the same object class.
EXAMPLE California is an instance of the object class state.
NOTE The terms object, instance, and object instance are used to refer to a specific instance.
3.3.29
instance attribute
attribute that is unique to an object instance and not shared by the object class
3.3.30
instantiated
object that has been created in a device
3.3.31
interoperability
capability of User Layer entities to perform coordinated and cooperative operations using the
services of the FAL
3.3.32
little endian
Describes a model of memory organisation which stores the least significant octet at the
lowest address, or for transfer, which transfers the lowest order octet first
3.3.33
management information
network accessible information that supports the management of the Fieldbus environment
3.3.34
member
piece of an attribute that is structured as an element of an array
3.3.35
message router
object within a node that distributes messaging requests to appropriate application objects
3.3.36
multipoint connection
61158-6-7 © IEC:2007(E) – 15 –
connection from one node to many
NOTE Multipoint connections allow messages from a single producer to be received by many consumer nodes.
3.3.37
network
a set of nodes connected by some type of communication medium, including any intervening
repeaters, bridges, routers and lower-layer gateways
3.3.38
object
abstract representation of a particular component within a device, usually a collection of
related data (in the form of variables) and methods (procedures) for operating on that data
that have clearly defined interface and behaviour
3.3.39
object specific service
service unique to the object class which defines it
3.3.40
originator
client responsible for establishing a connection path to the target
3.3.41
point-to-point connection
connection that exists between exactly two application objects
3.3.42
produce
act of sending data to be received by a consumer
3.3.43
producer
node that is responsible for sending data
3.3.44
receiving
service user that receives a confirmed primitive or an unconfirmed primitive, or a service
provider that receives a confirmed APDU or an unconfirmed APDU
3.3.45
resource
resource is a processing or information capability of a subsystem
3.3.46
sending
service user that sends a confirmed primitive or an unconfirmed primitive, or a service
provider that sends a confirmed APDU or an unconfirmed APDU
3.3.47
service
operation or function than an object and/or object class performs upon request from another
object and/or object class
– 16 – 61158-6-7 © IEC:2007(E)
3.4 Abbreviations and symbols
ASCII American Standard Code for Information Interchange
CID
connection ID
DLL data-link layer
PDU protocol data unit
OSI open systems interconnection (see ISO/IEC 7498)
Rcv receive
Rx
receive
SDU service data unit
STD state transition diagram, used to describe object behaviour
TPDU transport protocol data unit
Tx transmit
Xmit
transmit
3.5 Conventions
3.5.1 General concept
The FAL is defined as a set of object-oriented ASEs. Each ASE is specified in a separate
subclause. Each ASE specification is composed of three parts: its class definitions, its
services, and its protocol specification. The first two are contained in IEC 61158-5. The
protocol specification for each of the ASEs is defined in this standard.
The class definitions define the attributes of the classes supported by each ASE. The
attributes are accessible from instances of the class using the Management ASE services
specified in IEC 61158-5 standard. The service specification defines the services that are
provided by the ASE.
This standard uses the descriptive conventions given in ISO/IEC 10731.
3.5.2 Conventions for class definitions
The Data Link Layer mapping definitions are described using templates. Each template
consists of a list of attributes for the class. The general form of the template is defined in IEC
61158-5.
3.5.3 Abstract syntax conventions
When the "optionalParametersMap" parameter is used, a bit number which corresponds to
each OPTIONAL or DEFAULT production is given as a comment.
3.6 Conventions used in state machines
3.6.1 General
This subclause recalls the main definitions associated with the three specification techniques
used : 'Evaluation Networks', 'Abstract objects', 'Service Conventions'.
3.6.2 Evaluation networks
To be helpful for the reader some mechanisms are explained by a graphical representation as
shown in Figure 1. These representations are based on evaluation network built on an
oriented graph with three types of nodes:
– the states, represented by a disk,
61158-6-7 © IEC:2007(E) – 17 –
– the requests represented by a rectangle,
– the transitions, represented by a horizontal line.
The evaluation network is built according to the following principle:
E
R1 R2
F
Figure 1 – Example of an evaluation net
When the described system is in state E, the arrival of request R1 or R2 results in a transition
which switches it state F.
On the other hand, crossing a transition takes place, by convention, in zero time.
3.6.3 Simple actions
Simple actions can be associated with each transition, corresponding either to the
transmission of requests or to the execution of local actions.
They are materially represented by a triangle, labelled with the name of the request or of the
description of the executed action.
3.6.4 Conditions
The crossing of a transition can concern a condition. In this case, the oriented graph
associated with the representation, shows a condition associated with the arc which precedes
the transition.
A corollary of this representation allows defining choices for crossing a transition from the
same initial state.
In the same way as for a simple transition, the transmission of an action can be associated
with the crossing of a conditional transition.
4 Abstract syntax of data type
4.1 Data abstract syntax specification
This present standard uses the following terms defined in the abstract syntax number 1 (
ASN1). Different or added definitions are the following :
4.1.1 Boolean
A Boolean value is encoded on an octet all of whose bits are null for FALSE; any other
combination means TRUE.
Example of notation of the type:
Response::= BOOLEAN
Example of value notation and encoding:
Response value::= TRUE
---------------------- Pa
...
IEC 61158-6-7 ®
Edition 1.0 2007-12
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
Industrial communication networks – Fieldbus specifications –
Part 6-7: Application layer protocol specification – Type 7 elements
Réseaux de communication industriels – Spécifications des bus de terrain –
Partie 6-7: Spécifications de protocole de la couche d’application – Éléments
de Type 7
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 la CEI ou du Comité national de la CEI du pays du demandeur.
Si vous avez des questions sur le copyright de la CEI 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 la CEI de votre pays de résidence.
IEC Central Office Tel.: +41 22 919 02 11
3, rue de Varembé Fax: +41 22 919 03 00
CH-1211 Geneva 20 info@iec.ch
Switzerland www.iec.ch
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 corrigenda or an amendment might have been published.
Useful links:
IEC publications search - www.iec.ch/searchpub Electropedia - www.electropedia.org
The advanced search enables you to find IEC publications The world's leading online dictionary of electronic and
by a variety of criteria (reference number, text, technical electrical terms containing more than 30 000 terms and
committee,…). definitions in English and French, with equivalent terms in
It also gives information on projects, replaced and additional languages. Also known as the International
withdrawn publications. Electrotechnical Vocabulary (IEV) on-line.
IEC Just Published - webstore.iec.ch/justpublished Customer Service Centre - webstore.iec.ch/csc
Stay up to date on all new IEC publications. Just Published If you wish to give us your feedback on this publication
details all new publications released. Available on-line and or need further assistance, please contact the
also once a month by email. Customer Service Centre: csc@iec.ch.
A propos de la CEI
La Commission Electrotechnique Internationale (CEI) 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 CEI
Le contenu technique des publications de la CEI est constamment revu. Veuillez vous assurer que vous possédez
l’édition la plus récente, un corrigendum ou amendement peut avoir été publié.
Liens utiles:
Recherche de publications CEI - www.iec.ch/searchpub Electropedia - www.electropedia.org
La recherche avancée vous permet de trouver des Le premier dictionnaire en ligne au monde de termes
publications CEI en utilisant différents critères (numéro de électroniques et électriques. Il contient plus de 30 000
référence, texte, comité d’études,…). termes et définitions en anglais et en français, ainsi que
Elle donne aussi des informations sur les projets et les les termes équivalents dans les langues additionnelles.
publications remplacées ou retirées. Egalement appelé Vocabulaire Electrotechnique
International (VEI) en ligne.
Just Published CEI - webstore.iec.ch/justpublished
Service Clients - webstore.iec.ch/csc
Restez informé sur les nouvelles publications de la CEI.
Just Published détaille les nouvelles publications parues. Si vous désirez nous donner des commentaires sur
Disponible en ligne et aussi une fois par mois par email. cette publication ou si vous avez des questions
contactez-nous: csc@iec.ch.
IEC 61158-6-7 ®
Edition 1.0 2007-12
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
Industrial communication networks – Fieldbus specifications –
Part 6-7: Application layer protocol specification – Type 7 elements
Réseaux de communication industriels – Spécifications des bus de terrain –
Partie 6-7: Spécifications de protocole de la couche d’application – Éléments
de Type 7
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
COMMISSION
ELECTROTECHNIQUE
PRICE CODE
INTERNATIONALE
CODE PRIX XG
ICS 25.040.40; 35.100.70 ISBN 978-2-8322-1022-2
– 2 – 61158-6-7 © IEC:2007
CONTENTS
FOREWORD . 6
INTRODUCTION . 8
1 Scope . 9
1.1 General . 9
1.2 Specifications . 9
1.3 Conformance . 9
2 Normative references . 10
3 Terms, definitions, symbols, abbreviations and conventions . 10
3.1 Terms and definitions from other ISO/IEC standards . 10
3.2 Terms and definitions from IEC 61158-5-7. 11
3.3 Additional terms and definitions . 12
3.4 Abbreviations and symbols . 16
3.5 Conventions . 16
3.6 Conventions used in state machines . 16
4 Abstract syntax of data type . 17
4.1 Data abstract syntax specification . 17
4.2 FAL PDU abstract syntax . 21
5 Transfer syntaxes . 22
5.1 Compact encoding . 22
5.2 Data type encoding . 23
6 Structure of protocol machines . 82
7 AP-context state machine . 83
8 Sub-MMS FAL service protocol machine (FSPM) . 83
8.1 General . 83
8.2 Projection of the SUB-MMS PDUs on the MCS services . 83
8.3 Projection of the SUB-MMS abort service on the MCS services . 83
8.4 Construction of a SUB-MMS-PDU from a service primitive . 84
8.5 Extraction of a valid service primitive from a SUB-MMS-PDU . 84
8.6 Negotiation of an abstract syntax and a transfer syntax commonly called
presentation-context . 84
8.7 Identification of the SUB-MMS core abstract syntax . 86
8.8 Identification of the application context name . 87
8.9 Identification of the ASE of the core abstract syntax and the transfer syntax . 87
9 Association relationship protocol machine (ARPM ) . 87
10 DLL mapping protocol machine (DMPM) . 88
10.1 MPS ARPM and DMPM . 88
10.2 MCS ARPM and DMPM . 99
11 Protocol options . 135
11.1 Conformances classes . 135
Bibliography . 155
Figure 1 – Example of an evaluation net . 17
Figure 2 – Encoding of a CompactValue . 22
Figure 3 – Organisation of the bits and octets within a PDU . 24
61158-6-7 © IEC:2007 – 3 –
Figure 4 – Encoding of a Bitstring . 27
Figure 5 – Encoding of a Floating point value . 28
Figure 6 – Encoding of a structure . 29
Figure 7 – Encoding of a Boolean array . 30
Figure 8 – Representation of a MCS PDU . 36
Figure 9 – Relationships among Protocol Machines and Adjacent Layers . 82
Figure 10 – A_Readloc service evaluation net . 88
Figure 11 – A_Writeloc service evaluation net . 89
Figure 12 – A_Update service evaluation net . 90
Figure 13 – A_Readfar service evaluation net . 91
Figure 14 – A_Writefar service evaluation net . 93
Figure 15 – A_Sent service evaluation net . 94
Figure 16 – A_Received service evaluation net . 94
Figure 17 – Association establishment: Requester element state machine . 101
Figure 18 – Association establishment: Responder element state machine . 102
Figure 19 – Association termination: Requester element state machine . 104
Figure 20 – Association termination: Responder element state machine . 106
Figure 21 – Association revocation: Requester element state machine . 107
Figure 22 – Association revocation: Acceptor element state machine . 108
Figure 23 – Interactions between state machine in an associated mode data transfer . 110
Figure 24 – Transfer service: Requester element state machine . 114
Figure 25 – Transfer service: Acceptor element state machine . 115
Figure 26 – Unacknowledged transfer: Requester element state machine . 116
Figure 27 – Unacknowledged transfer: Acceptor element state machine . 116
Figure 28 – Acknowledged transfer: Requester element state machine . 118
Figure 29 – Acknowledged transfer: Acceptor element state machine . 119
Figure 30 – Numbering mechanism state machine . 120
Figure 31 – Retry machanism state machine . 122
Figure 32 – Anticipation mechanism state machine . 125
Figure 33 – Segmentation mechanism state machine . 127
Figure 34 – Reassembly mechanism state machine . 129
Figure 35 – Interaction of state machine in a non associated data transfer . 131
Figure 36 – Unacknowledged transfer: Requester element state machine . 132
Figure 37 – Unacknowledged transfer: Acceptor element state machine . 132
Figure 38 – Acknowledged transfer: Requester element state machine . 133
Figure 39 – Acknowledged transfer: Acceptor element state machine . 134
Table 1 – Example of encoding of a SEQUENCE . 19
Table 2 – Example of encoding of a SEQUENCE OF . 19
Table 3 – Example of encoding of a CHOICE . 20
Table 4 – Example of encoding of an object identifier . 21
Table 5 – Example of encoding of a PDU . 22
Table 6 – MPS PDU types . 25
– 4 – 61158-6-7 © IEC:2007
Table 7 – Fields of a CompactValuePDU . 25
Table 8 – Fields of a VariableDescriptionPDU . 32
Table 9 – Fields of an AccessDescriptionPDU . 33
Table 10 – Fields of a TypeDescriptionPDU . 34
Table 11 – Fields of a ListDescriptionPDU . 35
Table 12 – Coding of the different MCS PDU types . 37
Table 13 – Coding of the variable part of the PDU . 37
Table 14 – Structure of association establishment request . 38
Table 15 – Structure of an associated establishment response . 42
Table 16 – Structure of an association termination request . 44
Table 17 – Structure of an association termination response . 44
Table 18 – Structure of an association revocation request . 45
Table 19 – Structure of an associated transfer request . 46
Table 20 – Structure of an associated transfer acknowledgement . 46
Table 21 – Structure of a non-associated transfer request . 47
Table 22 – Structure of a non-associated transfer acknowledgement . 48
Table 23 – Definitions of object classes . 50
Table 24 – Definition of Sub-MMS Services . 51
Table 25 – Structure of the antiduplication list. 123
Table 26 – Structure of the reassembly list . 128
Table 27 – PV_R/W parameter values . 136
Table 28 – PV_IND parameter values . 136
Table 29 – PV_LIS parameter values . 136
Table 30 – Constraints on PV_LIS parameter . 137
Table 31 – PV_AT parameter values . 137
Table 32 – PV_RE parameter values . 137
Table 33 – PV_UT parameter values . 137
Table 34 – Constraints on PV_RE parameter . 137
Table 35 – PH_R_A parameter values . 138
Table 36 – PH_R_S parameter values . 138
Table 37 – PH_R_P parameter values . 138
Table 38 – PH_P_A parameter values . 139
Table 39 – PH_P_S parameter values . 139
Table 40 – PH_P_P parameter values . 139
Table 41 – PH_COH parameter values . 139
Table 42 – PH_FIA parameter values. 140
Table 43 – PH_SPF parameter values . 140
Table 44 – PH_SPM parameter values . 140
Table 45 – PH_ACC parameter values . 141
Table 46 – PH_RES parameter values . 141
Table 47 – PH_AK parameter values . 141
Table 48 – PH_RA parameter values . 141
Table 49 – PH_SR parameter values . 141
61158-6-7 © IEC:2007 – 5 –
Table 50 – PH_CF parameter values . 142
Table 51 – Constraints on PH_RA parameter . 142
Table 52 – Constraints on PH_SR parameter . 142
Table 53 – PT_OCT parameter values . 142
Table 54 – PT_BIN parameter values. 143
Table 55 – PT_VIS parameter values . 143
Table 56 – PT_BOO parameter values . 143
Table 57 – PT_BCD parameter values . 143
Table 58 – PT_BTM parameter values . 144
Table 59 – PT_INT parameter values . 144
Table 60 – PT_UNS parameter values . 144
Table 61 – PT_FPT parameter values . 144
Table 62 – PT_GTM parameter values . 145
Table 63 – PT_TAB parameter values . 145
Table 64 – PT_STR parameter values . 145
Table 65 – Constraints on PT_TAB parameter . 146
Table 66 – Constraints on PT_STR parameter . 146
Table 67 – Conformance classes for environment management . 149
Table 68 – Conformance classes for VMD management . 150
Table 69 – Conformance classes for PI managment . 151
Table 70 – Conformance classes for domain management . 152
Table 71 – Conformance classes for variable/variable list management . 153
Table 72 – Conformance classes for event management . 154
– 6 – 61158-6-7 © IEC:2007
INTERNATIONAL ELECTROTECHNICAL COMMISSION
____________
INDUSTRIAL COMMUNICATION NETWORKS –
FIELDBUS SPECIFICATIONS –
Part 6-7: Application layer protocol specification – Type 7 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 provides no marking procedure to indicate its approval and cannot be rendered responsible for any
equipment declared to be in conformity with an IEC Publication.
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.
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 IEC 61784 series. Use of the various protocol types in other
combinations may require permission from their respective intellectual-property-right holders.
International Standard IEC 61158-6-7 has been prepared by subcommittee 65C: Industrial
networks, of IEC technical committee 65: Industrial-process measurement, control and
automation.
This first edition and its companion parts of the IEC 61158-6 subseries cancel and replace
IEC 61158-6:2003. This edition of this part constitutes an editorial revision.
This edition of IEC 61158-6 includes the following significant changes from the previous
edition:
a) deletion of the former Type 6 fieldbus for lack of market relevance;
b) addition of new types of fieldbuses;
c) partition of part 6 of the third edition into multiple parts numbered -6-2, -6-3, …
61158-6-7 © IEC:2007 – 7 –
This bilingual version (2013-09) corresponds to the monolingual English version, published in
2007-12.
The text of this standard is based on the following documents:
FDIS Report on voting
65C/476/FDIS 65C/487/RVD
Full information on the voting for the approval of this standard can be found in the report on
voting indicated in the above table.
The French version of this standard has not been voted upon.This publication has been
drafted in accordance with ISO/IEC Directives, Part 2.
The committee has decided that the contents of this publication will remain unchanged until
the maintenance result date indicated on the IEC web site under http://webstore.iec.ch in the
data related to the specific publication. At this date, the publication will be:
• reconfirmed;
• withdrawn;
• replaced by a revised edition, or
• amended.
NOTE The revision of this standard will be synchronized with the other parts of the IEC 61158 series.
The list of all the parts of the IEC 61158 series, under the general title Industrial
communication networks – Fieldbus specifications, can be found on the IEC web site.
– 8 – 61158-6-7 © IEC:2007
INTRODUCTION
This part of IEC 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 described in IEC/TR 61158-1.
The application protocol provides the application service by making use of the services
available from the data-link or other immediately lower layer. The primary aim of this standard
is to provide a set of rules for communication expressed in terms of the procedures to be
carried out by peer application entities (AEs) at the time of communication. These rules for
communication are intended to provide a sound basis for development in order to serve a
variety of purposes:
• as a guide for implementors and designers;
• for use in the testing and procurement of equipment;
• as part of an agreement for the admittance of systems into the open systems environment;
• as a refinement to the understanding of time-critical communications within OSI.
This standard is concerned, in particular, with the communication and interworking of sensors,
effectors and other automation devices. By using this standard together with other standards
positioned within the OSI or fieldbus reference models, otherwise incompatible systems may
work together in any combination.
61158-6-7 © IEC:2007 – 9 –
INDUSTRIAL COMMUNICATION NETWORKS –
FIELDBUS SPECIFICATIONS –
Part 6-7: Application layer protocol specification – Type 7 elements
1 Scope
1.1 General
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 7 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 7 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
• define the wire-representation of the service primitives defined in IEC 61158-5-7, and
• define the externally visible behavior associated with their transfer.
This standard specify the protocol of the Type 7 fieldbus application layer, in conformance
with the OSI Basic Reference Model (ISO/IEC 7498) and the OSI application layer structure
(ISO/IEC 9545).
1.2 Specifications
The principal objective of this standard is to specify the syntax and behavior of the application
layer protocol that conveys the application layer services defined in IEC 61158-5-7.
A secondary objective is to provide migration paths from previously-existing industrial
communications protocols. It is this latter objective which gives rise to the diversity of
protocols standardized in parts of the IEC 61158-6 series.
1.3 Conformance
This standard does not specify individual implementations or products, nor does it constrain
the implementations of application layer entities within industrial automation systems.
– 10 – 61158-6-7 © IEC:2007
There is no conformance of equipment to the application layer service definition standard.
Instead, conformance is achieved through implementation of this application layer protocol
specification.
2 Normative references
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.
IEC 60559, Binary floating-point arithmetic for microprocessor systems
IEC 61158-3-7, Industrial communication networks – Fieldbus specifications – Part 3-7: Data-
link layer service definition – Type 7 elements
IEC 61158-4-7, Industrial communication networks – Fieldbus specifications – Part 4-7: Data-
link layer protocol specification – Type 7 elements
IEC 61158-5-7, Industrial communication networks – Fieldbus specifications – Part 5-7:
Application layer service definition – Type 7 elements
ISO/IEC 7498-1, Information technology – Open Systems Interconnection – Basic Reference
Model — Part 1: The Basic Model
ISO/IEC 8824, Information technology – Open Systems Interconnection – Specification of
Abstract Syntax Notation One (ASN.1)
ISO/IEC 8825, Information technology – ASN.1 encoding rules: Specification of Basic
Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules
(DER)
ISO/IEC 9506-2, Industrial automation systems – Manufacturing Message Specification – Part
2: Protocol specification
ISO/IEC 9545, Information technology – Open Systems Interconnection – Application Layer
structure
3 Terms, definitions, symbols, abbreviations and conventions
For the purposes of this document, the following definitions apply.
3.1 Terms and definitions from other ISO/IEC standards
3.1.1 Terms and definitions from ISO/IEC 7498-1
a) abstract syntax
b) application entity
c) application process
d) application protocol data unit
e) application service element
f) application entity invocation
g) application process invocation
h) application transaction
i) presentation context
j) real open system
k) transfer syntax
61158-6-7 © IEC:2007 – 11 –
3.1.2 Terms and definitions from ISO/IEC 9545
a) application-association
b) application-context
c) application context name
d) application-entity-invocation
e) application-entity-type
f) application-process-invocation
g) application-process-type
h) application-service-element
i) application control service element
3.1.3 Terms and definitions from ISO/IEC 8824
a) object identifier
b) type
c) value
d) simple type
e) structured type
f) component type
g) tag
h) Boolean type
i) true
j) false
k) integer type
l) bitstring type
m) octetstring type
n) null type
o) sequence type
p) sequence of type
q) choice type
r) tagged type
s) any type
t) module
u) production
3.1.4 Terms and definitions from ISO/IEC 8825
a) encoding (of a data value)
b) data value
c) identifier octets (the singular form is used in this standard)
d) length octet(s) (both singular and plural forms are used in this standard)
e) contents octets
3.2 Terms and definitions from IEC 61158-5-7
a) application relationship
b) conveyance path
c) client
d) dedicated AR
e) dynamic AR
f) error class
g) error code
h) name
i) numeric identifier
j) peer
k) pre-defined AR endpoint
l) pre-established AR endpoint
m) publisher
n) subscriber
– 12 – 61158-6-7 © IEC:2007
3.3 Additional terms and definitions
3.3.1
allocate
take a resource from a common area and assign that resource for the exclusive use of a
specific entity
3.3.2
application
function or data structure for which data is consumed or produced
3.3.3
application objects
multiple object classes that manage and provide a run time exchange of messages across the
network and within the network device
3.3.4
attribute
description of an externally visible characteristic or feature of an object
NOTE The attributes of an object contain information about variable portions of an object. Typically, they provide
status information or govern the operation of an object. Attributes may also affect the behaviour of an object.
Attributes are divided into class attributes and instance attributes.
3.3.5
behaviour
indication of how an object responds to particular events
3.3.6
called
service user or a service provider that receives an indication primitive or a request APDU
3.3.7
calling
service user or a service provider that initiates a request primitive or a request APDU
3.3.8
class
set of objects, all of which represent the same kind of system component
NOTE A class is a generalisation of an object; a template for defining variables and methods. All objects in a
class are identical in form and behaviour, but usually contain different data in their attributes.
3.3.9
class attributes
attribute that is shared by all objects within the same class
3.3.10
class code
unique identifier assigned to each object class
3.3.11
class specific service
service defined by a particular object class to perform a required function which is not
performed by a common service
NOTE A class specific object is unique to the object class which defines it
61158-6-7 © IEC:2007 – 13 –
3.3.12
client
a) object which uses the services of another (server) object to perform a task
b) initiator of a message to which a server reacts
3.3.13
clock
device providing a measurement of the passage of time since a defined epoch
NOTE There are two types of clocks in IEC 61588, boundary clocks and ordinary clocks.
3.3.14
communication objects
components that manage and provide a run time exchange of messages across the network
EXAMPLES Connection Manager object, Unconnected Message Manager (UCMM) object, Message Router object.
3.3.15
connection
logical binding between application objects that may be within the same or different devices
NOTE Connections may be either point-to-point or multipoint.
3.3.16
connection ID (CID)
identifier assigned to a transmission that is associated with a particular connection between
producers and consumers, providing a name for a specific piece of application information
3.3.17
connection point
buffer which is represented as a subinstance of an Assembly object
3.3.18
consume
act of receiving data from a producer
3.3.19
consumer
node or sink that is receiving data from a producer
3.3.20
consuming application
application that consumes data
3.3.21
cyclic
repetitive in a regular manner
3.3.22
device
physical hardware connected to the link
NOTE: A device may contain more than one node.
3.3.23
device profile
collection of device dependent information and functionality providing consistency between
similar devices of the same device type
– 14 – 61158-6-7 © IEC:2007
3.3.24
end node
producing or consuming node
3.3.25
end point
one of the communicating entities involved in a connection
3.3.26
error
discrepancy between a computed, observed or measured value or condition and the specified
or theoretically correct value or condition
3.3.27
frame
denigrated synonym for DLPDU
3.3.28
instance
the actual physical occurrence of an object within a class, identifying one of many objects
within the same object class.
EXAMPLE California is an instance of the object class state.
NOTE The terms object, instance, and object instance are used to refer to a specific instance.
3.3.29
instance attribute
attribute that is unique to an object instance and not shared by the object class
3.3.30
instantiated
object that has been created in a device
3.3.31
interoperability
capability of User Layer entities to perform coordinated and cooperative operations using the
services of the FAL
3.3.32
little endian
Describes a model of memory organisation which stores the least significant octet at the
lowest address, or for transfer, which transfers the lowest order octet first
3.3.33
management information
network accessible information that supports the management of the Fieldbus environment
3.3.34
member
piece of an attribute that is structured as an element of an array
3.3.35
message router
object within a node that distributes messaging requests to appropriate application objects
3.3.36
multipoint connection
61158-6-7 © IEC:2007 – 15 –
connection from one node to many
NOTE Multipoint connections allow messages from a single producer to be received by many consumer nodes.
3.3.37
network
a set of nodes connected by some type of communication medium, including any intervening
repeaters, bridges, routers and lower-layer gateways
3.3.38
object
abstract representation of a particular component within a device, usually a collection of
related data (in the form of variables) and methods (procedures) for operating on that data
that have clearly defined interface and behaviour
3.3.39
object specific service
service unique to the object class which defines it
3.3.40
originator
client responsible for establishing a connection path to the target
3.3.41
point-to-point connection
connection that exists between exactly two application objects
3.3.42
produce
act of sending data to be received by a consumer
3.3.43
producer
node that is responsible for sending data
3.3.44
receiving
service user that receives a confirmed primitive or an unconfirmed primitive, or a service
provider that receives a confirmed APDU or an unconfirmed APDU
3.3.45
resource
resource is a processing or information capability of a subsystem
3.3.46
sending
service user that sends a confirmed primitive or an unconfirmed primitive, or a service
provider that sends a confirmed APDU or an unconfirmed APDU
3.3.47
service
operation or function than an object and/or object class performs upon request from another
object and/or object class
– 16 – 61158-6-7 © IEC:2007
3.4 Abbreviations and symbols
ASCII American Standard Code for Information Interchange
CID connection ID
DLL data-link layer
PDU protocol data unit
OSI open systems interconnection (see ISO/IEC 7498)
Rcv
receive
Rx
receive
SDU service data unit
STD state transition diagram, used to describe object behaviour
TPDU transport protocol data unit
Tx transmit
Xmit transmit
3.5 Conventions
3.5.1 General concept
The FAL is defined as a set of object-oriented ASEs. Each ASE is specified in a separate
subclause. Each ASE specification is composed of three parts:
...










Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.
Loading comments...