1、BSI Standards PublicationOPC unified architecturePart 4: ServicesBS EN 62541-4:2015National forewordThis British Standard is the UK implementation of EN 62541-4:2015. It isidentical to IEC 62541-4:2015. It supersedes BS EN 62541-4:2011 which iswithdrawn.The UK participation in its preparation was en
2、trusted 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 secretary.This publication does not purport to include all the necessary provisions ofa contract.
3、Users are responsible for its correct application. The British Standards Institution 2015.Published by BSI Standards Limited 2015ISBN 978 0 580 83003 7ICS 25.040.40; 25.100.01Compliance with a British Standard cannot confer immunity fromlegal obligations.This British Standard was published under the
4、 authority of theStandards Policy and Strategy Committee on 30 June 2015.Amendments/corrigenda issued since publicationDate Text affectedBRITISH STANDARDBS EN 62541-4:2015EUROPEAN STANDARDNORME EUROPENNEEUROPISCHE NORMEN 62541-4 May 2015 ICS 35.100; 25.040.40 Supersedes EN 62541-4:2011 English Versi
5、on OPC unified architecture - Part 4: Services(IEC 62541-4:2015) Architecture unifie OPC - Partie 4: Services (IEC 62541-4:2015) OPC Unified Architecture - Teil 4: Dienste (IEC 62541-4:2015) This European Standard was approved by CENELEC on 2015-04-29. CENELEC members are bound to comply with the CE
6、N/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 concerning such national standards may be obtained on application to the CEN-CENELEC Management Cen
7、tre 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 member into its own language and notified to the CEN-CENELEC Management Centre has the same stat
8、us 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 Republic of Macedonia, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia,Lithuania,
9、Luxembourg, Malta, the Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey and the United Kingdom. European Committee for Electrotechnical Standardization Comit Europen de Normalisation ElectrotechniqueEuropisches Komitee fr Elektrotechnische Normun
10、g 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 62541-4:2015 E EN 62541-4:2015 - 2 - Foreword The text of document 65E/375/CDV, future edition 2 of IEC 62541-4,
11、 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 vote and approved by CENELEC as EN 62541-4:2015. The following dates are fixed: latest date by which the document has t
12、o be implemented at national level by publication of an identical national standard or by endorsement (dop) 2016-01-29 latest date by which the national standards conflicting with the document have to be withdrawn (dow) 2018-04-29 This document supersedes EN 62541-4:2011. Attention is drawn to the p
13、ossibility 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. This document has been prepared under a mandate given to CENELEC by the European Commission and the European Free
14、 Trade Association, and supports essential requirements of EU Directive(s). Endorsement notice The text of the International Standard IEC 62541-4:2015 was approved by CENELEC as a European Standard without any modification. BS EN 62541-4:2015- 3 - EN 62541-4:2015 Annex ZA (normative) Normative refer
15、ences 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 la
16、test 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 thi
17、s annex is available here: www.cenelec.eu. Publication Year Title EN/HD Year IEC/TR 62541-1 - OPC unified architecture - Part 1: Overview and concepts CLC/TR 62541-1 - IEC/TR 62541-2 - OPC unified architecture - Part 2: Security model CLC/TR 62541-2 - IEC 62541-3 - OPC unified architecture - Part 3:
18、 Address Space Model EN 62541-3 - IEC 62541-5 - OPC unified architecture - Part 5: Information Model EN 62541-5 - IEC 62541-6 - OPC unified architecture - Part 6: Mappings EN 62541-6 - IEC 62541-7 - OPC unified architecture - Part 7: Profiles EN 62541-7 - IEC 62541-8 - OPC Unified Architecture - Par
19、t 8: Data Access EN 62541-8 - IEC 62541-11 - OPC unified architecture - Part 11: Historical Access EN 62541-11 - IEC 62541-13 - OPC unified architecture - Part 13: Aggregates EN 62541-13 - BS EN 62541-4:2015 2 IEC 62541-4:2015 IEC 2015 CONTENTS FOREWORD . 12 1 Scope 14 2 Normative references 14 3 Te
20、rms, definitions and conventions 15 3.1 Terms and definitions 15 3.2 Abbreviations and symbols . 15 3.3 Conventions for Service definitions . 16 4 Overview . 17 4.1 Service Set model . 17 4.2 Request/response Service procedures 21 5 Service Sets 21 5.1 General . 21 5.2 Service request and response h
21、eader . 21 5.3 Service results 21 5.4 Discovery Service Set . 23 5.4.1 Overview . 23 5.4.2 FindServers . 24 5.4.3 GetEndpoints . 25 5.4.4 RegisterServer . 28 5.5 SecureChannel Service Set 31 5.5.1 Overview . 31 5.5.2 OpenSecureChannel 32 5.5.3 CloseSecureChannel . 35 5.6 Session Service Set 36 5.6.1
22、 Overview . 36 5.6.2 CreateSession . 36 5.6.3 ActivateSession . 40 5.6.4 CloseSession . 43 5.6.5 Cancel . 43 5.7 NodeManagement Service Set 44 5.7.1 Overview . 44 5.7.2 AddNodes 44 5.7.3 AddReferences 46 5.7.4 DeleteNodes 47 5.7.5 DeleteReferences 48 5.8 View Service Set . 49 5.8.1 Overview . 49 5.8
23、.2 Browse 50 5.8.3 BrowseNext . 52 5.8.4 TranslateBrowsePathsToNodeIds 54 5.8.5 RegisterNodes . 56 5.8.6 UnregisterNodes 57 5.9 Query Service Set . 57 5.9.1 Overview . 57 5.9.2 Querying Views 58 5.9.3 QueryFirst 58 BS EN 62541-4:2015IEC 62541-4:2015 IEC 2015 3 5.9.4 QueryNext . 62 5.10 Attribute Ser
24、vice Set . 63 5.10.1 Overview . 63 5.10.2 Read 63 5.10.3 HistoryRead . 65 5.10.4 Write 67 5.10.5 HistoryUpdate 69 5.11 Method Service Set . 70 5.11.1 Overview . 70 5.11.2 Call 71 5.12 MonitoredItem Service Set 73 5.12.1 MonitoredItem model . 73 5.12.2 CreateMonitoredItems 79 5.12.3 ModifyMonitoredIt
25、ems 81 5.12.4 SetMonitoringMode 83 5.12.5 SetTriggering . 84 5.12.6 DeleteMonitoredItems 85 5.13 Subscription Service Set . 86 5.13.1 Subscription model 86 5.13.2 CreateSubscription 93 5.13.3 ModifySubscription 94 5.13.4 SetPublishingMode 95 5.13.5 Publish 96 5.13.6 Republish 98 5.13.7 TransferSubsc
26、riptions 98 5.13.8 DeleteSubscriptions . 100 6 Service behaviours 101 6.1 Security 101 6.1.1 Overview . 101 6.1.2 Obtaining and Installing an Application Instance Certificate . 101 6.1.3 Determining if a Certificate is Trusted 102 6.1.4 Creating a SecureChannel . 104 6.1.5 Creating a Session 106 6.1
27、.6 Impersonating a User . 107 6.2 Software Certificates . 107 6.2.1 Overview . 107 6.2.2 Obtaining and Installing a Software Certificate . 107 6.2.3 Validating a Software Certificate 109 6.3 Auditing 109 6.3.1 Overview . 109 6.3.2 General audit logs 109 6.3.3 General audit Events . 109 6.3.4 Auditin
28、g for Discovery Service Set . 110 6.3.5 Auditing for SecureChannel Service Set 110 6.3.6 Auditing for Session Service Set 110 6.3.7 Auditing for NodeManagement Service Set 111 6.3.8 Auditing for Attribute Service Set . 111 6.3.9 Auditing for Method Service Set . 111 6.3.10 Auditing for View, Query,
29、MonitoredItem and Subscription Service Set 112 BS EN 62541-4:2015 4 IEC 62541-4:2015 IEC 2015 6.4 Redundancy 112 6.4.1 Redundancy overview 112 6.4.2 Server redundancy overview 112 6.4.3 Client redundancy 116 6.4.4 Network redundancy 116 6.5 Re-establishing connections . 117 7 Common parameter type d
30、efinitions . 118 7.1 ApplicationDescription 118 7.2 ApplicationInstanceCertificate . 118 7.3 BrowseResult 119 7.4 ContentFilter . 119 7.4.1 ContentFilter structure . 119 7.4.2 ContentFilterResult 120 7.4.3 FilterOperator 121 7.4.4 FilterOperand parameters 127 7.5 Counter . 128 7.6 ContinuationPoint
31、. 129 7.7 DataValue . 129 7.7.1 General 129 7.7.2 PicoSeconds 130 7.7.3 SourceTimestamp 130 7.7.4 ServerTimestamp . 130 7.7.5 StatusCode assigned to a value . 131 7.8 DiagnosticInfo . 131 7.9 EndpointDescription 132 7.10 ExpandedNodeId 133 7.11 ExtensibleParameter . 133 7.12 Index 134 7.13 IntegerId
32、 . 134 7.14 MessageSecurityMode 134 7.15 MonitoringParameters . 134 7.16 MonitoringFilter parameters 135 7.16.1 Overview . 135 7.16.2 DataChangeFilter . 136 7.16.3 EventFilter . 136 7.16.4 AggregateFilter 139 7.17 MonitoringMode 140 7.18 NodeAttributes parameters . 140 7.18.1 Overview . 140 7.18.2 O
33、bjectAttributes parameter 141 7.18.3 VariableAttributes parameter . 141 7.18.4 MethodAttributes parameter . 142 7.18.5 ObjectTypeAttributes parameter . 142 7.18.6 VariableTypeAttributes parameter 142 7.18.7 ReferenceTypeAttributes parameter . 143 7.18.8 DataTypeAttributes parameter . 143 7.18.9 View
34、Attributes parameter . 143 7.19 NotificationData parameters 144 7.19.1 Overview . 144 BS EN 62541-4:2015IEC 62541-4:2015 IEC 2015 5 7.19.2 DataChangeNotification parameter 144 7.19.3 EventNotificationList parameter . 145 7.19.4 StatusChangeNotification parameter 145 7.20 NotificationMessage 145 7.21
35、 NumericRange 146 7.22 QueryDataSet . 147 7.23 ReadValueId . 147 7.24 ReferenceDescription 148 7.25 RelativePath . 149 7.26 RequestHeader . 149 7.27 ResponseHeader 151 7.28 ServiceFault 151 7.29 SessionAuthenticationToken . 151 7.30 SignatureData . 153 7.31 SignedSoftwareCertificate . 153 7.32 Softw
36、areCertificate . 153 7.33 StatusCode . 154 7.33.1 General 154 7.33.2 Common StatusCodes . 156 7.34 TimestampsToReturn 159 7.35 UserIdentityToken parameters 159 7.35.1 Overview . 159 7.35.2 AnonymousIdentityToken . 160 7.35.3 UserNameIdentityToken . 160 7.35.4 X509IdentityTokens . 161 7.35.5 IssuedId
37、entityToken . 161 7.36 UserTokenPolicy . 162 7.37 ViewDescription 163 Annex A (informative) BNF definitions 164 A.1 Overview over BNF . 164 A.2 BNF of RelativePath . 164 A.3 BNF of NumericRange 165 Annex B (informative) Content Filter and Query Examples . 166 B.1 Simple ContentFilter examples 166 B.
38、1.1 Overview . 166 B.1.2 Example 1 166 B.1.3 Example 2 167 B.2 Complex Examples of Query Filters 167 B.2.1 Overview . 167 B.2.2 Used type model 168 B.2.3 Example Notes 170 B.2.4 Example 1 171 B.2.5 Example 2 172 B.2.6 Example 3 173 B.2.7 Example 4 175 B.2.8 Example 5 176 B.2.9 Example 6 178 B.2.10 E
39、xample 7 179 B.2.11 Example 8 181 BS EN 62541-4:2015 6 IEC 62541-4:2015 IEC 2015 B.2.12 Example 9 182 Figure 1 Discovery Service Set 17 Figure 2 SecureChannel Service Set 18 Figure 3 Session Service Set . 18 Figure 4 NodeManagement Service Set . 18 Figure 5 View Service Set 19 Figure 6 Attribute Ser
40、vice Set 19 Figure 7 Method Service Set 20 Figure 8 MonitoredItem and Subscription Service Sets 20 Figure 9 Discovery process 23 Figure 10 Using a Gateway Server . 27 Figure 11 The Registration Process Manually Launched Servers 28 Figure 12 The Registration Process Automatically Launched Servers . 2
41、9 Figure 13 SecureChannel and Session Services 32 Figure 14 Multiplexing Users on a Session . 38 Figure 15 MonitoredItem Model 74 Figure 16 Typical delay in change detection . 75 Figure 17 Queue overflow handling 77 Figure 18 Triggering Model 78 Figure 19 Obtaining and Installing an Application Inst
42、ance Certificate 102 Figure 20 Determining if a Application Instance Certificate is Trusted 104 Figure 21 Establishing a SecureChannel 105 Figure 22 Establishing a Session . 106 Figure 23 Impersonating a User . 107 Figure 24 Obtaining and Installing a Software Certificate . 108 Figure 25 Transparent
43、 Redundancy setup 113 Figure 26 Non-Transparent Redundancy setup 113 Figure 27 Server proxy for redundancy 116 Figure 28 Reconnect Sequence . 117 Figure 29 Logical layers of a Server . 152 Figure 30 Obtaining a SessionAuthenticationToken . 152 Figure B.1 Filter Logic Tree Example . 166 Figure B.2 Fi
44、lter Logic Tree Example . 167 Figure B.3 Example Type Nodes 169 Figure B.4 Example Instance Nodes 170 Figure B.5 Example 1 Filter 171 Figure B.6 Example 2 Filter Logic Tree 172 Figure B.7 Example 3 Filter Logic Tree 174 Figure B.8 Example 4 Filter Logic Tree 176 Figure B.9 Example 5 Filter Logic Tre
45、e 177 Figure B.10 Example 6 Filter Logic Tree 178 Figure B.11 Example 7 Filter Logic Tree 180 BS EN 62541-4:2015IEC 62541-4:2015 IEC 2015 7 Figure B.12 Example 8 Filter Logic Tree 181 Figure B.13 Example 9 Filter Logic Tree 183 Table 1 Service Definition Table 16 Table 2 Parameter Types defined in I
46、EC 62541-3 17 Table 3 FindServers Service Parameters . 25 Table 4 GetEndpoints Service Parameters . 27 Table 5 RegisterServer Service Parameters . 30 Table 6 RegisterServer Service Result Codes 30 Table 7 OpenSecureChannel Service Parameters 34 Table 8 OpenSecureChannel Service Result Codes . 35 Tab
47、le 9 CloseSecureChannel Service Parameters . 35 Table 10 CloseSecureChannel Service Result Codes 35 Table 11 CreateSession Service Parameters . 38 Table 12 CreateSession Service Result Codes 40 Table 13 ActivateSession Service Parameters . 42 Table 14 ActivateSession Service Result Codes 43 Table 15
48、 CloseSession Service Parameters . 43 Table 16 CloseSession Service Result Codes 43 Table 17 Cancel Service Parameters . 44 Table 18 AddNodes Service Parameters 45 Table 19 AddNodes Service Result Codes . 45 Table 20 AddNodes Operation Level Result Codes 46 Table 21 AddReferences Service Parameters
49、46 Table 22 AddReferences Service Result Codes . 47 Table 23 AddReferences Operation Level Result Codes 47 Table 24 DeleteNodes Service Parameters 48 Table 25 DeleteNodes Service Result Codes . 48 Table 26 DeleteNodes Operation Level Result Codes 48 Table 27 DeleteReferences Service Parameters 49 Table 28 DeleteReferences Service Result Codes . 49 Table 29 DeleteReferences
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1