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

IEC 61158-6-3:2014 defines the protocol provided to define the wire-representation of the service primitives defined in IEC 61158-5-3, and define the externally visible behavior associated with their transfer. This standard specifies the protocol of the Type 3 fieldbus application layer, in conformance with the OSI Basic Reference Model (ISO/IEC 7498-1) and the OSI application layer structure (ISO/IEC 9545). This third edition cancels and replaces the second edition published in 2010 and constitutes a technical revision. The main changes are:
- corrections, in Table 4, Table 5, Table 6, and Table 7;
- added references for data types;
- corrected state machine in Table 91 and Table 97;
- updated macro START_MSAL1M.

Réseaux de communication industriels - Spécifications des bus de terrain - Partie 6-3: Spécification du protocole de la couche application - Eléments de type 3

L'IEC 61158-6-3:2014 décrit le protocole mis en place pour définir la représentation filaire des primitives de service définies dans la CEI 61158-5-3 et définir le comportement visible de l'extérieur associé à leur transfert. La présente norme spécifie le protocole de la couche application de bus de terrain de Type 3, en conformité avec le modèle de référence de base OSI (ISO/CEI 7498-1) et la structure de la couche application OSI (ISO/CEI 9545). Cette troisième édition annule et remplace la deuxième édition parue en 2010. Elle constitue une révision technique. Les principales modifications sont:
- corrections dans le Tableau 4, le Tableau 5, le Tableau 6 et le Tableau 7;
- références supplémentaires pour les types de données;
- diagrammes d'états corrigés dans le Tableau 91 et le Tableau 97;
- macro START_MSAL1M mise à jour.

General Information

Status
Published
Publication Date
18-Aug-2014
Technical Committee
Current Stage
DELPUB - Deleted Publication
Completion Date
20-Jun-2019
Ref Project

Relations

Buy Standard

Standard
IEC 61158-6-3:2014 - Industrial communication networks - Fieldbus specifications - Part 6-3: Application layer protocol specification - Type 3 elements Released:8/19/2014
English and French language
740 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (Sample)

IEC 61158-6-3


®


Edition 3.0 2014-08



INTERNATIONAL



STANDARD



NORME
INTERNATIONALE


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

Réseaux de communication industriels – Spécifications des bus de terrain –
Partie 6-3: Spécification du protocole de la couche application – Éléments
de type 3


IEC 61158-6-3:2014-08(en-fr)

---------------------- Page: 1 ----------------------
THIS PUBLICATION IS COPYRIGHT PROTECTED


Copyright © 2014 IEC, Geneva, Switzerland


All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form

or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from
either IEC or IEC's member National Committee in the country of the requester. If you have any questions about IEC
copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or

your local IEC member National Committee for further information.



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 l'IEC ou du Comité national de l'IEC du pays du demandeur. Si vous avez des

questions sur le copyright de l'IEC 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 l'IEC 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.

IEC Catalogue - webstore.iec.ch/catalogue Electropedia - www.electropedia.org
The stand-alone application for consulting the entire The world's leading online dictionary of electronic and
bibliographical information on IEC International Standards, electrical terms containing more than 30 000 terms and
Technical Specifications, Technical Reports and other definitions in English and French, with equivalent terms in 14
documents. Available for PC, Mac OS, Android Tablets and additional languages. Also known as the International
iPad. Electrotechnical Vocabulary (IEV) online.

IEC publications search - www.iec.ch/searchpub IEC Glossary - std.iec.ch/glossary
The advanced search enables to find IEC publications by a More than 55 000 electrotechnical terminology entries in
variety of criteria (reference number, text, technical English and French extracted from the Terms and Definitions
committee,…). It also gives information on projects, replaced clause of IEC publications issued since 2002. Some entries
and withdrawn publications. have been collected from earlier publications of IEC TC 37,

77, 86 and CISPR.
IEC Just Published - webstore.iec.ch/justpublished
Stay up to date on all new IEC publications. Just Published IEC Customer Service Centre - webstore.iec.ch/csc
details all new publications released. Available online and If you wish to give us your feedback on this publication or
also once a month by email. need further assistance, please contact the Customer Service
Centre: csc@iec.ch.


A propos de l'IEC
La Commission Electrotechnique Internationale (IEC) 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 IEC
Le contenu technique des publications IEC est constamment revu. Veuillez vous assurer que vous possédez l’édition la
plus récente, un corrigendum ou amendement peut avoir été publié.


