1、raising standards worldwideNO COPYING WITHOUT BSI PERMISSION EXCEPT AS PERMITTED BY COPYRIGHT LAWBSI Standards PublicationFunction blocksPart 1: ArchitectureBS EN 61499-1:2013National forewordThis British Standard is the UK implementation of EN 61499-1:2013. It isidentical to IEC 61499-1:2012. It su
2、persedes BS EN 61499-1:2005 which iswithdrawn.The UK participation in its preparation was entrusted to Technical CommitteeGEL/65, Measurement and control.A list of organizations represented on this committee can be obtained onrequest to its secretary.This publication does not purport to include all
3、the necessary provisions of acontract. Users are responsible for its correct application. The British Standards Institution 2013Published by BSI Standards Limited 2013ISBN 978 0 580 78490 3ICS 25.040.40; 35.240.50Compliance with a British Standard cannot confer immunity fromlegal obligations.This Br
4、itish Standard was published under the authority of the StandardsPolicy and Strategy Committee on 30 April 2013.Amendments issued since publicationAmd. No. Date Text affectedBRITISH STANDARDBS EN 61499-1:2013EUROPEAN STANDARD EN 61499-1 NORME EUROPENNE EUROPISCHE NORM February 2013 CENELEC European
5、Committee for Electrotechnical Standardization Comit Europen de Normalisation Electrotechnique Europisches Komitee fr Elektrotechnische Normung Management Centre: Avenue Marnix 17, B - 1000 Brussels 2013 CENELEC - All rights of exploitation in any form and by any means reserved worldwide for CENELEC
6、 members. Ref. No. EN 61499-1:2013 E ICS 25.040; 35.240.50 Supersedes EN 61499-1:2005 English version Function blocks - Part 1: Architecture (IEC 61499-1:2012) Blocs fonctionnels - Partie 1: Architecture (CEI 61499-1:2012) Funktionsbausteine fr industrielle Leitsysteme - Teil 1: Architektur (IEC 614
7、99-1:2012) This European Standard was approved by CENELEC on 2012-12-12. 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 bibli
8、ographical references concerning 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 res
9、ponsibility of a CENELEC member 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, Fin
10、land, Former Yugoslav Republic 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. BS EN 61499-1:2013EN 61499-
11、1:2013 - 2 - Foreword The text of document 65B/845/FDIS, future edition 2 of IEC 61499-1, prepared by SC 65B “Measurement and control devices“ of IEC/TC 65 “Industrial-process measurement, control and automation“ was submitted to the IEC-CENELEC parallel vote and approved by CENELEC as EN 61499-1:20
12、13. 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) 2013-09-12 latest date by which the national standards conflicting with the document have to be withdrawn (dow) 2015-1
13、2-12 This document supersedes EN 61499-1:2005. EN 61499-1:2013 includes the following significant technical changes with respect to EN 61499-1:2005: Execution control in basic function blocks (5.2) has been clarified and extended: - dynamic and static parts of the EC transition condition are clearly
14、 delineated by using the ec_transition_eventguard_condition syntax of the Unified Modeling Language (UML) (5.2.1.3, B.2.1); - the terminology “crossing of an EC transition“ (3.10) is used preferentially to “clearing“ to avoid the misinterpretation that the entire transition condition corresponds to
15、a Boolean variable that can be “cleared.“; - operation of the ECC state machine in 5.2.2.2 has been clarified and made more rigorous; - event and data outputs of adapter instances (plugs and sockets) can be used in EC transition conditions, and event inputs of adapter instances can be used as EC act
16、ion outputs. Temporary variables (3.97) can be declared (B.2.1) and used in algorithms of basic function blocks. Service sequences (6.1.3) can now be defined for basic and composite function block types and adapter types, as well as service interface types. The syntax for mapping of FB instances fro
17、m applications to resources has been simplified (Clause B.3). Syntax for definition of segment types (7.2.3) for network segments of system configurations has been added (Clause B.3). Function block types for interoperation with programmable controllers are defined (Clause D.6). The READ/WRITE manag
18、ement commands (Table 8) now apply only to parameters. 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. BS EN 61499-1:2013- 3 - EN 6149
19、9-1:2013 Endorsement notice The text of the International Standard IEC 61499-1:2012 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-5:2000 NOTE Harmonised a
20、s EN 61131-5:2001 (not modified). IEC 61499 Series NOTE Harmonised as EN 61499 Series (not modified). IEC 61499-2:2012 NOTE Harmonised as EN 61499-2:2013 (not modified). IEC 61499-4 NOTE Harmonised as EN 61499-4. BS EN 61499-1:2013EN 61499-1:2013 - 4 - Annex ZA (normative) Normative references to in
21、ternational publications with their corresponding European publications 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 editio
22、n of the referenced document (including any amendments) applies. NOTE When an international publication has been modified by common modifications, indicated by (mod), the relevant EN/HD applies. Publication Year Title EN/HD Year IEC 61131-1 - Programmable controllers - Part 1: General information EN
23、 61131-1 - IEC 61131-3 2003 Programmable controllers - Part 3: Programming languages EN 61131-3 2003 ISO/IEC 7498-1 1994 Information technology - Open Systems Interconnection - Basic Reference Model: The Basic Model - - ISO/IEC 8824-1 2008 Information technology - Abstract Syntax Notation One (ASN.1
24、): Specification of basic notation - - ISO/IEC 10646 2003 Information technology - Universal multiple-octet coded character set (UCS) - - BS EN 61499-1:2013 2 61499-1 IEC:2012 CONTENTS INTRODUCTION . 7 1 Scope . 8 2 Normative references . 8 3 Terms and definitions . 9 4 Reference models 18 System mo
25、del 18 4.1Device model 19 4.2Resource model 19 4.3Application model 21 4.4Function block model. 21 4.5Characteristics of function block instances 21 4.5.1Function block type specifications . 23 4.5.2Execution model for basic function blocks . 23 4.5.3Distribution model . 25 4.6Management model . 25
26、4.7Operational state models . 27 4.85 Specification of function block, subapplication and adapter interface types . 27 Overview . 27 5.1Basic function blocks . 28 5.2Type declaration 28 5.2.1Behavior of instances 30 5.2.2Composite function blocks . 33 5.3Type specification 33 5.3.1Behavior of instan
27、ces 35 5.3.2Subapplications . 36 5.4Type specification 36 5.4.1Behavior of instances 37 5.4.2Adapter interfaces . 38 5.5General principles . 38 5.5.1Type specification 38 5.5.2Usage 39 5.5.3Exception and fault handling 41 5.66 Service interface function blocks 41 General principles . 41 6.1General .
28、 41 6.1.1Type specification 42 6.1.2Behavior of instances 43 6.1.3Communication function blocks . 45 6.2Type specification 45 6.2.1Behavior of instances 46 6.2.2Management function blocks . 47 6.3Requirements 47 6.3.1Type specification 47 6.3.2Behavior of managed function blocks. 50 6.3.37 Configura
29、tion of functional units and systems . 52 BS EN 61499-1:201361499-1 IEC:2012 3 Principles of configuration . 52 7.1Functional specification of resource, device and segment types 52 7.2Functional specification of resource types . 52 7.2.1Functional specification of device types . 53 7.2.2Functional s
30、pecification of segment types 53 7.2.3Configuration requirements . 53 7.3Configuration of systems . 53 7.3.1Specification of applications 54 7.3.2Configuration of devices and resources . 54 7.3.3Configuration of network segments and links . 55 7.3.4Annex A (normative) Event function blocks 56 Annex
31、B (normative) Textual syntax . 63 Annex C (informative) Object models . 74 Annex D (informative) Relationship to IEC 61131-3 82 Annex E (informative) Information exchange 92 Annex F (normative) Textual specifications 100 Annex G (informative) Attributes 113 Bibliography 117 Figure 1 System model 18
32、Figure 2 Device model . 19 Figure 3 Resource model . 20 Figure 4 Application model . 21 Figure 5 Characteristics of function blocks . 22 Figure 6 Execution model 24 Figure 7 Execution timing . 24 Figure 8 Distribution and management models . 26 Figure 9 Function block and subapplication types 28 Fig
33、ure 10 Basic function block type declaration 29 Figure 11 ECC example . 30 Figure 12 ECC operation state machine . 32 Figure 13 Composite function block PI_REAL example . 34 Figure 14 Basic function block PID_CALC example 35 Figure 15 Subapplication PI_REAL_APPL example . 37 Figure 16 Adapter interf
34、aces Conceptual model 38 Figure 17 Adapter type declaration graphical example 39 Figure 18 Illustration of provider and acceptor function block type declarations 40 Figure 19 Illustration of adapter connections 41 Figure 20 Example service interface function blocks 43 Figure 21 Example service seque
35、nce diagrams 44 Figure 22 Generic management function block type . 47 Figure 23 Service primitive sequences for unsuccessful service 48 Figure 24 Operational state machine of a managed function block . 51 Figure A.1 Event split and merge . 62 BS EN 61499-1:2013 4 61499-1 IEC:2012 Figure C.1 ESS over
36、view . 74 Figure C.2 Library elements . 75 Figure C.3 Declarations . 76 Figure C.4 Function block network declarations . 77 Figure C.5 Function block type declarations . 79 Figure C.6 IPMCS overview . 79 Figure C.7 Function block types and instances 81 Figure D.1 Example of a “simple” function block
37、 type . 82 Figure D.2 Function block type READ 85 Figure D.3 Function block type UREAD 87 Figure D.4 Function block type WRITE . 88 Figure D.5 Function block type TASK . 90 Figure E.1 Type specifications for unidirectional transactions 93 Figure E.2 Connection establishment for unidirectional transa
38、ctions 93 Figure E.3 Normal unidirectional data transfer . 93 Figure E.4 Connection release in unidirectional data transfer . 94 Figure E.5 Type specifications for bidirectional transactions 94 Figure E.6 Connection establishment for bidirectional transaction 95 Figure E.7 Bidirectional data transfe
39、r . 95 Figure E.8 Connection release in bidirectional data transfer . 95 Table 1 States and transitions of ECC operation state machine . 32 Table 2 Standard inputs and outputs for service interface function blocks 42 Table 3 Service primitive semantics . 45 Table 4 Variable semantics for communicati
40、on function blocks 46 Table 5 Service primitive semantics for communication function blocks . 46 Table 6 CMD input values and semantics 48 Table 7 STATUS output values and semantics 48 Table 8 Command syntax . 49 Table 9 Semantics of actions in Figure 24 52 Table A.1 Event function blocks . 57 Table
41、 C.1 ESS class descriptions 75 Table C.2 Syntactic productions for library elements 75 Table C.3 Syntactic productions for declarations 77 Table C.4 IPMCS classes 80 Table D.1 Semantics of STATUS values 83 Table D.2 Source code of function block type READ 86 Table D.3 Source code of function block t
42、ype UREAD 87 Table D.4 Source code of function block type WRITE 89 Table D.5 Source code of function block type TASK . 90 Table D.6 IEC 61499 interoperability features 91 Table E.1 COMPACT encoding of fixed length data types 99 Table G.1 Elements of attribute definitions . 114 BS EN 61499-1:20136149
43、9-1 IEC:2012 7 INTRODUCTION IEC 61499 consists of the following parts, under the general title Function blocks: Part 1 (this document) contains: general requirements, including scope, normative references, definitions, and reference models; rules for the declaration of function block types, and rule
44、s for the behavior of instances of the types so declared; rules for the use of function blocks in the configuration of distributed industrial-process measurement and control systems (IPMCSs); rules for the use of function blocks in meeting the communication requirements of distributed IPMCSs; rules
45、for the use of function blocks in the management of applications, resources and devices in distributed IPMCSs. Part 2 defines requirements for software tools to support the following systems engineering tasks: the specification of function block types; the functional specification of resource types
46、and device types; the specification, analysis, and validation of distributed IPMCSs; the configuration, implementation, operation, and maintenance of distributed IPMCSs; the exchange of information among software tools. Part 3 (Tutorial information) has been withdrawn due to the widespread current a
47、vailability of tutorial and educational materials regarding IEC 61499. However, an updated 2ndEdition of Part 3 may be developed in the future. Part 4 defines rules for the development of compliance profiles which specify the features of IEC 61499-1 and IEC 61499-2 to be implemented in order to prom
48、ote the following attributes of IEC 61499-based systems, devices and software tools: interoperability of devices from multiple suppliers; portability of software between software tools of multiple suppliers; and configurability of devices from multiple vendors by software tools of multiple suppliers
49、. BS EN 61499-1:2013 8 61499-1 IEC:2012 FUNCTION BLOCKS Part 1: Architecture 1 Scope This part of IEC 61499 defines a generic architecture and presents guidelines for the use of function blocks in distributed industrial-process measurement and control systems (IPMCSs). This architecture is presented in terms of implementable reference models, te