1、 IEC 61804-4 Edition 1.0 2015-10 INTERNATIONAL STANDARD NORME INTERNATIONALE Function blocks (FB) for process control and electronic device description language (EDDL) Part 4: EDD interpretation Blocs fonctionnels (FB) pour les procds industriels et le langage de description lectronique de produit (
2、EDDL) Partie 4: Interprtation EDD IEC 61804-4:2015-10(en-fr) colour inside THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2015 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, electroni
3、c 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 this publication, please conta
4、ct 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, lectronique ou mcanique, y compr
5、is 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 ou contactez le Comit nation
6、al 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 that prepares and publishes
7、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 C
8、atalogue - 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 publications search - www.ie
9、c.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 up to date on all new IEC p
10、ublications. 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 definitions in English and French, wit
11、h equivalent terms in 15 additional languages. Also known as the International Electrotechnical Vocabulary (IEV) online. IEC Glossary - std.iec.ch/glossary More than 60 000 electrotechnical terminology entries in English and French extracted from the Terms and Definitions clause of IEC publications
12、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 Service Centre: csciec.ch.
13、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 contenu technique des publicati
14、ons 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 Normes internationales, Spcific
15、ations 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 de rfrence, texte, comit dt
16、udes,). 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 ligne et aussi une fois par
17、 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 15 langues additionnelles. Egalement appel Vocabulaire Electrotec
18、hnique International (IEV) en ligne. Glossaire IEC - std.iec.ch/glossary Plus de 60 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 extraites des publications
19、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 61804-4 Edition 1.0 2015-10 INTERNATIONAL STANDARD NORME INTERNATIONALE Function blocks (FB) for pr
20、ocess control and electronic device description language (EDDL) Part 4: EDD interpretation Blocs fonctionnels (FB) pour les procds industriels et le langage de description lectronique de produit (EDDL) Partie 4: Interprtation EDD INTERNATIONAL ELECTROTECHNICAL COMMISSION COMMISSION ELECTROTECHNIQUE
21、INTERNATIONALE ICS 25.040.40; 35.240.50 ISBN 978-2-8322-2937-8 Registered trademark of the International Electrotechnical Commission Marque dpose de la Commission Electrotechnique Internationale Warning! Make sure that you obtained this publication from an authorized distributor. Attention! Veuillez
22、 vous assurer que vous avez obtenu cette publication via un distributeur agr. colour inside 2 IEC 61804-4:2015 IEC 2015 CONTENTS FOREWORD . 8 INTRODUCTION . 10 1 Scope 11 2 Normative references 11 3 Terms, definitions, abbreviated terms, acronyms and conventions . 11 3.1 General terms and definition
23、s . 12 3.2 Terms and definitions related to modular devices 12 3.3 Abbreviated terms and acronyms 13 3.4 Conventions 13 4 EDDL user interface description 13 4.1 Overview. 13 4.2 Menu conventions for handheld applications . 14 4.3 Menu conventions for PC-based applications 14 4.3.1 Overview . 14 4.3.
24、2 Online Root Menus 14 4.3.3 Offline Root Menu 15 4.3.4 Example of EDD menu structure 15 4.3.5 User interface 20 4.4 Containers and contained items 23 4.4.1 Overview . 23 4.4.2 Containers . 23 4.4.3 Contained items . 26 4.5 Layout rules 30 4.5.1 Overview . 30 4.5.2 Layout rules for WIDTH and HEIGHT
25、. 30 4.5.3 Layout rules for COLUMNBREAK and ROWBREAK . 31 4.5.4 Layout examples . 37 4.5.5 Conditional user interface 45 4.6 Graphical elements . 46 4.6.1 Overview . 46 4.6.2 Graph and chart . 47 4.6.3 Common attributes 47 4.6.4 CHART 48 4.6.5 GRAPH 56 4.6.6 AXIS 65 4.6.7 IMAGE . 66 4.6.8 GRID . 67
26、5 EDDL data description . 69 5.1 Variables 69 5.1.1 VARIABLE TYPEs . 69 5.1.2 VARIABLE CLASS . 70 5.1.3 VARIABLE ACTIONS . 70 5.2 EDDL application stored device data . 70 5.2.1 Overview . 70 5.2.2 FILE 71 5.2.3 LIST 73 IEC 61804-4:2015 IEC 2015 3 5.3 Exposing data items outside the EDD application 8
27、0 5.4 Initialization of EDD instances . 80 5.4.1 Overview . 80 5.4.2 Initialization support 80 5.4.3 TEMPLATE 80 5.5 Device model mapping 81 5.5.1 BLOCK_A 81 5.5.2 BLOCK_B 82 6 EDDL METHOD programming and usage of Builtins 82 6.1 Builtin MenuDisplay 82 6.2 Division by zero and undetermined floating
28、values 85 6.2.1 Integer and unsigned integer values 85 6.2.2 Floating-point values . 85 7 Modular devices 85 7.1 Overview. 85 7.2 EDD identification . 86 7.3 Instance object model . 86 7.4 Offline configuration 87 7.5 Online configuration 87 7.6 Simple modular device example 87 7.6.1 General . 87 7.
29、6.2 Separate EDD file example with direct EDD referencing 88 7.6.3 Separate EDD file example with classification EDD referencing and interfaces 89 7.6.4 One EDD file example . 92 7.6.5 Combination of single and separate modular device example 93 7.7 COMPONENT_RELATION 93 7.7.1 General . 93 7.7.2 NEX
30、T_COMPONENT usage 93 7.7.3 REQUIRED_RANGES and ADDRESSING usage . 93 7.8 Upload and download for modular devices 93 7.9 Diagnostic . 94 7.10 Reading modular device topology . 95 7.10.1 SCAN 95 7.10.2 Detect module type 96 7.11 Configuration check 97 8 Edit session . 98 8.1 Data management . 98 8.1.1
31、 Overview . 98 8.1.2 General rules . 99 8.1.3 Data caching for dialogs and windows . 99 8.1.4 Data caching for METHODs . 100 8.2 UI aspects of editing sessions . 102 8.3 User roles . 103 9 Offline and online configuration . 103 9.1 Overview. 103 9.2 Offline dataset 104 9.3 Offline configuration 104
32、9.4 Online dataset 104 4 IEC 61804-4:2015 IEC 2015 9.5 Online configuration 104 9.6 Upload and download . 105 9.6.1 Overview . 105 9.6.2 Error recovery 106 9.6.3 Upload procedure 106 9.6.4 Download procedure 107 10 EDDL communication description 109 10.1 COMMAND . 109 10.1.1 General . 109 10.1.2 OPE
33、RATION 109 10.1.3 TRANSACTION . 110 10.1.4 Command addressing 113 10.2 Parsing data received from the device 114 10.2.1 General . 114 10.2.2 Parsing complex data items . 114 10.2.3 FOUNDATION Fieldbus . 114 10.2.4 HART 115 10.2.5 PROFIBUS and PROFINET . 115 10.3 FOUNDATION Fieldbus communication mod
34、el 115 11 EDD development 119 11.1 Dictionaries . 119 11.2 Reserved 119 Annex A (normative) Device simulation 120 Annex B (informative) Predefined identifiers 121 Figure 1 EDD example of root menus . 20 Figure 2 Example of an EDD application for diagnostics 20 Figure 3 Example of an EDD application
35、for process variables . 21 Figure 4 Example of an EDD application for primary variables . 21 Figure 5 Example of an EDD application for process-related device features . 22 Figure 6 Example of an EDD application for device features 22 Figure 7 Example of an EDD application for maintenance features 2
36、3 Figure 8 Usage of COLLECTION MEMBERS in MENUs of STYLE GROUP 26 Figure 9 Displaying single bits of BIT_ENUMERATED . 27 Figure 10 Displaying multiple bits of BIT_ENUMERATED. 28 Figure 11 Example of an EDD application for a variable of type BIT_ENUMERATED . 28 Figure 12 EDD source code for layout fo
37、r protruding elements example . 32 Figure 13 Layout for protruding elements . 32 Figure 14 EDD source code for layout for partially filled rows example . 33 Figure 15 Layout for partially filled rows . 33 Figure 16 EDD source code for layout for partially filled rows example . 34 Figure 17 Layout fo
38、r partially filled rows . 34 Figure 18 EDD source code for layout for oversized elements example 35 Figure 19 Layout for oversized elements 35 Figure 20 EDD source code example for a layout for columns in stacked group . 36 Figure 21 Layout for columns in stacked group 36 IEC 61804-4:2015 IEC 2015 5
39、 Figure 22 EDD source code for layout for columns with GRAPHs in stacked group example 37 Figure 23 Layout for columns with GRAPHs in stacked group 37 Figure 24 Example of an EDD for an overview menu 37 Figure 25 Example of an EDD application for an overview window . 38 Figure 26 Example of an EDD u
40、sing COLUMNBREAK . 38 Figure 27 Example of an EDD application for an overview window . 39 Figure 28 EDD example for an overview window 39 Figure 29 Example of an EDD application for an overview window . 40 Figure 30 Example of an EDD for in-line graphs and charts . 40 Figure 31 Example of an EDD app
41、lication for an in-line graph 41 Figure 32 Example of an EDD for full-width graphs and charts . 41 Figure 33 Example of an EDD application for a full-width graph . 42 Figure 34 Example of an EDD for nested containers 43 Figure 35 Example of an EDD application for nested containers 43 Figure 36 Examp
42、le of an EDD for EDIT_DISPLAYS . 44 Figure 37 Example of an EDD application for EDIT_DISPLAYS 44 Figure 38 Example of an EDD for images . 45 Figure 39 Example of an EDD application for images . 45 Figure 40 HEIGHT and WIDTH attributes for CHART and GRAPH . 47 Figure 41 EMPHASIS attribute to differen
43、tiate one or more SOURCEs or WAVEFORMs . 48 Figure 42 Example of a chart with one curve in a dialog . 50 Figure 43 Example of a chart with two SOURCEs 51 Figure 44 Displaying example of a chart with two SOURCEs 52 Figure 45 Example of a chart with three horizontal bars . 53 Figure 46 Displaying exam
44、ple of a chart with three horizontal bars 54 Figure 47 Example of a chart in a dialog 56 Figure 48 A graph and the visual elements 57 Figure 49 Example of a graph 60 Figure 50 Multiple used axes . 61 Figure 51 EDD with device-supported zooming and scrolling . 65 Figure 52 EDD example of an IMAGE 66
45、Figure 53 EDD example of an IMAGE with the LINK attribute . 66 Figure 54 EDD example of a GRID . 68 Figure 55 Result of the EDD example 68 Figure 56 Wrong usage of a BIT_ENUMERATED variable 69 Figure 57 Usage of ENUMERATED instead of BIT_ENUMERATED . 69 Figure 58 Example of a file declaration 72 Fig
46、ure 59 Example of comparing valve signatures 73 Figure 60 Example of more complex file declaration 74 Figure 61 Example of reviewing the stored radar signals 75 Figure 62 Example of an EDD that inserts, replaces, or compares radar signals 80 Figure 63 Example of TEMPLATE usage . 81 6 IEC 61804-4:201
47、5 IEC 2015 Figure 64 Example of a BLOCK_A . 82 Figure 65 Example of a wizard . 84 Figure 66 The different relations of a module . 87 Figure 67 Components and possible configuration of the modular devices . 87 Figure 68 Separate EDD file example with direct EDD referencing . 88 Figure 69 EDD example
48、for module1 89 Figure 70 EDD example for module2 89 Figure 71 EDD example for modular device . 90 Figure 72 EDD example for module1 91 Figure 73 EDD example for module2 91 Figure 74 EDD example for module2 93 Figure 75 NEXT_COMPONENT usage . 93 Figure 76 REQUIRED_RANGES usage 93 Figure 77 Upload/download order of a modular device . 94 Figure 78 Example of a SCAN METHOD 96 Figure 79 Example of a DETECT METHOD 97 Figure 80 Example of a CHECK_CONFIGURATION METHOD . 98 Figure 81 Data caching for an offline session . 98 Figure 82 Data caching for an online session . 99 Figure 83 Sub dialogs or wi