Catalogue IEC - webstore.iec.ch/catalogue Electropedia - www.electropedia.org
Application autonome pour consulter tous les renseignements
Le premier dictionnaire en ligne de termes électroniques et
bibliographiques sur les Normes internationales,
électriques. Il contient plus de 30 000 termes et définitions en
Spécifications techniques, Rapports techniques et autres
anglais et en français, ainsi que les termes équivalents dans
documents de l'IEC. Disponible pour PC, Mac OS, tablettes
14 langues additionnelles. Egalement appelé Vocabulaire
Android et iPad.
Electrotechnique International (IEV) en ligne.


Recherche de publications IEC - www.iec.ch/searchpub
Glossaire IEC - std.iec.ch/glossary
Plus de 55 000 entrées terminologiques électrotechniques, en
La recherche avancée permet de trouver des publications IEC
en utilisant différents critères (numéro de référence, texte, anglais et en français, extraites des articles Termes et
comité d’études,…). Elle donne aussi des informations sur les Définitions des publications IEC parues depuis 2002. Plus
projets et les publications remplacées ou retirées. certaines entrées antérieures extraites des publications des

CE 37, 77, 86 et CISPR de l'IEC.
IEC Just Published - webstore.iec.ch/justpublished

Service Clients - webstore.iec.ch/csc
Restez informé sur les nouvelles publications IEC. Just
Published détaille les nouvelles publications parues. Si vous désirez nous donner des commentaires sur cette
Disponible en ligne et aussi une fois par mois par email. publication ou si vous avez des questions contactez-nous:
csc@iec.ch.

---------------------- Page: 2 ----------------------
IEC 61158-6-3



®



Edition 3.0 2014-08







INTERNATIONAL





STANDARD







NORME



INTERNATIONALE











Industrial communication networks – Fieldbus specifications –

Part 6-3: Application layer protocol specification – Type 3 elements




Réseaux de communication industriels – Spécifications des bus de terrain –

Partie 6-3: Spécification du protocole de la couche application – Éléments

de type 3
















INTERNATIONAL

ELECTROTECHNICAL

COMMISSION


COMMISSION

ELECTROTECHNIQUE

PRICE CODE
INTERNATIONALE

CODE PRIX XH


ICS 25.040.40; 35.100.70; 35.110 ISBN 978-2-8322-1757-3



Warning! Make sure that you obtained this publication from an authorized distributor.

Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agréé.

® Registered trademark of the International Electrotechnical Commission
Marque déposée de la Commission Electrotechnique Internationale

---------------------- Page: 3 ----------------------
– 2 – IEC 61158-6-3:2014 © IEC 2014


CONTENTS



FOREWORD . 8

INTRODUCTION . 10

1 Scope . 11


1.1 General . 11

1.2 Specifications . 12

1.3 Conformance . 12

2 Normative references . 12

3 Terms, definitions, abbreviations, symbols and conventions . 13
3.1 Referenced terms and definitions . 13
3.2 Additional definitions . 14
3.3 Abbreviations and symbols . 17
3.4 Conventions . 18
3.5 Conventions used in state machines . 20
4 FAL syntax description . 23
4.1 APDU abstract syntax . 23
4.2 Data types . 27
5 Transfer syntax . 28
5.1 Coding of basic data types . 28
5.2 Coding section related to data exchange PDUs . 30
5.3 Coding section related to slave diagnosis PDUs . 30
5.4 Coding section related to parameterization PDU . 41
5.5 Coding section related to configuration PDUs . 49
5.6 Coding section related to global control PDUs . 51
5.7 Coding section related to clock-value-PDUs . 53
5.8 Coding section related to function identification and errors . 54
5.9 Coding section related to master diagnosis PDU . 57
5.10 Coding section related to upload/download/act para PDUs . 60
5.11 Coding section related to the bus parameter set . 62
5.12 Coding section related to the slave parameter set . 64
5.13 Coding section related to statistic counters . 68
5.14 Coding section related to set slave address PDU . 68
5.15 Coding section related to initiate/abort PDUs . 68

5.16 Coding section related to read/write/data transport PDUs . 72
5.17 Coding section related to load region and function invocation PDUs . 72
5.18 Examples of diagnosis-RES-PDUs . 76
5.19 Example of Chk_Cfg-REQ-PDU . 78
5.20 Examples of Chk_Cfg-REQ-PDUs with DPV1 data types . 78
5.21 Example structure of the Data_Unit for Data_Exchange . 80
6 FAL protocol state machines . 81
6.1 Overall structure . 81
6.2 Assignment of state machines to devices . 83
6.3 Overview DP-slave . 84
6.4 Overview DP-master (class 1) . 86
6.5 Overview DP-master (class 2) . 87
6.6 Cyclic communication between DP-master (class 1) and DP-slave . 88

