1、 IEC 61804-3 Edition 3.0 2015-06 INTERNATIONAL STANDARD NORME INTERNATIONALE Function Blocks (FB) for process control and Electronic Device Description Language (EDDL) Part 3: EDDL syntax and semantics Blocs Fonctionnels (FB) pour les procds industriels et le Langage de Description Electronique de P
2、roduit (EDDL) Partie 3: Smantique et syntaxe EDDL IEC 61804-3:2015-06(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
3、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 this publicati
4、on, 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, lectronique ou m
5、canique, 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 ou contactez
6、 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 that prepare
7、s 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
8、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 publications
9、 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 up to date
10、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 definitions in English
11、 and French, with 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 I
12、EC 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 Service Cen
13、tre: 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 contenu techniq
14、ue 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 Normes internat
15、ionales, 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 de rfrence,
16、 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 ligne et au
17、ssi 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 15 langues additionnelles. Egalement appel Vocabu
18、laire Electrotechnique 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 d
19、es 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 61804-3 Edition 3.0 2015-06 INTERNATIONAL STANDARD NORME INTERNATIONALE Function Bl
20、ocks (FB) for process control and Electronic Device Description Language (EDDL) Part 3: EDDL syntax and semantics Blocs Fonctionnels (FB) pour les procds industriels et le Langage de Description Electronique de Produit (EDDL) Partie 3: Smantique et syntaxe EDDL INTERNATIONAL ELECTROTECHNICAL COMMISS
21、ION COMMISSION ELECTROTECHNIQUE INTERNATIONALE ICS 25.040.40; 35.240.50 ISBN 978-2-8322-2708-4 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
22、distributor. Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agr. colour inside 2 IEC 61804-3:2015 IEC 2015 CONTENTS FOREWORD . 16 INTRODUCTION . 18 1 Scope 19 2 Normative references. 19 3 Terms, definitions, abbreviated terms and acronyms 20 3.1 Terms and
23、 definitions 20 3.2 Abbreviated terms and acronyms . 22 4 Conformance statement . 22 5 Conventions 23 5.1 General . 23 5.2 Conventions for lexical structure 23 5.2.1 ABC field1, field2 . 23 5.2.2 ABC field1+ . 24 5.2.3 ABC field2* 24 5.2.4 ABC field1, field2+ . 24 5.2.5 ABC field1, (field2, field3)
24、. 24 6 EDD and EDDL model . 24 6.1 Overview of EDD and EDDL 24 6.2 EDD architecture . 24 6.3 Concepts of EDD 24 6.4 Principles of the EDD development process . 25 6.4.1 General . 25 6.4.2 EDD source generation 25 6.4.3 EDD preprocessing 26 6.4.4 EDD compilation 26 6.5 Interrelations between the lexi
25、cal structure and formal definitions . 26 6.6 Builtins . 26 6.7 Profiles . 26 7 Electronic Device Description Language (EDDL) 26 7.1 Overview. 26 7.1.1 EDDL features . 26 7.1.2 Syntax representation 27 7.1.3 EDD language elements . 27 7.1.4 Basic construction elements . 27 7.1.5 Common attributes .
26、38 7.1.6 Special elements 38 7.1.7 Rules for instances 39 7.1.8 Rules for a list of VARIABLEs . 39 7.2 EDD identification information . 39 7.2.1 General structure . 39 7.2.2 Specific attributes 39 7.3 AXIS . 42 7.3.1 General structure . 42 7.3.2 Specific attributes 43 7.4 BLOCK . 45 7.4.1 BLOCK_A 45
27、 IEC 61804-3:2015 IEC 2015 3 7.4.2 BLOCK_B 57 7.5 CHART . 59 7.5.1 General structure . 59 7.5.2 Specific attributes 59 7.6 COLLECTION . 61 7.6.1 General structure . 61 7.6.2 Specific attribute item-type 62 7.7 COMMAND . 62 7.7.1 General structure . 62 7.7.2 Specific attributes 63 7.8 COMPONENT . 69
28、7.8.1 General structure . 69 7.8.2 Specific attributes 70 7.9 COMPONENT_FOLDER 75 7.10 COMPONENT_REFERENCE . 76 7.11 COMPONENT_RELATION 76 7.11.1 General structure . 76 7.11.2 Specific attributes 77 7.12 CONNECTION (void) . 80 7.13 DOMAIN (void) 80 7.14 EDIT_DISPLAY . 80 7.14.1 General structure . 8
29、0 7.14.2 Specific attributes 81 7.15 FILE . 83 7.15.1 General structure . 83 7.15.2 Specific attributes 83 7.16 GRAPH . 84 7.16.1 General structure . 84 7.16.2 Specific attributes 85 7.17 GRID 86 7.17.1 General structure . 86 7.17.2 Specific attributes 86 7.18 IMAGE 87 7.18.1 General structure . 87
30、7.18.2 Specific attributes 88 7.19 IMPORT 89 7.19.1 General structure . 89 7.19.2 Redefinitions 91 7.20 INTERFACE 107 7.20.1 General structure . 107 7.20.2 Specific attribute DECLARATION 107 7.21 LIKE . 108 7.22 LIST . 108 7.22.1 General structure . 108 7.22.2 Specific attributes 109 7.23 MENU . 110
31、 7.23.1 General structure . 110 7.23.2 Specific attributes 111 7.23.3 Sequence diagrams for actions. 116 4 IEC 61804-3:2015 IEC 2015 7.24 METHOD 118 7.24.1 General structure . 118 7.24.2 Specific attributes 119 7.25 PROGRAM (void) 121 7.26 RECORD 121 7.27 REFERENCE_ARRAY . 122 7.27.1 General structu
32、re . 122 7.27.2 Specific attribute ELEMENTS 122 7.28 Relations 123 7.28.1 REFRESH 123 7.28.2 UNIT 123 7.28.3 WRITE_AS_ONE . 124 7.29 RESPONSE_CODES 124 7.30 SOURCE 125 7.30.1 General structure . 125 7.30.2 Specific attributes 126 7.31 TEMPLATE . 127 7.31.1 General structure . 127 7.31.2 Specific att
33、ribute DEFAULT_VALUES 127 7.32 VALUE_ARRAY 128 7.32.1 General structure . 128 7.32.2 Specific attributes 128 7.33 VARIABLE 129 7.33.1 General structure . 129 7.33.2 Specific attributes 130 7.34 VARIABLE_LIST . 148 7.35 WAVEFORM . 148 7.35.1 General structure . 148 7.35.2 Specific attributes 149 7.36
34、 Common attributes 155 7.36.1 CLASSIFICATION 155 7.36.2 COMPONENT_PARENT . 156 7.36.3 COMPONENT_PATH . 157 7.36.4 DEFINITION 157 7.36.5 EMPHASIS 158 7.36.6 HANDLING 158 7.36.7 HEIGHT . 158 7.36.8 HELP . 159 7.36.9 LABEL . 160 7.36.10 LINE_COLOR 160 7.36.11 LINE_TYPE . 160 7.36.12 MEMBERS . 161 7.36.
35、13 PROTOCOL . 162 7.36.14 RESPONSE_CODES . 163 7.36.15 SUPPLIED_INTERFACE 163 7.36.16 VALIDITY. 163 7.36.17 WIDTH . 164 7.36.18 PRIVATE . 164 7.36.19 VISIBILITY . 164 IEC 61804-3:2015 IEC 2015 5 7.36.20 WRITE_MODE . 165 7.36.21 IDENTITY 165 7.37 Conditional expression 166 7.38 Referencing 167 7.38.1
36、 Referencing an EDD instance . 167 7.38.2 Referencing bits of a BIT_ENUMERATED VARIABLE . 168 7.38.3 Referencing members of a RECORD 168 7.38.4 Referencing elements of a VALUE_ARRAY 168 7.38.5 Referencing members of a COLLECTION . 169 7.38.6 Referencing elements of a REFERENCE_ARRAY . 169 7.38.7 Ref
37、erencing members of a VARIABLE_LISTS . 169 7.38.8 Referencing elements of BLOCK_A PARAMETERS 170 7.38.9 Referencing elements of BLOCK_A PARAMETER_LISTS . 170 7.38.10 Referencing elements of BLOCK_A LOCAL_PARAMETERS . 170 7.38.11 Referencing BLOCK_A CHARACTERISTICS 171 7.38.12 Referencing members of
38、a FILE . 171 7.38.13 Referencing elements of a LIST . 171 7.38.14 Referencing members of a CHART . 172 7.38.15 Referencing members of a GRAPH . 172 7.38.16 Referencing members of a SOURCE 172 7.38.17 Referencing AXIS of a GRAPH, SOURCE, WAVEFORM . 173 7.38.18 Referencing PARAMETERS of specific BLOCK
39、_A instance . 173 7.38.19 Referencing LOCAL_PARAMETERS of specific BLOCK_A instance 174 7.38.20 Referencing CHARACTERISTICS of specific BLOCK_A instance 174 7.38.21 Referencing CHARTS of specific BLOCK_A instance 174 7.38.22 Referencing LISTS of specific BLOCK_A instance 175 7.38.23 Referencing GRAP
40、HS of specific BLOCK_A instance 175 7.38.24 Referencing GRIDS of specific BLOCK_A instance . 176 7.38.25 Referencing MENUS of specific BLOCK_A instance 176 7.38.26 Referencing METHODS of specific BLOCK_A instance . 177 7.38.27 Referencing COMPONENT instances . 177 7.38.28 Referencing COMPONENT types
41、 . 178 7.38.29 Referencing FILES of specific BLOCK_A instance 178 7.38.30 Referencing PLUGINS of specific BLOCK_A instance . 178 7.39 Strings 179 7.39.1 Specifying a string as a string literal . 179 7.39.2 Specifying a string as a string variable 179 7.39.3 Specifying a string as an enumeration valu
42、e . 180 7.39.4 Specifying a string as a dictionary reference . 180 7.39.5 Referencing HELP and LABEL attributes of EDD instances . 180 7.39.6 String operations 181 7.39.7 Prompt string formats . 181 7.40 Expression 182 7.40.1 General structure . 182 7.40.2 Primary expressions . 182 7.40.3 Unary expr
43、essions . 185 7.40.4 Binary expressions . 186 7.41 Text dictionary 188 7.42 PLUGIN 189 6 IEC 61804-3:2015 IEC 2015 7.42.1 General structure . 189 7.42.2 Specific attribute UUID 189 7.43 BLOB 190 Annex A (normative) EDDL formal definition . 191 A.1 EDDL preprocessor . 191 A.1.1 General structure . 19
44、1 A.1.2 Directives 191 A.1.3 Predefined macros . 194 A.1.4 NEWLINE characters . 195 A.1.5 Comments . 195 A.2 Conventions 195 A.2.1 Integer constants . 195 A.2.2 Floating-point constants . 195 A.2.3 String literals . 196 A.2.4 Using language and country codes in string literals . 196 A.3 Operators 19
45、7 A.4 Keywords 201 A.5 Terminals 205 A.6 Formal EDDL syntax . 206 A.6.1 General . 206 A.6.2 EDD identification information 206 A.6.3 AXIS 207 A.6.4 BLOCK_A and BLOCK_B . 208 A.6.5 CHART 212 A.6.6 COLLECTION 213 A.6.7 COMMAND 214 A.6.8 COMPONENT 217 A.6.9 COMPONENT_FOLDER . 220 A.6.10 COMPONENT_REFER
46、ENCE 220 A.6.11 COMPONENT_RELATION . 221 A.6.12 CONNECTION (void) . 223 A.6.13 DOMAIN (void) . 223 A.6.14 EDIT_DISPLAY 223 A.6.15 FILE 224 A.6.16 GRAPH 224 A.6.17 GRID . 225 A.6.18 IMAGE . 226 A.6.19 INTERFACE . 227 A.6.20 LIST 227 A.6.21 IMPORT. 227 A.6.22 LIKE 229 A.6.23 MENU 231 A.6.24 METHOD . 2
47、33 A.6.25 PROGRAM (void) . 234 A.6.26 RECORD . 234 A.6.27 REFERENCE_ARRAY 235 A.6.28 Relations . 235 A.6.29 RESPONSE_CODES . 237 A.6.30 SOURCE . 238 IEC 61804-3:2015 IEC 2015 7 A.6.31 TEMPLATE 238 A.6.32 VALUE_ARRAY . 239 A.6.33 VARIABLE . 239 A.6.34 VARIABLE_LIST 249 A.6.35 WAVEFORM 249 A.6.36 Comm
48、on attributes . 251 A.6.37 Expression . 255 A.6.38 C-Grammar 257 A.6.39 Redefinition . 261 A.6.40 References 285 A.6.41 PLUGIN . 287 A.6.42 BLOB . 288 A.7 Formal dictionary syntax 288 Annex B (normative) EDDL Builtin library (void) 289 Annex C (informative) EDD example 290 C.1 EDD example of a tempe
49、rature transmitter . 290 C.2 EDD example 291 Annex D (normative) Profiles of EDDL and Builtins . 304 D.1 Conventions for profiles of EDDL and Builtins 304 D.2 Profiles for PROFIBUS and PROFINET . 305 D.2.1 EDDL profile 305 D.2.2 Builtin profile 311 D.2.3 EDDL Formal Definition profile . 311 D.3 Profiles for FOUNDATION fieldbus . 312 D.3.1 EDDL profile 312 D.3.2 Builtin profile 318 D.3.3 EDDL Formal Definition profile . 319 D.4 Profiles for HAR