|
IEC 62541-6
Edition 3.0 2020-07
REDLINE VERSION
INTERNATIONAL
STANDARD
colour
inside
OPC unified architecture –
Part 6: Mappings
your local IEC member National Committee for further information.
IEC Central Office Tel.: +41 22 919 02 11
3, rue de
CH-1211 Geneva 20
Switzerland
About the IEC
The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes
International Standards for all electrical, electronic and related technologies.
About IEC publications
The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the
latest edition, a corrigendum or an amendment might have been published.
IEC publications search - webstore.iec.ch/advsearchform Electropedia - www.electropedia.org
The advanced search enables to find IEC publications by a The world's leading online dictionary on electrotechnology,
variety of criteria (reference number, text, technical containing more than 22 000 terminological entries in English
committee,…). It also gives information on projects, replaced and French, with equivalent terms in 16 additional languages.
and withdrawn publications. Also known as the International Electrotechnical Vocabulary
(IEV) online.
IEC Just Published - webstore.iec.ch/justpublished
Stay up to date on all new IEC publications. Just Published IEC Glossary - std.iec.ch/glossary
details all new publications released. Available online and 67 000 electrotechnical terminology entries in English and
once a month by email. French extracted from the Terms and Definitions clause of
IEC publications issued since 2002. Some entries have been
IEC Customer Service Centre - webstore.iec.ch/csc collected from earlier publications of IEC TC 37, 77, 86 and
If you wish to give us your feedback on this publication or CISPR.
need further assistance, please contact the Customer Service
.
IEC 62541-6
Edition 3.0 2020-07
REDLINE VERSION
INTERNATIONAL
STANDARD
colour
inside
OPC unified architecture –
Part 6: Mappings
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
ICS 25.040.40; 35.100.05 ISBN 978-2-8322-8665-4
– 2 – IEC 62541-6:2020 RLV © IEC 2020
CONTENTS
FOREWORD . 8
1 Scope . 11
2 Normative references . 11
3 Terms, definitions, abbreviated terms and symbols . 14
3.1 Terms and definitions . 14
3.2 Abbreviated terms and symbols . 15
4 Overview . 16
5 Data encoding . 17
5.1 General . 17
5.1.1 Overview . 17
5.1.2 Built-in Types . 17
5.1.3 Guid . 18
5.1.4 ByteString . 19
5.1.5 ExtensionObject . 19
5.1.6 Variant . 19
5.1.7 Decimal . 20
5.2 OPC UA Binary . 21
5.2.1 General . 21
5.2.2 Built-in Types . 21
5.2.3 Decimal . 32
5.2.4 Enumerations . 32
5.2.5 Arrays . 32
5.2.6 Structures . 33
5.2.7 Structures with optional fields . 35
5.2.8 Unions . 37
5.2.9 Messages . 38
5.3 OPC UA XML . 39
5.3.1 Built-in Types . 39
5.3.2 Decimal . 45
5.3.3 Enumerations . 45
5.3.4 Arrays . 46
5.3.5 Structures . 46
5.3.6 Structures with optional fields . 47
5.3.7 Unions . 47
5.3.8 Messages . 48
5.4 OPC UA JSON . 48
5.4.1 General . 48
5.4.2 Built-in Types . 49
5.4.3 Decimal . 54
5.4.4 Enumerations . 54
5.4.5 Arrays . 54
5.4.6 Structures . 55
5.4.7 Structures with optional fields . 55
5.4.8 Unions . 56
5.4.9 Messages . 56
6 Message SecurityProtocols . 57
6.1 Security handshake . 57
6.2 Certificates . 59
6.2.1 General . 59
6.2.2 Application Instance Certificate. 59
6.2.3 Signed Software Certificate .
6.2.3 Certificate Chains . 61
6.3 Time synchronization . 61
6.4 UTC and International Atomic Time (TAI) . 62
6.5 Issued User Identity Tokens . 62
6.5.1 Kerberos . 62
6.5.2 JSON Web Token (JWT) . 63
6.5.3 OAuth2 . 63
6.6 WS Secure Conversation . 65
6.7 OPC UA Secure Conversation . 70
6.7.1 Overview . 70
6.7.2 MessageChunk structure . 70
6.7.3 MessageChunks and error handling . 75
6.7.4 Establishing a SecureChannel . 75
6.7.5 Deriving keys . 77
6.7.6 Verifying Message security . 79
7 TransportProtocols . 80
7.1 OPC UA TCP Connection Protocol . 80
7.1.1 Overview . 80
7.1.2 Message structure . 80
7.1.3 Establishing a connection . 84
7.1.4 Closing a connection . 87
7.1.5 Error handling . 87
7.2 OPC UA TCP . 91
7.3 SOAP/HTTP . 91
7.4 OPC UA HTTPS . 93
7.4.1 Overview . 93
7.4.2 Session-less Services . 95
7.4.3 XML Encoding . 95
7.4.4 OPC UA Binary Encoding . 96
7.4.5 JSON Encoding . 97
7.5 WebSockets . 97
7.5.1 Overview . 97
7.5.2 Protocol Mapping . 98
7.5.3 Security . 98
7.6 Well known addresses . 99
8 Normative Contracts . 100
8.1 OPC Binary Schema . 100
8.2 XML Schema and WSDL . 100
8.3 Information Model Schema . 100
8.4 Formal definition of UA Information Model. 100
8.5 Constants . 100
8.6 DataType encoding . 100
8.7 Security configuration . 100
Annex A (normative) Constants .
...