---------------------- Page: 4 ----------------------
IEC 61158-6-3:2014 © IEC 2014 – 3 –


6.7 Acyclic communication between DP-master (class 2) and DP-master

(class 1) . 89

6.8 Acyclic communication between DP-master (class 1) and DP-slave . 91

6.9 Application relationship monitoring . 93

7 AP-context state machine . 98

8 FAL service protocol machines (FSPMs) . 99

8.1 FSPMS . 99

8.2 FSPMM1 . 134

8.3 FSPMM2 . 169

9 Application relationship protocol machines (ARPMs) . 186
9.1 MSCY1S . 186
9.2 MSAC1S . 216
9.3 SSCY1S . 229
9.4 MSRM2S . 232
9.5 MSAC2S . 238
9.6 MSCS1S . 254
9.7 MSCY1M . 256
9.8 MSAL1M . 274
9.9 MSAC1M . 283
9.10 MMAC1 . 296
9.11 MSCS1M . 303
9.12 MSAC2M . 307
9.13 MMAC2 . 322
10 DLL mapping protocol machines (DMPMs) . 329
10.1 DMPMS . 329
10.2 DMPMM1 . 343
10.3 DMPMM2 . 358
11 Parameters for a DP-slave . 366
Bibliography . 367

Figure 1 – Common structure of specific fields . 19
Figure 2 – Example Modul_Status_Array . 36
Figure 3 – Example of Ext_Diag_Data in case of DPV1 diagnosis format with alarm
and status PDU . 76

Figure 4 – Example of Ext_Diag_Data in case of the basic diagnosis format . 78
Figure 5 – Example of a special identifier format . 78
Figure 6 – Example of a special identifier format with data types . 79
Figure 7 – Example of a special identifier format with data types . 79
Figure 8 – Example of an empty slot with data types . 80
Figure 9 – Example for multi-variable device with AI and DO function blocks . 80
Figure 10 – Identifiers (ID) . 81
Figure 11 – Identifier list . 81
Figure 12 – Structure of the Data_Unit for the request- and response-DLPDU . 81
Figure 13 – Structuring of the protocol machines and adjacent layers in a DP-slave . 85
Figure 14 – Structuring of the protocol machines and adjacent layers in a DP-master
(class 1). 86

---------------------- Page: 5 ----------------------
– 4 – IEC 61158-6-3:2014 © IEC 2014


Figure 15 – Structuring of the protocol machines and adjacent layers in a DP-master

(class 2). 87

Figure 16 – Sequence of the communication between DP-master and DP-slave . 89


Figure 17 – Sequence of communication between DP-master (class 2) and DP-master

(class 1). 91

Figure 18 – Sequence of acyclic communication between DP-master (class 1) and DP-

slave . 93

Figure 19 – Example for connection establishment on MS2. 96

Figure 20 – Idle at master-side on MS2. 97


Figure 21 – Idle at slave-side on MS2 . 98
Figure 22 – Example for connection establishment on MS2(server-side) . 234
Figure 23 – Structure of RM entries in the RM_Registry . 235

Table 1 – State machine description elements . 20
Table 2 – Description of state machine elements . 21
Table 3 – Conventions used in state machines . 21
Table 4 – APDU syntax . 23
Table 5 – Substitutions . 25
Table 6 – Block_Length range . 32
Table 7 – Selection range . 33
Table 8 – Alarm_Type range . 33
Table 9 – Status_Type value range . 33
Table 10 – Alarm_Specifier . 34
Table 11 – Range of Modul_Status_Entry (1-4) . 36
Table 12 – Input_Output_Selection . 38
Table 13 – Error type . 38
Table 14 – Channel_Type . 38
Table 15 – Specification of the bits Lock_Req and Unlock_Req . 42
Table 16 – Range of Length_of_Manufacturer_Specific_Data if used in
Chk_Cfg-REQ-PDU . 50
Table 17 – Range of Length_of_Manufacturer_Specific_Dat if used in
Get_Cfg-RES-PDU . 50

