1、STD-BSI BS EN bLL31-5-ENGL 2OUL W lb24bb7 U7LU8b8 UT3 BRITISH STANDARD BS EN 61 131-52001 Programmable controllers - Part 5: Communications The European Standard EN 61131-52001 has the status of a British Standard ICs 17.200.20; 25.040.40 IEC 61131-5: 2000 I = m NO COPYING WITHOUT BSI PERMISSION EXC
2、EPT AS PERMITTED BY COPYRIGHT LAW COPYRIGHT European Committee for Electrotechnical StandardizationLicensed by Information Handling Services - STD-BSI BS EN b2232-5-ENGL 2002 2b2qbb9 9LOb7 T3T BS EN 61131-5:2001 Amd. No. This British Standard, having been prepared under the direction of the Electrok
3、chnical Sector Committee, was published under the authority of the Standards Committee and comes into effect on 16 June 2001 Date Comments National foreword This British Standard is the official English language version of EN 61131- 52001. It is identical with IEC 61131-52000. The UK participation i
4、n its preparation was entrusted by Technical Committee GEU65, Measurement and control, to Subcommittee GEU65/2, Elements of systems, which has the responsibility to: - - aid enquirers to understand the text; present to the responsible internationaUEuropean committee any enquiries on the interpretati
5、on or proposals for change, and keep the UK interests informed; monitor related international and European developments and promulgate them in the UK. - A list of organizations represented on this subcommittee can be obtained on request to its secretary. From 1 January 1997, all IEC publications hav
6、e the number 60000 added to the old number. For instance IEC 27-1 has been renumbered as IEC 60027-1. For a period of time during the change over from one numbering system to the other, publications may contain identifiers from both systems. Cross-references Attention is drawn to the fact that CEN a
7、nd CENELEC Standards normally include an annex which lists normative references to international publications with their corresponding European publications. The British Standards which implement these international or European publications may be found in the BSI Standards Catalogue under the secti
8、on entitled “International Standards Correspondence Index”, or by using the “Find” facility of the BSI Standards Electronic Catalogue. A British Standard does not purport to include all the necessary provisions of a contract. Users of British Standards are responsible for their correct application,
9、Compliance with a British Standard does not of itself confer immunity from legal obligations. Summary of pages This document comprises a front cover, an inside front cover, the EN title page, pages 2 to 106, an inside back cover and a back cover. The BSI copyright date displayed in this document ind
10、icates when the document was last issued. Amendments issued since publication 8 BSI 06-2001 ISBN O 680 37338 X COPYRIGHT European Committee for Electrotechnical StandardizationLicensed by Information Handling ServicesSTD*BSI BS EN b113L-C-ENGL 2001 1b2LibbS 0730870 751 EN 611314 EUROPEAN STANDARD NO
11、RME EUROPENNE EUROPISCHE NORM F bruary 2001 ICs 25.040.40;25.240.50 English version Program ma ble controllers Part 5: Communications (IEC 61 131-52000) Contrleurs programmables Partie 5: Communications (CE1 61 131 -5:2000) Speicherprogrammierbare Steuerungen Teil 5: Kommunikation (IEC 61 131-512000
12、) This European Standard was approved by CENELEC on 2001-01-01. CENELEC members are bound to comply with the CENICENELEC 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 bibliographica
13、l references concerning such national standards may be obtained on application to the Central Secretariat 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 CE
14、NELEC member into iis own language and notified to the Central Secretariat has the same status as the official versions. CENELEC members are the national electrotechnical committees of Austria, Belgium, Czech Republic, Denmark, Finland, France, Germany, Greece, Iceland, Ireland, Italy, Luxembourg, N
15、etherlands, Norway, Portugal, Spain, Sweden, Switzerland and United Kingdom. CENELEC European Committee for Electrotechnical Standardization Comit Europen de Normalisation Electrotechnique Europisches Komitee fr Elektrotechnische Normung Central Secretariat rue de Stassart 35, B - 1050 Brussels 0 20
16、01 CENELEC - Ail rights of exploitation in any form and by any means reserved worldwide for CENELEC members. Ref. No. EN 61131-52001 E COPYRIGHT European Committee for Electrotechnical StandardizationLicensed by Information Handling ServicesSTD=BSI BS EN b1131-5-ENGL 2011 Zb29bb7 0910871 by8 M Page
17、2 EN 61131-6:2001 Foreword The text of document 65B/41 I/FDIS, future edition 1 of IEC 61 131-5, prepared by SC 65B, Devices, of IEC TC 65, Industrial-process measurement and control, was submitted to the IEC-CENELEC parallel vote and was approved by CENELEC as EN 61 131-5 on 2001-01-01. The followi
18、ng dates were fixed: - latest date by which the EN has to be implemented at national level by publication of an identical national standard or by endorsement - latest date by which the national standards conflicting with the EN have to be withdrawn This part is to be read in conjunction with the oth
19、er parts of EN 61 131 Annexes designated “normative“ are part of the body of the standard. In this standard, annexes A, B and ZA are normative. Annex ZA has been added by CENELEC. Endorsement notice 200 1-1 0-01 2004-0 1-0 1 The text of the International Standard IEC 61131-5:2000 was approved by CEN
20、ELEC as a European Standard without any modification. COPYRIGHT European Committee for Electrotechnical StandardizationLicensed by Information Handling ServicesSTD.BSI 6s EN b1131-5-ENGL 2001 Lb29bb 0910872 529 = Page 3 EN 61131-5:2001 CONTENTS 1 2 3 4 5 6 7 Page Scope 8 Normative references . 8 Def
21、initions 9 Symbols and abbreviations 11 Models 11 5.1 PC network communication model 11 5.2 PC functional model . 12 5.3 PC hardware model . 14 5.4 Software model 14 PC communication services 15 6.1 PC subsystems and their status . 15 6.1.1 PC summary status 16 6.1.2 I/O subsystem 17 6.1.3 Processin
22、g unit 18 6.1.5 Memory subsystem 19 6.1.6 Communication subsystem . 20 Implementer specific subsystems . 20 6.1.4 Power supply subsystem 19 6.1.7 6.1.8 Presentation of status information 21 Application specific functions . 23 6.2.1 Device verification 24 6.2.2 Data acquisition . 24 6.2.3 Control . 2
23、5 6.2.4 Synchronization between user applications . 25 6.2.5 Alarm reporting 26 6.2.6 Application program execution and I/O control 26 6.2.7 Application program transfer 28 6.2.8 Connection management 29 PC communication function blocks 29 6.2 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 Overview of the communic
24、ation function blocks 29 7.1.1 Device verification 29 7.1.2 Data acquisition . 30 7.1.3 Control . 30 7.1.4 Alarm reporting 30 7.1.5 Connection management 30 Semantic of communication FB parameters 30 Device verification 35 Polled data acquisition . 41 Programmed data acquisition . 44 7.5.1 USEND/URC
25、V function blocks 44 7.5.2 BSEND I BRCV Function Blocks . 49 Parametric control 55 Interlocked control 58 Programmed alarm report 65 Q BSI 06-2001 COPYRIGHT European Committee for Electrotechnical StandardizationLicensed by Information Handling ServicesPage 4 EN 61131-6:2001 7.9 Connection managemen
26、t . 73 7.10 Example for the use of communication function blocks . 77 7.10.1 Establishing a communication channel . 77 7.10.3 Using a timer to supervise communication 79 8.1 Compliance 80 8.2 Annex A (normative) Mapping to ISO/IEC 9506-5 82 7.1 0.2 Transferring data . 78 Compliance and implementer s
27、pecific features and parameters . 80 Implementation specific features and parameters . 81 8 A . 1 A.2 A.3 A.4 A.5 General . 82 Application specific functions . 83 A.2.1 Device verification 83 A.2.2 Data acquisition . 83 A.2.3 Parametric control 83 A.2.4 Interlocked control 83 A.2.5 Synchronization b
28、etween user applications . 83 A.2.6 Alarm reporting 83 A.2.7 Application program execution and I/O control 83 A.2.8 Application program transfer 84 A.2.9 Connection management 84 PC object mapping . 84 A.3.1 VMD 84 A.3.2 Named Variables 84 A.3.3 Unnamed Variables 86 A.3.4 Program Invocations 86 A.3.
29、5 Domains 86 Communication function block mapping to MMS objects and services . 87 A.4.1 Using communication channels 87 A.4.2 Rules for data type compatibility . 87 A.4.3 Device verification 88 A.4.4 Polled data acquisition . 89 A.4.5 Programmed data acquisition . 90 A.4.6 Parametric control 93 A.4
30、.7 Interlocked control 95 A.4.8 Programmed alarm report 97 A.4.9 Connection management 101 A.4.10 101 Implementation specific features and parameters . 103 Annex B (normative) PC behavior using ISO/IEC 9506-2 . 104 B.l B.2 PC communications mapping to MMS 104 Implementation specific features and par
31、ameters . 105 Annex ZA (normative) Normative references to international publications with their corresponding European publications 106 Figure 1 . Scope of this part of IEC 61 131 8 Figure 2 . PC communication model 12 Figure 4 . Programmable controller hardware model . 14 Figure 3 . Programmable c
32、ontroller functional model . 13 Q BSI 06-2001 COPYRIGHT European Committee for Electrotechnical StandardizationLicensed by Information Handling ServicesSTDOBSI BS EN bl1131-5-ENGL ZOUL lbZ4bb7 071087Y 3T7 = Page 6 EN 61131-6:2001 Figure 5 . PC software model 15 Figure 6 . Programmable controller pow
33、er supply 19 Figure 7 . Type description of status information . 21 Figure 8 . Interlocked control timeline . 25 Figure 9 . Function REMOTE-VAR . 32 Figure I O . Principle of status signalling 33 Figure 11 . Timing diagram of the ERROR and STATUS outputs . 33 Figure 12 . STATUS function block . 36 F
34、igure 13 . USTATUS function block . 37 Figure 14 - Timing diagram of the STATUS function block . 37 Figure 15 - State diagram of STATUS function block . 38 Figure 16 - State diagram of USTATUS function block 39 Figure 17 - READ function block . 42 Figure 18 - Timing diagram of READ function block .
35、43 Figure 19 - State diagram of READ function block . 43 Figure 20 - Programmed data acquisition data flow . 44 Figure 21 - USEND function block . 45 Figure 22 - URCV function block . 46 Figure 23 - Timing diagram of USEND and URCV function blocks . 46 Figure 24 - State diagram of USEND function blo
36、ck 47 Figure 25 - State diagram of URCV function block . 48 Figure 26 - BSEND function block . 50 Figure 27 - BRCV function block . 51 Figure 28 - Timing diagram of BSEND and BRCV function blocks 52 Figure 29 - State diagram of BSEND function block . 53 Figure 30 - State diagram of BRCV function blo
37、ck . 54 Figure 31 - WRITE function block . 56 Figure 32 - Timing diagram of WRITE function block . 57 Figure 33 - State diagram of WRITE function block . 57 Figure 34 - SEND function block . 59 Figure 35 - RCV function block . 60 Figure 36 - Timing diagram of SEND and RCV function blocks 61 Figure 3
38、7 - State diagram of SEND function block . 62 Figure 38 - State diagram of RCV function block . 64 Figure 39 - NOTIFY function block 66 Figure 40 - ALARM function block . 67 Figure 41 - Timing diagram of ALARM function block 68 Figure 42 - State diagram of NOTIFY function block 69 Figure 43 - State
39、diagram of ALARM function block . 71 Figure 44 - CONNECT function block 73 Figure 45 - Timing diagram of CONNECT function block . 74 Figure 46 - State diagram of CONNECT function block 75 Figure 47 - Example in function block diagram language . 80 O BS1 06-2001 COPYRIGHT European Committee for Elect
40、rotechnical StandardizationLicensed by Information Handling Services . STD-BSI BS EN b1131-5-ENGL 2001 = lb24bb9 0910875 233 W Page 6 EN 61131-5:2001 Table 1 . Status presenting entities 16 Table 2 - PC summary status 17 Table 3 - Status of I/O subsystem . 18 Table 4 - Status of processing unit 18 T
41、able 5 - Status of power supply . 19 Table 6 - Status of memory . 20 Table 7 - Status of communication subsystem . 20 Table 8 - Status of implementer specific subsystem 21 Table 9 - Presentation of status information 21 Table 10 - Device verification features 24 Table 11 - Data acquisition features
42、24 Table 12 - Control features . 25 Table 13 - Alarm reporting features . 26 Table 14 - Startable and stoppable units . 26 Table 15 - Meaning of I/O State 27 Table 16 - 110 state . 27 Table 17 - Execution and I/O control features 27 Table 18 - Loadable units 28 Table 19 - Application program transfe
43、r features . 28 Table 20 - Connection management features 29 Table 21 - Overview of the communication function blocks 29 Table 22 - Semantic of communication FB parameters 31 Table 23 - Values of the SCOPE parameter 32 Table 24 - Value and interpretation of the STATUS output . 34 Table 25 - Transiti
44、ons of the STATUS state diagram . 38 Table 26 - Action table for STATUS state diagram . 39 Table 27 - Transitions of USTATUS state diagrams . 40 Table 28 - Action table of USTATUS state diagram . 40 Table 29 - Transitions of the READ state diagram . 43 Table 30 - Action table for READ state diagram
45、. 44 Table 31 - Transitions of the USEND state diagram . 47 Table 32 - Action table for USEND state diagram 48 Table 33 - Transitions of URCV state diagrams . 49 Table 34 - Action table of URCV state diagram 49 Table 35 - Transitions of the BSEND state diagram . 53 Table 36 - Action table for BSEND
46、state diagram 54 Table 37 - Transitions of BRCV state diagrams . 55 Table 38 - Action table of BRCV state diagram 55 Table 39 - Transitions of the WRITE state diagram . 58 Table 40 - Action table for WRITE state diagram . 58 Table 41 - Transitions of the SEND state diagram . 62 Table 42 - Action tab
47、le for SEND state diagram . 63 Table 43 - Transitions of RCV state diagrams . 64 O BSI 06-2001 COPYRIGHT European Committee for Electrotechnical StandardizationLicensed by Information Handling Services STD-BSI BS EN b1131-5-ENGL 2001 D 1b2LibbS 0SL087b 27T Page 7 EN 61131-k2001 Table 44 . Action tab
48、le of RCV state diagram 65 Table 45 - Transitions of the NOTIFY state diagram 69 Table 46 - Action table for NOTIFY state diagram . 70 Table 47 - Transitions of the ALARM state diagram . 72 Table 48 - Action table for ALARM state diagram 72 Table 49 - Transitions of the CONNECT state diagram 76 Tabl
49、e 50 - Action table for CONNECT state diagram . 77 Table 51 - Table titles and relevant tables for compliance 80 Table 52 - Implementation specific features and parameters . 81 Table A.l - Type description mapping . 85 Table A.2 - Mapping of the SCOPE and SC-ID parameter . 85 Table A.3 - Size prefix of direct representation 86 Table A.4 - Transition mapping of the STATUS state diagram . 88 Table A.5 - Action mapping for STATUS state diagram 88 Table A.6 - Transition mapping of USTATUS state diagram . 88 Table A.7 - Action mapping of USTATUS state diagram 88 Table A.8