1、 IEC 61158-6-18 Edition 2.0 2010-08 INTERNATIONAL STANDARD Industrial communication networks Fieldbus specifications Part 6-18: Application layer protocol specification Type 18 elements IEC 61158-6-18:2010(E) THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2010 IEC, Geneva, Switzerland All rights
2、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 IECs member National Committee in the country of the requester
3、. 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: 0Hi
4、nmailiec.ch Web: 1Hwww.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 publicat
5、ions 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: 2Hwww.iec.ch/searchpub The IEC on-line Catalogue enables you to search by a variety of criteria (reference number,
6、text, technical committee,). It also gives information on projects, withdrawn and replaced publications. IEC Just Published: 3Hwww.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
7、 email. Electropedia: 4Hwww.electropedia.org The worlds 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 onl
8、ine. Customer Service Centre: 5Hwww.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: 6Hcsciec.ch Tel.: +41 22 919 02 11 Fax: +41 22 919 03 00 IEC 61158-6-18 Edition 2.0 201
9、0-08 INTERNATIONAL STANDARD Industrial communication networks Fieldbus specifications Part 6-18: Application layer protocol specification Type 18 elements INTERNATIONAL ELECTROTECHNICAL COMMISSION XA ICS 25.04.40; 35.100.70; 35.110 PRICE CODE ISBN 978-2-88912-132-8 Registered trademark of the Intern
10、ational Electrotechnical Commission 2 61158-6-18 IEC:2010(E) CONTENTS FOREWORD.5 INTRODUCTION.7 1 Scope.8 1.1 General .8 1.2 Specifications8 1.3 Conformance.9 2 Normative references .9 3 Terms and definitions .9 3.1 Terms and definitions from other ISO/IEC standards .9 3.2 Other terms and definition
11、s .10 3.3 Abbreviations and symbols16 3.4 Additional abbreviations and symbols for type 18 16 3.5 Conventions 17 4 Abstract syntax.17 4.1 M1 device manager PDU abstract syntax 17 4.2 M2 device manager PDU abstract syntax 17 4.3 S1 device manager PDU abstract syntax.18 4.4 S2 device manager PDU abstr
12、act syntax.18 4.5 M1 connection manager PDU abstract syntax18 4.6 M2 connection manager PDU abstract syntax19 4.7 S1 connection manager PDU abstract syntax 19 4.8 S2 connection manager PDU abstract syntax 20 4.9 M1 cyclic transmission PDU abstract syntax20 4.10 M2 cyclic transmission PDU abstract sy
13、ntax20 4.11 S1 cyclic transmission PDU abstract syntax 21 4.12 S2 cyclic transmission PDU abstract syntax 21 4.13 Acyclic transmission PDU abstract syntax .21 5 Transfer syntax 22 5.1 M1 device manager PDU encoding22 5.2 M2 device manager PDU encoding25 5.3 S1 device manager PDU encoding 26 5.4 S2 d
14、evice manager PDU encoding 26 5.5 M1 connection manager PDU encoding .27 5.6 M2 connection manager PDU encoding .31 5.7 S1 connection manager PDU encoding32 5.8 S2 connection manager PDU encoding33 5.9 M1 cyclic transmission PDU encoding .33 5.10 M2 cyclic transmission PDU encoding .35 5.11 S1 cycli
15、c transmission PDU encoding36 5.12 S2 cyclic transmission PDU encoding37 5.13 Acyclic transmission PDU encoding.38 6 Structure of FAL protocol state machines .45 7 AP-context state machine.47 8 FAL service protocol machine (FSPM)47 8.1 Overview.47 8.2 FAL service primitives .47 61158-6-18 IEC:2010(E
16、) 3 9 AR protocol machine (ARPM) .48 9.1 Overview.48 9.2 M1 master ARPM 49 9.3 M2 master ARPM 53 9.4 Slave ARPM56 10 DLL mapping protocol machine (DMPM).59 10.1 Overview.59 10.2 Primitives received from the ARPM .59 10.3 Indications received from the DL .59 Bibliography60 Figure 1 Parameter block 1
17、command parameter field40 Figure 2 Parameter block 2 command parameter field41 Figure 3 Relationships among protocol machines and adjacent layers .46 Figure 4 ARPM M1 master AR state diagram .49 Figure 5 ARPM M2 master AR state diagram .53 Figure 6 ARPM slave AR state diagram .56 Table 1 M1 device m
18、anager attribute format 17 Table 2 M2 device manager attribute format 17 Table 3 S1 device manager attribute format.18 Table 4 S2 device manager attribute format.18 Table 5 M1 connection manager attribute format18 Table 6 M2 connection manager attribute format19 Table 7 S1 connection manager attribu
19、te format 20 Table 8 S2 connection manager attribute format 20 Table 9 M1 cyclic transmission attribute format20 Table 10 M2 cyclic transmission attribute format21 Table 11 S1 cyclic transmission attribute format 21 Table 12 S2 cyclic transmission attribute format 21 Table 13 Acyclic transmission at
20、tribute format .21 Table 14 M1 device manager attribute encoding 23 Table 15 M2 device manager attribute encoding 25 Table 16 S1 device manager attribute encoding.26 Table 17 S2 device manager attribute encoding.27 Table 18 M1 connection manager attribute encoding .28 Table 19 M2 connection manager
21、attribute encoding .31 Table 20 S1 connection manager attribute encoding32 Table 21 S2 connection manager attribute encoding33 Table 22 M1 cyclic transmission attribute encoding34 Table 23 M2 cyclic transmission attribute encoding36 Table 24 S1 cyclic transmission attribute encoding 36 Table 25 S2 c
22、yclic transmission attribute encoding 38 Table 26 Acyclic transmission message data encoding .38 4 61158-6-18 IEC:2010(E) Table 27 Command header format .39 Table 28 Command codes .39 Table 29 System information command parameter field .42 Table 30 System information command parameter field .42 Tabl
23、e 31 System information command parameter field .42 Table 32 System information command parameter field .43 Table 33 Line test command parameter field43 Table 34 Memory read command parameter field.44 Table 35 Memory write command parameter field 45 Table 36 FSPM events.48 Table 37 M1 master state-e
24、vent table 1 events .51 Table 38 M1 master state-event table 2 receipt of FSPM service primitives 51 Table 39 M1 master state-event table 3 receipt of DMPM service primitives53 Table 40 M2 master state-event table 1 events .54 Table 41 M2 master state-event table 2 receipt of FSPM service primitives
25、 55 Table 42 M2 master state-event table 3 receipt of DMPM service primitives55 Table 43 S1 connect monitoring time .57 Table 44 S2 connect monitoring time .57 Table 45 Slave state-event table 1 events.58 Table 46 Slave state-event table 2 receipt of FSPM service primitives 58 Table 47 Slave state-e
26、vent table 3 receipt of DMPM service primitives .58 Table 48 ARPM to DL mapping 59 Table 49 DL to ARPM mapping 59 61158-6-18 IEC:2010(E) 5 INTERNATIONAL ELECTROTECHNICAL COMMISSION _ INDUSTRIAL COMMUNICATION NETWORKS FIELDBUS SPECIFICATIONS Part 6-18: Application layer protocol specification Type 18
27、 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 standardizat
28、ion 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 e
29、ntrusted 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 In
30、ternational 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 sin
31、ce 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
32、 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
33、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 itself does not provide any attestation of conformity. Independent certification bodies provide conformity a
34、ssessment services and, in some areas, access to IEC marks of conformity. IEC is not responsible for any services carried out by independent certification bodies. 6) All users should ensure that they have the latest edition of this publication. 7) No liability shall attach to IEC or its directors, e
35、mployees, 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
36、 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. International Standard IEC
37、 61158-6-18 has been prepared by subcommittee 65C: Industrial networks, of IEC technical committee 65: Industrial-process measurement, control and automation. This second edition cancels and replaces the first edition published in 2007. This edition constitutes a technical revision. The main changes
38、 with respect to the previous edition are listed below: editorial corrections; addition of cyclic data segmenting. 6 61158-6-18 IEC:2010(E) The text of this standard is based on the following documents: FDIS Report on voting 65C/607/FDIS 65C/621/RVD Full information on the voting for the approval of
39、 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. A list of all parts of the IEC 61158 series, published under the general title Industrial communication networks Fieldbus specifications,
40、 can be found on the IEC web site. The committee has decided that the contents of this publication will remain unchanged until the stability 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: reconf
41、irmed; 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. 61158-6-18 IEC:2010(E) 7 INTRODUCTION This part of IEC 61158 is one of a series produced to facilitate the interconnection of automation
42、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.
43、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 serv
44、e a variety of purposes: as a guide for implementers 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 stan
45、dard 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 combinati
46、on. 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 phy
47、sical layer and application layer protocols in Type combinations as specified explicitly in the profile parts. Use of the various protocol types in other combinations may require permission from their respective intellectual-property-right holders. The International Electrotechnical Commission (IEC)
48、 draws attention to the fact that it is claimed that compliance with this document may involve the use of patents concerning Type 18 elements and possibly other types given in subclause 4.5, 5.5, 6.9.2 and 9.2.2 as follows: 3343036/Japan MEC “Network System for a Programmable Controller” 5896509/USA
49、 MEC “Network System for a Programmable Controller” 246906/Korea MEC “Network System for a Programmable Controller” 19650753/Germany MEC “Network System for a Programmable Controller” IEC takes no position concerning the evidence, validity and scope of these patent rights. The holder of these patent rights has assured the IEC that he/she is willin