Table 18 – Data types . 51
Table 19 – Specification of the bits for Un-/Freeze . 52
Table 20 – Specification of the bits for Un-/Sync . 52
Table 21 – Coding of the Function_Code/ Function_Num . 54
Table 22 – Coding of the Error_Code / Function_Num . 55
Table 23 – Values of Error_Decode . 56
Table 24 – Coding of Error_Code_1 at DPV1 . 57
Table 25 – Values of MDiag_Identifier . 58
Table 26 – Values for Area_Code_UpDownload . 60
Table 27 – Values for Area_CodeActBrct . 61
Table 28 – Values for Area_CodeAct . 61
Table 29 – Values for Activate . 61
Table 30 – Values for Data_rate . 62

---------------------- Page: 6 ----------------------
IEC 61158-6-3:2014 © IEC 2014 – 5 –


Table 31 – Values for Slave_Type . 65

Table 32 – Values for Alarm_Mode . 66


Table 33 – Values for Subnet . 71

Table 34 – Values of reason code if instance is DLL . 71

Table 35 – Values of reason code if instance is MS2 . 71


Table 36 – Values of Extended_Function_Num . 72

Table 37 – Values of FI_Index . 74

Table 38 – Values of FI_State . 74


Table 39 – IMData_Execution_Argument . 75
Table 40 – IMData_Result_Argument . 75
Table 41 – Assignment of state machines . 84
Table 42 – Primitives issued by AP-Context to FSPMS . 99
Table 43 – Primitives issued by FSPMS to AP-Context . 101
Table 44 – FSPMS state table . 108
Table 45 – Functions used by the FSPMS . 132
Table 46 – Primitives issued by AP-Context to FSPMM1 . 134
Table 47 – Primitives issued by FSPMM1 to AP-Context . 136
Table 48 – FSPMM1 state table . 143
Table 49 – Functions used by the FSPMM1 . 168
Table 50 – Primitives issued by AP-Context to FSPMM2 . 169
Table 51 – Primitives issued by FSPMM2 to AP-Context . 171
Table 52 – FSPMM2 state table . 174
Table 53 – Functions used by the FSPMM2 . 185
Table 54 – Primitives issued by FSPMS to MSCY1S . 186
Table 55 – Primitives issued by MSCY1S to FSPMS . 186
Table 56 – Rules for DPV1_Status_1, DPV1_Status_2 and DPV1_Status_3 check . 188
Table 57 – MSCY1S state table . 193
Table 58 – Functions used by the MSCY1S . 214
Table 59 – Primitives issued by FSPMS to MSAC1S . 216
Table 60 – Primitives issued by MSAC1S to FSPMS . 217
Table 61 – Primitives issued by MSCY1S to MSAC1S . 217

Table 62 – Primitives issued by MSAC1S to MSCY1S . 217
Table 63 – Parameter used with primitives exchanged between MSAC1S and MSCY1S . 217
Table 64 – MSAC1S state table . 219
Table 65 – Functions used by the MSAC1S . 228
Table 66 – Primitives issued by FSPMS to SSCY1S . 229
Table 67 – Primitives issued by SSCY1S to FSPMS . 229
Table 68 – SSCY1S state table . 230
Table 69 – Functions used by the SSCY1S . 232
Table 70 – Primitives issued by FSPMS to MSRM2S . 232
Table 71 – Primitives issued by MSRM2S to FSPMS . 232
Table 72 – MSRM2S state table . 236
Table 73 – Primitives issued by FSPMS to MSAC2S . 238

---------------------- Page: 7 ----------------------
– 6 – IEC 61158-6-3:2014 © IEC 2014


Table 74 – Primitives issued by MSAC2S to FSPMS . 239

Table 75 – Primitives issued by MSRM2S to MSAC2S . 240


Table 76 – Primitives issued by MSAC2S to MSRM2S . 240

Table 77 – Parameter used with primitives exchanged with MSAC2S . 240

Table 78 – MSAC2S state table . 243


Table 79 – Primitives issued by MSCS1S to FSPMS . 254

Table 80 – MSCS1S state table . 255

Table 81 – Primitives issued by FSPMM1 to MSCY1M . 256


Table 82 – Primitives issued by MSCY1M to FSPMM1 . 256
Table 83 – Parameters used with primitives exchanged between FSPMM1 and
MSCY1M . 257
Table 84 – MSCY1M state table . 260
Table 85 – Primitives issued by FSPMM1 to MSAL1M .
...

Questions, Comments and Discussion

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