1、 IEC 61158-6-20 Edition 3.0 2014-08 INTERNATIONAL STANDARD NORME INTERNATIONALE Industrial communication networks Fieldbus specifications Part 6-20: Application layer protocol specification Type 20 elements Rseaux de communication industriels Spcifications des bus de terrain Partie 6-20: Spcificatio
2、n du protocole de la couche application Elments de type 20 IEC 61158-6-20:2014-08(en-fr) colour inside 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 for
3、m 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. If you have any questions about IEC copyright or have an enquiry about obtaining additional rights to th
4、is publication, please contact the address below or your local IEC member National Committee for further information. Droits de reproduction rservs. Sauf indication contraire, aucune partie de cette publication ne peut tre reproduite ni utilise sous quelque forme que ce soit et par aucun procd, lect
5、ronique ou mcanique, y compris la photocopie et les microfilms, sans laccord crit de lIEC ou du Comit national de lIEC du pays du demandeur. Si vous avez des questions sur le copyright de lIEC ou si vous dsirez obtenir des droits supplmentaires sur cette publication, utilisez les coordonnes ci-aprs
6、ou contactez le Comit national de lIEC de votre pays de rsidence. IEC Central Office Tel.: +41 22 919 02 11 3, rue de Varemb Fax: +41 22 919 03 00 CH-1211 Geneva 20 infoiec.ch Switzerland www.iec.ch About the IEC The International Electrotechnical Commission (IEC) is the leading global organization
7、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 migh
8、t have been published. IEC Catalogue - webstore.iec.ch/catalogue The stand-alone application for consulting the entire bibliographical information on IEC International Standards, Technical Specifications, Technical Reports and other documents. Available for PC, Mac OS, Android Tablets and iPad. IEC
9、publications search - www.iec.ch/searchpub The advanced search enables to find IEC publications by a variety of criteria (reference number, text, technical committee,). It also gives information on projects, replaced and withdrawn publications. IEC Just Published - webstore.iec.ch/justpublished Stay
10、 up to date on all new IEC publications. Just Published details all new publications released. Available online and also once a month by email. Electropedia - www.electropedia.org The worlds leading online dictionary of electronic and electrical terms containing more than 30 000 terms and definition
11、s in English and French, with equivalent terms in 14 additional languages. Also known as the International Electrotechnical Vocabulary (IEV) online. IEC Glossary - std.iec.ch/glossary More than 55 000 electrotechnical terminology entries in English and French extracted from the Terms and Definitions
12、 clause of IEC publications issued since 2002. Some entries have been collected from earlier publications of IEC TC 37, 77, 86 and CISPR. IEC Customer Service Centre - webstore.iec.ch/csc If you wish to give us your feedback on this publication or need further assistance, please contact the Customer
13、 Service Centre: csciec.ch. A propos de lIEC La Commission Electrotechnique Internationale (IEC) est la premire organisation mondiale qui labore et publie des Normes internationales pour tout ce qui a trait llectricit, llectronique et aux technologies apparentes. A propos des publications IEC Le con
14、tenu technique des publications IEC est constamment revu. Veuillez vous assurer que vous possdez ldition la plus rcente, un corrigendum ou amendement peut avoir t publi. Catalogue IEC - webstore.iec.ch/catalogue Application autonome pour consulter tous les renseignements bibliographiques sur les Nor
15、mes internationales, Spcifications techniques, Rapports techniques et autres documents de lIEC. Disponible pour PC, Mac OS, tablettes Android et iPad. Recherche de publications IEC - www.iec.ch/searchpub La recherche avance permet de trouver des publications IEC en utilisant diffrents critres (numro
16、 de rfrence, texte, comit dtudes,). Elle donne aussi des informations sur les projets et les publications remplaces ou retires. IEC Just Published - webstore.iec.ch/justpublished Restez inform sur les nouvelles publications IEC. Just Published dtaille les nouvelles publications parues. Disponible en
17、 ligne et aussi une fois par mois par email. Electropedia - www.electropedia.org Le premier dictionnaire en ligne de termes lectroniques et lectriques. Il contient plus de 30 000 termes et dfinitions en anglais et en franais, ainsi que les termes quivalents dans 14 langues additionnelles. Egalement
18、appel Vocabulaire Electrotechnique International (IEV) en ligne. Glossaire IEC - std.iec.ch/glossary Plus de 55 000 entres terminologiques lectrotechniques, en anglais et en franais, extraites des articles Termes et Dfinitions des publications IEC parues depuis 2002. Plus certaines entres antrieures
19、 extraites des publications des CE 37, 77, 86 et CISPR de lIEC. Service Clients - webstore.iec.ch/csc Si vous dsirez nous donner des commentaires sur cette publication ou si vous avez des questions contactez-nous: csciec.ch. IEC 61158-6-20 Edition 3.0 2014-08 INTERNATIONAL STANDARD NORME INTERNATION
20、ALE Industrial communication networks Fieldbus specifications Part 6-20: Application layer protocol specification Type 20 elements Rseaux de communication industriels Spcifications des bus de terrain Partie 6-20: Spcification du protocole de la couche application Elments de type 20 INTERNATIONAL ELE
21、CTROTECHNICAL COMMISSION COMMISSION ELECTROTECHNIQUE INTERNATIONALE XC ICS 25.040.40; 35.100.70; 35.110 PRICE CODE CODE PRIX ISBN 978-2-8322-1766-5 Registered trademark of the International Electrotechnical Commission Marque dpose de la Commission Electrotechnique Internationale Warning! Make sure t
22、hat you obtained this publication from an authorized distributor. Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agr. colour inside 2 IEC 61158-6-20:2014 IEC 2014 CONTENTS FOREWORD . 7 INTRODUCTION . 9 1 Scope . 10 2 Normative references . 10 3 Terms, def
23、initions, symbols, abbreviations and conventions . 11 3.1 Terms and definitions from other ISO/IEC standards . 11 3.2 IEC 61158-1 terms 12 3.3 Type 20 fieldbus application-layer specific definitions 14 3.4 Abbreviations and symbols 17 3.5 Conventions 18 3.6 Conventions used in state machines 18 4 Ab
24、stract syntax . 20 5 Transfer syntax . 20 5.1 Common APDU fields 20 5.2 Common APDU structure . 22 5.3 Device application service-specific APDU structures . 24 5.4 Data coding rules 51 6 Common procedures 56 6.1 Delayed response 56 6.2 Publish mode procedure 56 7 FAL protocol state machines 56 7.1 G
25、eneral . 56 7.2 AREP mapping to data link layer . 57 7.3 Client ARPM 58 7.4 Server ARPM 60 7.5 Functions used by FAL state machines 61 Annex A (normative) Application process status . 63 A.1 General . 63 A.2 Device malfunction 63 A.3 Configuration changed 63 A.4 Cold start 64 A.5 More status availab
26、le 64 A.6 Loop current fixed . 64 A.7 Loop current saturated 64 A.8 Non-primary variable out of limits 65 A.9 Primary variable out of limits . 65 Annex B (normative) Device and dynamic variable . 66 B.1 Device variable 66 B.2 Dynamic variable . 66 B.3 Primary variable 67 B.4 Device variable classifi
27、cation . 68 B.5 Device families 68 B.6 Device variable status . 68 Annex C (normative) Common tables . 70 C.1 Overview . 70 IEC 61158-6-20:2014 IEC 2014 3 C.1.1 General . 70 C.1.2 Enumeration 70 C.1.3 Bit Field . 70 C.2 Table definitions 70 C.2.1 Publish mode control codes . 70 C.2.2 Write device va
28、riable codes . 70 C.2.3 Device variable family codes . 70 C.2.4 Device variable classification codes . 70 C.2.5 Analog channel saturated codes 70 C.2.6 Analog channel fixed codes . 70 C.2.7 Standardized status 0 codes 71 C.2.8 Standardized status 1 codes 71 C.2.9 Standardized status 2 codes 71 C.2.1
29、0 Standardized status 3 codes 71 C.2.11 Publish trigger mode codes . 71 C.2.12 Transfer function codes . 71 C.2.13 Alarm Selection Codes 71 C.2.14 Write Protect Codes. 72 C.2.15 Physical layer signalling codes 72 C.2.16 Flag Assignment codes 72 C.2.17 Loop current mode codes 73 C.2.18 Trim point cod
30、es 73 C.2.19 Analog channel flag codes . 73 C.2.20 Device variable codes 73 C.2.21 Device profile codes 74 Annex D (normative) Command requirements 75 D.1 General . 75 D.2 Stateless request and response. 75 D.3 Read command . 75 D.4 Write command . 75 D.5 Action command 75 D.6 Indexed command . 76 D
31、.7 Multi-transaction command 76 Bibliography 77 Figure 1 Request APDU . 22 Figure 2 Normal response APDU . 22 Figure 3 Command error response from slave to master 23 Figure 4 Aggregated command APDU 24 Figure 5 Coding without identification. 51 Figure 6 Coding of Integer type data 51 Figure 7 Coding
32、 of Integer16 type data 52 Figure 8 Coding of Unsigned type data 52 Figure 9 Coding of Unsigned16 type data . 52 Figure 10 Coding of single precision Floating Point type data 52 Figure 11 Coding of double precision Floating Point type data . 53 Figure 12 Coding of Date type data 53 4 IEC 61158-6-20:
33、2014 IEC 2014 Figure 13 Client state machine . 58 Figure 14 Server state machine . 60 Figure A.1 Loop current saturation and alarm levels . 65 Figure B.1 Device and Dynamic variables 66 Figure B.2 Primary variable domains 67 Figure B.3 Device variable status . 69 Table 1 Conventions used for state m
34、achines 19 Table 2 Response code values 20 Table 3 Application process status values 21 Table 4 Extended status values . 21 Table 5 Identify request APDU . 24 Table 6 Identify response value field 25 Table 7 Identify command specific response codes 25 Table 8 Read primary variable response value fie
35、ld . 26 Table 9 Read primary variable command specific response codes . 26 Table 10 Read loop current and percent of range value field 26 Table 11 Read loop current and percent of range command specific response codes 27 Table 12 Read dynamic variables and loop current value field . 27 Table 13 Read
36、 dynamic variables and loop current command specific response codes 27 Table 14 Write loop configuration value field 28 Table 15 Write loop configuration command specific response codes . 28 Table 16 Read loop configuration value field 29 Table 17 Read loop configuration command specific response co
37、des 29 Table 18 Read dynamic variable families classifications value field 29 Table 19 Read dynamic variable families classifications command specific response codes 29 Table 20 Read device variables with status request value field 30 Table 21 Read device variables with status value field . 30 Table
38、 22 Read device variables with status command specific response codes 31 Table 23 Read message response value field 32 Table 24 Read message command specific response codes 32 Table 25 Read tag, descriptor, date response value field . 33 Table 26 Read tag, descriptor, date command specific response
39、codes . 33 Table 27 Read primary variable transducer information response value field 33 Table 28 Read primary variable transducer information command specific response codes 34 Table 29 Read device information response value field 34 Table 30 Read device information command specific response codes
40、35 Table 31 Read final assembly number response value field . 35 Table 32 Read final assembly number command specific response codes . 35 Table 33 Write message value field 35 Table 34 Write message command specific response codes 36 IEC 61158-6-20:2014 IEC 2014 5 Table 35 Write tag, descriptor, dat
41、e value field 36 Table 36 Write tag, descriptor, date command specific response codes . 36 Table 37 Write final assembly number value field . 37 Table 38 Write final assembly number command specific response codes . 37 Table 39 Read long tag response value field 37 Table 40 Read long tag command-spe
42、cific response codes . 37 Table 41 Write long tag value field . 38 Table 42 Write long tag command specific Response codes 38 Table 43 Write primary variable range value field . 39 Table 44 Write primary variable range command specific response codes . 39 Table 45 Enter-exit fixed current mode reque
43、st value field . 40 Table 46 Enter-exit fixed current mode response value field. 40 Table 47 Enter-exit fixed current mode command specific response codes 40 Table 48 Write primary variable unit value field 41 Table 49 Write primary variable unit command specific response codes . 41 Table 50 Trim lo
44、op current zero request value field 41 Table 51 Trim loop current zero command specific response codes . 41 Table 52 Trim loop current gain request value field 42 Table 53 Trim loop current gain command specific response codes . 42 Table 54 Read dynamic variable assignment response value field . 43
45、Table 55 Read dynamic variable assignment command specific response codes . 43 Table 56 Write dynamic variable assignment value field . 44 Table 57 Write dynamic variable assignment command specific response codes . 44 Table 58 Write number of response preambles value field 45 Table 59 Write number
46、of response preambles command specific response codes 45 Table 60 Read device variable trim points request value field 45 Table 61 Read device variable trim points response value field 46 Table 62 Read device variable trim points command specific response codes 46 Table 63 Read device variable trim
47、guidelines request value field 46 Table 64 Read device variable trim guidelines response value field . 46 Table 65 Read device variable trim points command specific response codes 47 Table 66 Write device variable trim point value field . 47 Table 67 Write device variable trim point command specific
48、 response codes . 48 Table 68 Reset device variable trim value field 48 Table 69 Reset device variable trim command specific response codes . 49 Table 70 Aggregated command specific response codes . 50 Table 71 Coding for Date type . 53 Table 72 Coding for one octet Enumerated Type 54 Table 73 One octet bit field 54 Table 74 Packed ASCII character set . 55 Table 75 Acceptable subset of ISO Latin-1 characters . 56 Table 76 Client machine state transitions . 59 Table 77 Server machine state transitions 61 6 IEC 61158-6-20:2014 IEC 2014 Table 78 Functio