1、BSI Standards PublicationFunction Blocks (FB) for process control and ElectronicDevice Description Language(EDDL)Part 3: EDDL syntax and semanticsBS EN 61804-3:2015National forewordThis British Standard is the UK implementation of EN 61804-3:2015. It is identical to IEC 61804-3:2015. It supersedes B
2、S EN 61804-3:2011 which is withdrawn.The UK participation in its preparation was entrusted to Technical Com-mittee AMT/7, Industrial communications: process measurement andcontrol, including fieldbus.A list of organizations represented on this committee can be obtained onrequest to its secretary.Thi
3、s publication does not purport to include all the necessary provisions ofa contract. Users are responsible for its correct application. The British Standards Institution 2015.Published by BSI Standards Limited 2015ISBN 978 0 580 79624 1ICS 25.040.40; 35.240.50Compliance with a British Standard canno
4、t confer immunity fromlegal obligations.This British Standard was published under the authority of theStandards Policy and Strategy Committee on 31 October 2015.Amendments/corrigenda issued since publicationDate Text affectedBRITISH STANDARDBS EN 61804-3:2015EUROPEAN STANDARD NORME EUROPENNE EUROPIS
5、CHE NORM EN 61804-3 September 2015 ICS 25.040.40; 35.240.50 Supersedes EN 61804-3:2011 English Version Function Blocks (FB) for process control and Electronic Device Description Language (EDDL) - Part 3: EDDL syntax and semantics (IEC 61804-3:2015) Blocs Fonctionnels (FB) pour les procds industriels
6、 et le Langage de Description Electronique de Produit (EDDL) - Partie 3: Smantique et syntaxe EDDL (IEC 61804-3:2015) Funktionsbausteine fr die Prozessautomation und elektronische Gertebeschreibungssprache - Teil 3: Elektronische Gertebeschreibungssprache (EDDL) (IEC 61804-3:2015) This European Stan
7、dard was approved by CENELEC on 2015-07-14. CENELEC members are bound to comply with the CEN/CENELEC Internal Regulations which stipulate the conditions for giving this European Standard the status of a national standard without any alteration. Up-to-date lists and bibliographical references concern
8、ing such national standards may be obtained on application to the CEN-CENELEC Management Centre or to any CENELEC member. This European Standard exists in three official versions (English, French, German). A version in any other language made by translation under the responsibility of a CENELEC memb
9、er into its own language and notified to the CEN-CENELEC Management Centre has the same status as the official versions. CENELEC members are the national electrotechnical committees of Austria, Belgium, Bulgaria, Croatia, Cyprus, the Czech Republic, Denmark, Estonia, Finland, Former Yugoslav Republi
10、c of Macedonia, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, the Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey and the United Kingdom. European Committee for Electrotechnical Standardization
11、Comit Europen de Normalisation Electrotechnique Europisches Komitee fr Elektrotechnische Normung CEN-CENELEC Management Centre: Avenue Marnix 17, B-1000 Brussels 2015 CENELEC All rights of exploitation in any form and by any means reserved worldwide for CENELEC Members. Ref. No. EN 61804-3:2015 E BS
12、 EN 61804-3:2015EN 61804-3:2015 2 European foreword The text of document 65E/451/FDIS, future edition 3 of IEC 61804-3, prepared by SC 65E “Devices and integration in enterprise systems” of IEC/TC 65 “Industrial-process measurement, control and automation“ was submitted to the IEC-CENELEC parallel v
13、ote and approved by CENELEC as EN 61804-3:2015. The following dates are fixed: latest date by which the document has to be implemented at national level by publication of an identical national standard or by endorsement (dop) 2016-04-14 latest date by which the national standards conflicting with th
14、e document have to be withdrawn (dow) 2018-07-14 Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. CENELEC and/or CEN shall not be held responsible for identifying any or all such patent rights. Endorsement notice The text of the In
15、ternational Standard IEC 61804-3:2015 was approved by CENELEC as a European Standard without any modification. In the official version, for Bibliography, the following notes have to be added for the standards indicated: IEC 61131-3 NOTE Harmonized as EN 61131-3 IEC 61499-1 NOTE Harmonized as EN 6149
16、9-1. IEC 61784-1 NOTE Harmonized as EN 61784-1. IEC 61784-2 NOTE Harmonized as EN 61784-2. IEC 61804-4 NOTE Harmonized as EN 61804-4 1)1) To be published. BS EN 61804-3:2015EN 61804-5:2015 3 Annex ZA (normative) Normative references to international publications with their corresponding European pub
17、lications The following documents, in whole or in part, are normatively referenced in this document and are indispensable for its application. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applie
18、s. NOTE 1 When an International Publication has been modified by common modifications, indicated by (mod), the relevant EN/HD applies. NOTE 2 Up-to-date information on the latest versions of the European Standards listed in this annex is available here: www.cenelec.eu. Publication Year Title EN/HD Y
19、ear IEC 60050 series International Electrotechnical Vocabulary - series IEC 61804-2 - Function blocks (FB) for process control and EDDL - Part 2: Specification of FB concept - - IEC 61804-5 - Function blocks (FB) for process control and EDDL - Part 5: EDDL Builtin library - - IEC 62541-4 - OPC Unifi
20、ed Architecture - Part 4: Services EN 62541-4 - ISO 639 series Codes for the representation of names of languages - series ISO 3166-1 - Codes for the representation of names of countries and their subdivisions - Part 1: Country codes - - ISO/IEC 2375 - Information technology - Procedure for registra
21、tion of escape sequences and coded character sets - - ISO/IEC 7498-1 - Information technology - Open Systems Interconnection - Basic Reference Model: The Basic Model - - ISO/IEC 9834-8 - Information technology - Procedures for the operation of object identifier registration authorities - Part 8: Gen
22、eration of universally unique identifiers (UUIDs) and their use in object identifiers - - ISO/IEC 9899 - Information technology - Programming languages - C - - ISO/IEC 10646-1 - Information technology - Universal Multiple-Octet Coded Character Set (UCS) - Part 1: Architecture and Basic Multilingual
23、Plane - - IEEE 754 - IEEE Standard for Binary Floating-Point Arithmetic - - RFC 3629 - UTF-8, User Datagram Protocol - - W3C - Cascading Style Sheets level 2 Specification - - BS EN 61804-3:2015 2 IEC 61804-3:2015 IEC 2015 CONTENTS FOREWORD . 16 INTRODUCTION . 18 1 Scope 19 2 Normative references. 1
24、9 3 Terms, definitions, abbreviated terms and acronyms 20 3.1 Terms and 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
25、* 24 5.2.4 ABC field1, field2+ . 24 5.2.5 ABC field1, (field2, field3) . 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 prepro
26、cessing 26 6.4.4 EDD compilation 26 6.5 Interrelations between the lexical 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、 . 27 7.1.4 Basic construction elements . 27 7.1.5 Common attributes . 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 stru
28、cture . 42 7.3.2 Specific attributes 43 7.4 BLOCK . 45 7.4.1 BLOCK_A 45 BS EN 61804-3:2015IEC 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 C
29、OMMAND . 62 7.7.1 General structure . 62 7.7.2 Specific attributes 63 7.8 COMPONENT . 69 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 CONNECT
30、ION (void) . 80 7.13 DOMAIN (void) 80 7.14 EDIT_DISPLAY . 80 7.14.1 General structure . 80 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
31、structure . 86 7.17.2 Specific attributes 86 7.18 IMAGE 87 7.18.1 General structure . 87 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
32、 LIST . 108 7.22.1 General structure . 108 7.22.2 Specific attributes 109 7.23 MENU . 110 7.23.1 General structure . 110 7.23.2 Specific attributes 111 7.23.3 Sequence diagrams for actions. 116 BS EN 61804-3:2015 4 IEC 61804-3:2015 IEC 2015 7.24 METHOD 118 7.24.1 General structure . 118 7.24.2 Speci
33、fic attributes 119 7.25 PROGRAM (void) 121 7.26 RECORD 121 7.27 REFERENCE_ARRAY . 122 7.27.1 General structure . 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
34、 . 125 7.30.2 Specific attributes 126 7.31 TEMPLATE . 127 7.31.1 General structure . 127 7.31.2 Specific attribute 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.3
35、4 VARIABLE_LIST . 148 7.35 WAVEFORM . 148 7.35.1 General structure . 148 7.35.2 Specific attributes 149 7.36 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.3
36、6.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.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 BS EN 61804-3:2015IEC 618
37、04-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 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 VALU
38、E_ARRAY 168 7.38.5 Referencing members of a COLLECTION . 169 7.38.6 Referencing elements of a REFERENCE_ARRAY . 169 7.38.7 Referencing 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 Referenc
39、ing elements of BLOCK_A LOCAL_PARAMETERS . 170 7.38.11 Referencing BLOCK_A CHARACTERISTICS 171 7.38.12 Referencing members of 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 member
40、s of a SOURCE 172 7.38.17 Referencing AXIS of a GRAPH, SOURCE, WAVEFORM . 173 7.38.18 Referencing PARAMETERS of specific BLOCK_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 Referenci
41、ng CHARTS of specific BLOCK_A instance 174 7.38.22 Referencing LISTS of specific BLOCK_A instance 175 7.38.23 Referencing GRAPHS 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 Referencin
42、g METHODS of specific BLOCK_A instance . 177 7.38.27 Referencing COMPONENT instances . 177 7.38.28 Referencing COMPONENT types . 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 a
43、s a string literal . 179 7.39.2 Specifying a string as a string variable 179 7.39.3 Specifying a string as an enumeration value . 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 Pro
44、mpt string formats . 181 7.40 Expression 182 7.40.1 General structure . 182 7.40.2 Primary expressions . 182 7.40.3 Unary expressions . 185 7.40.4 Binary expressions . 186 7.41 Text dictionary 188 7.42 PLUGIN 189 BS EN 61804-3:2015 6 IEC 61804-3:2015 IEC 2015 7.42.1 General structure . 189 7.42.2 Sp
45、ecific attribute UUID 189 7.43 BLOB 190 Annex A (normative) EDDL formal definition . 191 A.1 EDDL preprocessor . 191 A.1.1 General structure . 191 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
46、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 197 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
47、 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_REFERENCE 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
48、 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 . 233 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 BS EN
49、61804-3:2015IEC 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 Common 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 temperature transmitter . 290 C.2 EDD