1、FORM CD(IEC)2009-01-09 Registered trademark of the International Electrotechnical Commission 65B/725/CDCOMMITTEE DRAFT(CD)IEC/TC or SC:SC65B Project number IEC 61131-3/Ed.3 Title of TC/SC:Devices and process analysis Date of circulation 2009-07-17 Closing date for comments 2009-10-23 Also of interes
2、t to the following committees Supersedes document 65B/672/CD Proposed horizontal standard Other TC/SCs are requested to indicate their interest,if any,in this CD to the TC/SC secretary Functions concerned:Safety EMC Environment Quality assurance Secretary:Charley Robinson THIS DOCUMENT IS STILL UNDE
3、R STUDY AND SUBJECT TO CHANGE.IT SHOULD NOT BE USED FOR REFERENCE PURPOSES.RECIPIENTS OF THIS DOCUMENT ARE INVITED TO SUBMIT,WITH THEIR COMMENTS,NOTIFICATION OF ANY RELEVANT PATENT RIGHTS OF WHICH THEY ARE AWARE AND TO PROVIDE SUPPORTING DOCUMENTATION.Title:IEC 61131-3:Programmable Controllers Part
4、3:Programming languages(Titre):Introductory note This second CD includes many new features.In order to distribute the draft to the National Committees for review as soon as possible,SC65B WG7 has left open several minor points,marked as Editors notes.Copyright 2009 International Electrotechnical Com
5、mission,IEC.All rights reserved.It is permitted to download this electronic file,to make a copy and to print out the content for the sole purpose of preparing National Committee positions.You may not copy or mirror the file or printed version of the document,or any part of it,for any other purpose w
6、ithout permission in writing from IEC.61131-3/Ed.3 IEC:200X 2 65B/725/CD Changes to 2nd Edition:1 1.Error corrections and editorial changes(numbering of clauses,tables,figures):2 All done in the first CD/65B/672.3 2.The following table gives an overview of the major changes of the 3rd Edition.4 3.Al
7、l essential changes to 2nd Edition are in blue writing.5 Editors note:-Notes like this marked yellow are temporarly for this 2CD only 6 61131-3/Ed.3 IEC:200X 3 65B/725/CD Overview of major changes:7 Editors note:This list is not complete;clause numbering is not yet correct.8 Clause(link)Title Change
8、s all FB Clarify:Always distinguish instance or type 3 Terms and definitions New:Some definitions 6.1.5 Comments New:Single line comment./text 6.2.1 Numeric literals New:INT#16#7FFF=decimal value 32767 6.3.3 Generic data type Corr:Fig.4 Hierarchy of.6.3.4.2 et seq.Derived data type Decl.-Initializat
9、ion-Usage New:STRUCTURE,ARRAY with-explicit layout of memory and endieness using AT-Keyword OVERLAP.-Packed ARRAYS 6.4.2.3 Partial Access of ANY_BIT e.g.X0 to .X7 6.4.2.5 Variable-length array New:ARRAY *,*,*OF INT;Std FBs for upper und lower bound 6.4.4.1 Declaration Type assignment Del:Declaration
10、 of directly represented variables:AT%IW6.2:WORD;see Table 20 0 Initial value assignment New:Constant expression:2*pi/2 6.5.2.1 Function-General Clar:Results:VAR_EXTERNAL,VAR_IN_OUT New:Keyword VOID 6.5.2.5.2 Typed overloading Corr:WORD_TO_INT vs.TO_INT Et seq.Type conversion New:Table 28 Implicit a
11、nd explicit conversion Explicitly typed or overloaded .New:Examples in tables Implicit type conversion New/Clar:Example 6.5.2.6.2 Type conversion function New:TRUNC vs.TRUNC_*6.5.3.1 Function block-General Clar:.New:Error if no value specified for parameters in-out and func-tion block instance 6.5.3
12、.4 Function block-Declaration New:Table 40#12-Function block result and examples 6.5.3.5.2 Standard function blocks Bistable elements New:additionally long name SR SET1,RESET,vs.S1,R,6.5.3.5.4 Counters Del:long input names:LOAD,RESET 6.5.4 Object Oriented extentions of FB concept Editors note:Hybrid
13、 FB(with and without OO)as option!Et seq.Methods General,declaration New:method=procedure(like a function)for a FB(type)Interfaces New:Method prototypes,IMPLEMENTS,Representation,poly-morphism,ABSTRACT,Inheritance New:THIS/SUPER New:6.6.5 SFC Evaluation rules Corr:Simult.seq.divergence and convergen
14、ce 6.8 Namespaces New:NAMESPACE,INTERNAL ACCESS,PUBLIC ACCESS 8.2.6 Instruction List(IL)New:FB call Counter RESET(Long name)7.3.2 Structured Text(ST)New:Statements:“;“,CONTINUE(see also example)8.2.4 Ladder Diagram(LD)New:Contacts for Compare(typed and overloaded)Annex B Formal spec of language elem
15、ents New:various new elements:Ex Annex F Examples Del:Move to next edition of part 8-Guidelines Ex Annex H Interoperability with IEC 61499 de-vices Deleted 61131-3/Ed.3 IEC:200X 4 65B/725/CD CONTENTS 9 10 1 Scope.13 11 2 Normative references.13 12 3 Terms and definitions.14 13 4 Architectural models
16、.21 14 4.1 Software model.21 15 4.2 Communication model.23 16 4.3 Programming model.23 17 5 Compliance.25 18 5.1 System compliance.25 19 5.2 Program compliance.27 20 6 Common elements.27 21 6.1 Use of printed characters.27 22 6.1.1 Character set.27 23 6.1.2 Identifiers.27 24 6.1.3 Keywords.28 25 6.1.4 Use of white space.28 26 6.1.5 Comments.28 27 6.1.6 Pragma.29 28 6.2 External representation of data.29 29 6.2.1 Numeric literals and bit string literals.29 30 6.2.2 Character string literals.30 31