1、 IEC 61158-6-15 Edition 2.0 2010-08 INTERNATIONAL STANDARD Industrial communication networks Fieldbus specifications Part 6-15: Application layer protocol specification Type 15 elements IEC 61158-6-15: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-15 Edition 2.0 201
9、0-08 INTERNATIONAL STANDARD Industrial communication networks Fieldbus specifications Part 6-15: Application layer protocol specification Type 15 elements INTERNATIONAL ELECTROTECHNICAL COMMISSION XD ICS 25.04.40; 35.100.70; 35.110 PRICE CODE ISBN 978-2-88912-131-1 Registered trademark of the Intern
10、ational Electrotechnical Commission 2 61158-6-15 IEC:2010(E) CONTENTS FOREWORD. 0H6 INTRODUCTION. 1H8 1 Scope. 2H9 1.1 General . 3H9 1.2 Specifications 4H9 1.3 Conformance. 5H10 2 Normative references . 6H10 3 Terms and definitions, abbreviations, symbols and conventions . 7H10 3.1 Terms and definit
11、ions 8H10 3.2 Abbreviations and symbols 9H17 3.3 Conventions 10H19 3.4 Conventions used in state machines . 11H21 4 Abstract syntax for client/server . 12H22 5 Transfer syntax for client/server . 13H22 5.1 General . 14H22 5.2 Common APDU structure 15H22 5.3 Service-specific APDU structures 16H26 5.4
12、 Data representation on the wire. 17H51 6 Abstract syntax for publish/subscribe . 18H51 7 Transfer syntax for publish/subscribe . 19H52 7.1 General . 20H52 7.2 APDU structure . 21H52 7.3 Sub-message structure . 22H53 7.4 APDU interpretation 23H55 7.5 Service specific APDU structures 24H57 7.6 Common
13、 data representation for publish/subscribe . 25H79 8 Structure of FAL protocol state machines . 26H83 9 AP-context state machines for client/server 27H85 10 FAL service protocol machine (FSPM) for client/server. 28H85 10.1 General . 29H85 10.2 FSPM state tables. 30H85 10.3 Functions used by FSPM. 31
14、H92 10.4 Parameters of FSPM/ARPM primitives 32H92 10.5 Client/server server transactions . 33H92 11 Application relationship protocol machines (ARPMs) for client/server . 34H94 11.1 Application relationship protocol machines (ARPMs) . 35H94 11.2 AREP state machine primitive definitions 36H95 11.3 AR
15、EP state machine functions 37H96 12 DLL mapping protocol machine (DMPM) for client/server 38H96 12.1 AREP mapping to data link layer . 39H96 12.2 DMPM states. 40H97 12.3 DMPM state machine 41H97 12.4 Primitives exchanged between data link layer and DMPM . 42H98 12.5 Client/server on TCP/IP. 43H98 13
16、 AP-Context state machines for publish/subscribe . 44H102 61158-6-15 IEC:2010(E) 3 14 Protocol machines for publish/subscribe. 45H102 14.1 General . 46H102 14.2 Publish/subscribe on UDP . 47H104 Bibliography 48H105 Figure 1 APDU Format. 49H22 Figure 2 Client to server confirmed service request 50H24
17、 Figure 3 Normal response from server to client 51H24 Figure 4 Exception response from server to client 52H24 Figure 5 Client to server unconfirmed service request 53H25 Figure 6 Publish/subscribe APDU 54H52 Figure 7 Flags of issue request 55H58 Figure 8 Flags of heartbeat request . 56H60 Figure 9 F
18、lags of VAR request . 57H64 Figure 10 Flags of GAP request. 58H66 Figure 11 Flags of ACK request . 59H68 Figure 12 Flags of INFO_DST request . 60H72 Figure 13 Flags of INFO_REPLY request. 61H73 Figure 14 Flags of INFO_SRC request. 62H75 Figure 15 Flags of INFO_TS request 63H77 Figure 16 Flags of PAD
19、 request . 64H78 Figure 17 Encoding of octet . 65H80 Figure 18 Encoding of boolean 66H80 Figure 19 Encoding of unsigned short 67H80 Figure 20 Encoding of unsigned long . 68H80 Figure 21 Encoding of unsigned long long 69H81 Figure 22 Encoding of float 70H81 Figure 23 Encoding of double 71H81 Figure 2
20、4 Relationships among protocol machines and adjacent layers . 72H84 Figure 25 State transition diagram of FSPM. 73H85 Figure 26 Transaction state machine, per connection 74H86 Figure 27 Client/server server transactions 75H93 Figure 28 State transition diagram of the Client ARPM. 76H94 Figure 29 Sta
21、te transition diagram of the server ARPM 77H95 Figure 30 State transition diagram of DMPM 78H97 Figure 31 APDU Format. 79H98 Figure 32 TCP/IP PDU Format. 80H99 Figure 33 Publish/subscribe receiver . 81H103 Table 1 Conventions used for state machines 82H21 Table 2 Exception code 83H25 Table 3 Read di
22、scretes request . 84H26 Table 4 Read discretes response. 85H26 4 61158-6-15 IEC:2010(E) Table 5 Read coils request 86H27 Table 6 Read coils response 87H27 Table 7 Write single coil request 88H28 Table 8 Write single coil response . 89H28 Table 9 Write multiple coils request . 90H29 Table 10 Write mu
23、ltiple coils response. 91H29 Table 11 Broadcast write single coil request 92H30 Table 12 Broadcast write multiple coils request 93H31 Table 13 Read input registers request . 94H31 Table 14 Read input registers response. 95H32 Table 15 Read holding registers request 96H32 Table 16 Read holding regist
24、ers response . 97H33 Table 17 Write single holding register request . 98H33 Table 18 Write single holding register response. 99H34 Table 19 Write multiple holding registers request. 100H34 Table 20 Write multiple holding registers response 101H35 Table 21 Mask write holding register request . 102H36
25、 Table 22 Mask write holding register request . 103H36 Table 23 Read/Write multiple holding registers request 104H37 Table 24 Read/Write multiple holding registers response . 105H38 Table 25 Read FIFO request 106H38 Table 26 Read FIFO response . 107H39 Table 27 Broadcast write single holding registe
26、r request 108H40 Table 28 Broadcast write multiple holding registers request. 109H41 Table 29 Read file record request 110H42 Table 30 Read file record response . 111H43 Table 31 Write file record request 112H44 Table 32 Write file record response . 113H46 Table 33 Read device identification request
27、. 114H47 Table 34 Device identification categories . 115H48 Table 35 Read device ID code . 116H48 Table 36 Read device identification response 117H49 Table 37 Conformity level 118H50 Table 38 Requested vs. returned known objects 119H51 Table 39 APDU structure . 120H53 Table 40 Sub-message structure
28、. 121H54 Table 41 Publish/subscribe service identifier encoding 122H54 Table 42 Attributes changed modally and affecting APDUs interpretations. 123H56 Table 43 Issue request 124H57 Table 44 Meaning of issue request flags 125H58 Table 45 Interpretation of issue 126H59 Table 46 Heartbeat request . 127
29、H60 Table 47 Meaning of heartbeat request flags . 128H61 61158-6-15 IEC:2010(E) 5 Table 48 Interpretation of heartbeat . 129H62 Table 49 VAR request 130H63 Table 50 Meaning of VAR request flags . 131H64 Table 51 Interpretation of VAR. 132H65 Table 52 GAP request 133H66 Table 53 Meaning of GAP reques
30、t flags . 134H67 Table 54 Interpretation of GAP. 135H67 Table 55 ACK request 136H68 Table 56 Meaning of ACK request flags . 137H69 Table 57 Interpretation of ACK. 138H69 Table 58 Header request . 139H70 Table 59 Change in state of the receiver 140H71 Table 60 INFO_DST request 141H71 Table 61 Meaning
31、 of INFO_DST request flags . 142H72 Table 62 INFO_REPLY request . 143H73 Table 63 Meaning of INFO_REPLY request flags. 144H74 Table 64 INFO_SRC request . 145H75 Table 65 Meaning of INFO_SRC request flags. 146H75 Table 66 INFO_TS request 147H76 Table 67 Meaning of INFO_TS request flags 148H77 Table 6
32、8 PAD request 149H78 Table 69 Meaning of PAD request flags . 150H78 Table 70 Semantics . 151H79 Table 71 FSPM state table client transactions. 152H87 Table 72 FSPM state table server transactions . 153H92 Table 73 Function MatchInvokeID() 154H92 Table 74 Function HighBit() . 155H92 Table 75 Paramete
33、rs used with primitives exchanged between FSPM and ARPM 156H92 Table 76 Client ARPM states . 157H94 Table 77 Client ARPM state table 158H94 Table 78 Server ARPM states 159H94 Table 79 Server ARPM state table . 160H95 Table 80 Primitives issued from ARPM to DMPM . 161H95 Table 81 Primitives issued by
34、 DMPM to ARPM 162H95 Table 82 Parameters used with primitives exchanged between ARPM and DMPM . 163H96 Table 83 DMPM state descriptions. 164H97 Table 84 DMPM state table client transactions 165H97 Table 85 DMPM state table server transactions 166H98 Table 86 Primitives exchanged between data-link la
35、yer and DMPM . 167H98 Table 87 Encapsulation parameters for client/server on TCP/IP. 168H99 6 61158-6-15 IEC:2010(E) INTERNATIONAL ELECTROTECHNICAL COMMISSION _ INDUSTRIAL COMMUNICATION NETWORKS FIELDBUS SPECIFICATIONS Part 6-15: Application layer protocol specification Type 15 elements FOREWORD 1)
36、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
37、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
38、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 Organizati
39、on 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 comm
40、ittee 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 i
41、s 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
42、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 assessment services and
43、, 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, employees, servants or
44、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
45、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 so
46、me 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 1 Use of some of the associated protocol types is restricted by their intellectual-property-right holders. In all cases, the commitmen
47、t 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 profile parts. Use of the various protocol ty
48、pes in other combinations may require permission from their respective intellectual-property-right holders. International Standard IEC 61158-6-15 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 with respect to the previous edition are listed below: editorial corrections. 61158-6-15 IEC:2010(E) 7 The text of this sta