1、BSI Standards PublicationIndustrial communication networks Fieldbus specificationsPart 6-20: Application layer protocol specification Type 20 elementsBS EN 61158-6-20:2014National forewordThis British Standard is the UK implementation of EN 61158-6-20:2014. It is identical to IEC 61158-6-20:2014. It
2、 supersedes BS EN 61158-6-20:2012which is withdrawn.The UK participation in its preparation was entrusted to TechnicalCommittee AMT/7, Industrial communications: process measurement andcontrol, including fieldbus.A list of organizations represented on this committee can be obtained onrequest to its
3、secretary.This publication does not purport to include all the necessary provisions ofa contract. Users are responsible for its correct application. The British Standards Institution 2014.Published by BSI Standards Limited 2014ISBN 978 0 580 79479 7ICS 25.040.40; 35.100.70; 35.110Compliance with a B
4、ritish Standard cannot confer immunity fromlegal obligations.This British Standard was published under the authority of theStandards Policy and Strategy Committee on 30 November 2014.Amendments issued since publicationDate Text affectedBRITISH STANDARDBS EN 61158-6-20:2014EUROPEAN STANDARD NORME EUR
5、OPENNE EUROPISCHE NORM EN 61158-6-20 October 2014 ICS 25.040.40; 35.100.70; 35.110 Supersedes EN 61158-6-20:2012 English Version Industrial communication networks - Fieldbus specifications - Part 6-20: Application layer protocol specification - Type 20 elements (IEC 61158-6-20:2014) Rseaux de commun
6、ication industriels - Spcifications des bus de terrain - Partie 6-20: Spcification du protocole de la couche application - Elments de type 20 (CEI 61158-6-20:2014) Industrielle Kommunikationsnetze - Feldbusse - Teil 6-20: Protokollspezifikation des Application Layer (Anwendungsschicht) - Typ 20-Elem
7、ente (IEC 61158-6-20:2014) This European Standard was approved by CENELEC on 2014-09-23. 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
8、 lists and bibliographical 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 translati
9、on under the responsibility 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, Denma
10、rk, Estonia, Finland, 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. European Co
11、mmittee for Electrotechnical Standardization Comit Europen de Normalisation Electrotechnique Europisches Komitee fr Elektrotechnische Normung CEN-CENELEC Management Centre: Avenue Marnix 17, B-1000 Brussels 2014 CENELEC All rights of exploitation in any form and by any means reserved worldwide for C
12、ENELEC Members. Ref. No. EN 61158-6-20:2014 E BS EN 61158-6-20:2014EN 61158-6-20:2014 - 2 - Foreword The text of document 65C/764/FDIS, future edition 3 of IEC 61158-6-20, prepared by SC 65C “Industrial networks“ of IEC/TC 65 “Industrial-process measurement, control and automation“ was submitted to
13、the IEC-CENELEC parallel vote and approved by CENELEC as EN 61158-6-20:2014. 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) 2015-06-23 latest date by which the national
14、standards conflicting with the document have to be withdrawn (dow) 2017-09-23 This document supersedes EN 61158-6-20:2012. 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 identi
15、fying any or all such patent rights. This document has been prepared under a mandate given to CENELEC by the European Commission and the European Free Trade Association. Endorsement notice The text of the International Standard IEC 61158-6-20:2014 was approved by CENELEC as a European Standard witho
16、ut any modification. In the official version, for Bibliography, the following notes have to be added for the standards indicated: IEC 61784-1 NOTE Harmonized as EN 61784-1. IEC 61784-2 NOTE Harmonized as EN 61784-2. BS EN 61158-6-20:2014- 3 - EN 61158-6-20:2014 Annex ZA (normative) Normative referen
17、ces to international 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 late
18、st edition of the referenced document (including any amendments) applies. 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
19、annex is available here: www.cenelec.eu. Publication Year Title EN/HD Year IEC 61158-1 2014 Industrial communication networks - Fieldbus specifications - Part 1: Overview and guidance for the IEC 61158 and IEC 61784 series EN 61158-1 2014 IEC 61158-5-20 2014 Industrial communication networks - Field
20、bus specifications - Part 5-20: Application layer service definition - Type 20 elements EN 61158-5-20 2014 IEC 62591 2010 Industrial communication networks - Wireless communication network and communication profiles - WirelessHART EN 62591 2010 ISO/IEC 7498-1 - Information technology - Open Systems
21、Interconnection - Basic reference model: The basic model - - ISO/IEC 8824-1 - Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation - - ISO/IEC 8859-1 - Information technology - 8-bit single-byte coded graphic character sets - Part-1: Latin alphabet No. 1 - -
22、 ISO/IEC 9545 - Information technology - Open Systems Interconnection - Application layer structure - - ISO/IEC/IEEE 60559 - Information technology - Microprocessor Systems - Floating-Point arithmetic - - IEEE 802.15.4 - IEEE Standard for Local and metropolitan area networks - Part 15.4: Low-Rate Wi
23、reless Personal Area Networks (LR-WPANs) - - BS EN 61158-6-20:2014 2 IEC 61158-6-20:2014 IEC 2014 CONTENTS INTRODUCTION . 9 1 Scope . 10 2 Normative references . 10 3 Terms, definitions, symbols, abbreviations and conventions . 11 3.1 Terms and definitions from other ISO/IEC standards . 11 3.2 IEC 6
24、1158-1 terms 12 3.3 Type 20 fieldbus application-layer specific definitions 14 3.4 Abbreviations and symbols 17 3.5 Conventions 18 3.6 Conventions used in state machines 18 4 Abstract syntax . 20 5 Transfer syntax . 20 5.1 Common APDU fields 20 5.2 Common APDU structure . 22 5.3 Device application s
25、ervice-specific APDU structures . 24 5.4 Data coding rules 51 6 Common procedures 56 6.1 Delayed response 56 6.2 Publish mode procedure 56 7 FAL protocol state machines 56 7.1 General . 56 7.2 AREP mapping to data link layer . 57 7.3 Client ARPM 58 7.4 Server ARPM 60 7.5 Functions used by FAL state
26、machines 61 Annex A (normative) Application process status . 63 A.1 General . 63 A.2 Device malfunction 63 A.3 Configuration changed 63 A.4 Cold start 64 A.5 More status available 64 A.6 Loop current fixed . 64 A.7 Loop current saturated 64 A.8 Non-primary variable out of limits 65 A.9 Primary varia
27、ble out of limits . 65 Annex B (normative) Device and dynamic variable . 66 B.1 Device variable 66 B.2 Dynamic variable . 66 B.3 Primary variable 67 B.4 Device variable classification . 68 B.5 Device families 68 B.6 Device variable status . 68 Annex C (normative) Common tables . 70 C.1 Overview . 70
28、 BS EN 61158-6-20:2014IEC 61158-6-20:2014 IEC 2014 3 C.1.1 General . 70 C.1.2 Enumeration 70 C.1.3 Bit Field . 70 C.2 Table definitions 70 C.2.1 Publish mode control codes . 70 C.2.2 Write device variable codes . 70 C.2.3 Device variable family codes . 70 C.2.4 Device variable classification codes .
29、 70 C.2.5 Analog channel saturated codes 70 C.2.6 Analog channel fixed codes . 70 C.2.7 Standardized status 0 codes 71 C.2.8 Standardized status 1 codes 71 C.2.9 Standardized status 2 codes 71 C.2.10 Standardized status 3 codes 71 C.2.11 Publish trigger mode codes . 71 C.2.12 Transfer function codes
30、 . 71 C.2.13 Alarm Selection Codes 71 C.2.14 Write Protect Codes. 72 C.2.15 Physical layer signalling codes 72 C.2.16 Flag Assignment codes 72 C.2.17 Loop current mode codes 73 C.2.18 Trim point codes 73 C.2.19 Analog channel flag codes . 73 C.2.20 Device variable codes 73 C.2.21 Device profile code
31、s 74 Annex D (normative) Command requirements 75 D.1 General . 75 D.2 Stateless request and response. 75 D.3 Read command . 75 D.4 Write command . 75 D.5 Action command 75 D.6 Indexed command . 76 D.7 Multi-transaction command 76 Bibliography 77 Figure 1 Request APDU . 22 Figure 2 Normal response AP
32、DU . 22 Figure 3 Command error response from slave to master 23 Figure 4 Aggregated command APDU 24 Figure 5 Coding without identification. 51 Figure 6 Coding of Integer type data 51 Figure 7 Coding of Integer16 type data 52 Figure 8 Coding of Unsigned type data 52 Figure 9 Coding of Unsigned16 type
33、 data . 52 Figure 10 Coding of single precision Floating Point type data 52 Figure 11 Coding of double precision Floating Point type data . 53 Figure 12 Coding of Date type data 53 BS EN 61158-6-20:2014 4 IEC 61158-6-20:2014 IEC 2014 Figure 13 Client state machine . 58 Figure 14 Server state machine
34、 . 60 Figure A.1 Loop current saturation and alarm levels . 65 Figure B.1 Device and Dynamic variables 66 Figure B.2 Primary variable domains 67 Figure B.3 Device variable status . 69 Table 1 Conventions used for state machines 19 Table 2 Response code values 20 Table 3 Application process status va
35、lues 21 Table 4 Extended status values . 21 Table 5 Identify request APDU . 24 Table 6 Identify response value field 25 Table 7 Identify command specific response codes 25 Table 8 Read primary variable response value field . 26 Table 9 Read primary variable command specific response codes . 26 Table
36、 10 Read loop current and percent of range value field 26 Table 11 Read loop current and percent of range command specific response codes 27 Table 12 Read dynamic variables and loop current value field . 27 Table 13 Read dynamic variables and loop current command specific response codes 27 Table 14
37、Write loop configuration value field 28 Table 15 Write loop configuration command specific response codes . 28 Table 16 Read loop configuration value field 29 Table 17 Read loop configuration command specific response codes 29 Table 18 Read dynamic variable families classifications value field 29 Ta
38、ble 19 Read dynamic variable families classifications command specific response codes 29 Table 20 Read device variables with status request value field 30 Table 21 Read device variables with status value field . 30 Table 22 Read device variables with status command specific response codes 31 Table 2
39、3 Read message response value field 32 Table 24 Read message command specific response codes 32 Table 25 Read tag, descriptor, date response value field . 33 Table 26 Read tag, descriptor, date command specific response codes . 33 Table 27 Read primary variable transducer information response value
40、field 33 Table 28 Read primary variable transducer information command specific response codes 34 Table 29 Read device information response value field 34 Table 30 Read device information command specific response codes 35 Table 31 Read final assembly number response value field . 35 Table 32 Read f
41、inal assembly number command specific response codes . 35 Table 33 Write message value field 35 Table 34 Write message command specific response codes 36 BS EN 61158-6-20:2014IEC 61158-6-20:2014 IEC 2014 5 Table 35 Write tag, descriptor, date value field 36 Table 36 Write tag, descriptor, date comma
42、nd specific response codes . 36 Table 37 Write final assembly number value field . 37 Table 38 Write final assembly number command specific response codes . 37 Table 39 Read long tag response value field 37 Table 40 Read long tag command-specific response codes . 37 Table 41 Write long tag value fie
43、ld . 38 Table 42 Write long tag command specific Response codes 38 Table 43 Write primary variable range value field . 39 Table 44 Write primary variable range command specific response codes . 39 Table 45 Enter-exit fixed current mode request value field . 40 Table 46 Enter-exit fixed current mode
44、response value field. 40 Table 47 Enter-exit fixed current mode command specific response codes 40 Table 48 Write primary variable unit value field 41 Table 49 Write primary variable unit command specific response codes . 41 Table 50 Trim loop current zero request value field 41 Table 51 Trim loop c
45、urrent zero command specific response codes . 41 Table 52 Trim loop current gain request value field 42 Table 53 Trim loop current gain command specific response codes . 42 Table 54 Read dynamic variable assignment response value field . 43 Table 55 Read dynamic variable assignment command specific
46、response codes . 43 Table 56 Write dynamic variable assignment value field . 44 Table 57 Write dynamic variable assignment command specific response codes . 44 Table 58 Write number of response preambles value field 45 Table 59 Write number of response preambles command specific response codes 45 Ta
47、ble 60 Read device variable trim points request value field 45 Table 61 Read device variable trim points response value field 46 Table 62 Read device variable trim points command specific response codes 46 Table 63 Read device variable trim guidelines request value field 46 Table 64 Read device vari
48、able trim guidelines response value field . 46 Table 65 Read device variable trim points command specific response codes 47 Table 66 Write device variable trim point value field . 47 Table 67 Write device variable trim point command specific response codes . 48 Table 68 Reset device variable trim va
49、lue field 48 Table 69 Reset device variable trim command specific response codes . 49 Table 70 Aggregated command specific response codes . 50 Table 71 Coding for Date type . 53 Table 72 Coding for one octet Enumerated Type 54 Table 73 One octet bit field 54 Table 74 Packed ASCII character set . 55 Table 75 Acceptable subset of ISO Latin-1