opc unified architecture - siemens ag · simatic wincc v7.2 - opc unified architecture opc ua...

31
Unrestricted / © Siemens AG 2013. All Rights Reserved. www.wincc.de OPC Unified Architecture SIMATIC WinCC V7.2

Upload: ledien

Post on 06-Jan-2019

333 views

Category:

Documents


11 download

TRANSCRIPT

Page 1: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved. www.wincc.de

OPC Unified Architecture SIMATIC WinCC V7.2

Page 2: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 2 webinar

• Historical Access 28

• Data Access 25

• UA Client 22

• UA Server 19

• WinCC OPC UA 17

• UA Principles 7

• How does it works 5

• OPC History 2

SIMATIC WinCC V7.2 - OPC Unified Architecture

Page 3: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 3 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture OPC - Standardize on technology not the product – break the barriers

DDE (Windows 3) 1990

1996

2009

OPC History - success story

Benefits of OPC Open connectivity

Plug-and-Play

Interfaces available from multiple vendors

Easy to use

Reduces your project costs!

Page 4: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 4 webinar

• Historical Access 28

• Data Access 25

• UA Client 22

• UA Server 19

• WinCC OPC UA 17

• UA Principles 7

• How does it works 4

• OPC History 3

SIMATIC WinCC V7.2 - OPC Unified Architecture

Page 5: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 5 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture How does OPC works

Req

uest

Response

Native communication

OPC Client

Initialize the OPC communication

Reading/ writing requirements

OPC

Communication on basis of COM/DCOM, SOAP/HTTP or UA Binary

OPC Server

Carry out the Client requirements

Cyclical / change controlled

Page 6: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 6 webinar

• Historical Access 28

• Data Access 25

• UA Client 22

• UA Server 19

• WinCC OPC UA 17

• UA Principles 6

• How does it works 5

• OPC History 3

SIMATIC WinCC V7.2 - OPC Unified Architecture

Page 7: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 7 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture OPC Unified Architecture Principles

OPC UA is designed to deliver a true Universal Connectivity based on a secure and simple platform to address Enterprise level challenges

Unified Access

Platform Independence

Reliability Security

Page 8: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 8 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access

Unified Access OPC UA integrates existing OPC specifications DA, A&E, HDA, etc. in one specification. This reduces system integration costs by providing a common architecture for accessing information.

OPC DA

Real time data OPC HDA

Historical data OPC A&E

Alarms and Events

Main OPC Classic Specifications OPC Unified Architecture

OPC Client

OPC UA

Data Access

Historical Access

Alarms and Conditions

CO

M C

lient

UA

Clie

nt

Unified Access

Page 9: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 9 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Platform Independence & Access via Firewalls and across the Internet

Platform Independence OPC UA is designed to be independent of the platform. Using SOAP/XML over HTTP, OPC UA can be deployed on Linux, Windows XP Embedded, VxWorks, Mac, Windows 7 and Classical Windows platforms. Access via Firewalls and across the Internet OPC UA uses message based security which means messages can be relayed through HTTP, UA TCP port or any other single port available.

UA XML UA Binary WS Secure Conversation UA Secure Conversation

SOAP UA TCP HTTP/HTTPS

TCP / IP TCP/IP

XML Web Services Native Binary SOAP/HTTP with UA Binary

Internet UA Client

UA Server

Platform Independence

Page 10: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 10 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Security

Security OPC UA is Secure-by-default, encryption enabled (to encode the data transfer), uses advanced certificate handling and authentication.

OPC UA Server OPC UA Client Certificate Handling

Certificate Store Certificate Store

Server.der

Client.der Server.der

Client.der

Export, Copy And Install

Export, Copy And Install

Server Client

Security

Page 11: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 11 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Security in WinCC

The following table lists the security settings supported by the WinCC OPC UA server: Security Policy 1. The certificate exchange is switched off.

Every OPC UA client can log on to the WinCC OPC UA server. 2. Certificate exchange with depth of encryption of 128 bit. 3. Certificate exchange with depth of encryption of 256 bit.

Message Security Mode 4. Unsecured exchange of data packages between client and server after a certificate check. 5. The data packages are signed with the certificates, but not encoded 6. The data packages are signed with the certificates and encoded

Authentication For user account identification of an OPC UA client, the WinCC OPC UA server supports the methods "Anonymous" and "Windows user name / Password".

Security Policy Message Security Mode

None1 None

Basic128Rsa152 None4 Sign5 SignAndEncrypt6

Basic2563 None4 Sign5 SignAndEncrypt6

Security

Settings of the WinCC OPC UA server

Page 12: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 12 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Security in WinCC

The following table lists the security settings supported by the WinCC OPC UA client: Security Policy The certificate exchange is switched off.

Certificate exchange with depth of encryption of Basic128/-192/-256,

Basic128Rsa15/-192Rsa15/-256Rsa15 or Basic256Sha256.

Message Security Mode Unsecured exchange of data packages between client and server after a certificate check. The data packages are signed with the certificates, but not encoded The data packages are signed with the certificates and encoded

Authentication For user account identification of an OPC UA client, the WinCC OPC UA server supports the methods "Anonymous" and "Windows user name / Password".

Security Policy Message Security Mode

None None

Basic None Sign SignAndEncrypt

Security

Settings of the WinCC OPC UA client

Page 13: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 13 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Security in WinCC

Certificate store of the WinCC OPC UA server: "<WinCC installation folder>\OPC\UAServer\PKI"

Certificate store of the WinCC OPC UA client: "<WinCC installation folder>\OPC\UAWrapper\PKI"

OPC UA Server

OPC UA Client Certificate Handling

Server.der

Client.der Server.der

Client.der Export, Copy And Install

Export, Copy And Install

Server Client

Security

Page 14: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 14 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Security in WinCC

WinCC UA Server Open the configuration file

(<WinCC project folder>OPC\UAServer\OPCUAServerWinCC.xml) Specify security settings

WinCC UA Client Add the OPC communication driver Use the WinCC OPC Item Manager to configure the

connections (system parameter) Enter the URL of the WinCC OPC UA server in the OPC

UA server dialog Set up the security settings

Settings of the WinCC OPC UA server

Settings of the WinCC OPC UA client

Security

Disable the setting with "false".

To deactivate a setting, delete the entire entry

Page 15: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 15 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Reliability

Reliability OPC UA implements configurable timeouts, error detection and communication failure recovery. OPC UA allows redundancy between applications from different vendors to be deployed.

UA Client (Active)

UA Client (Standby)

UA Server (Active)

UA Server (Standby)

Industrial Process

Reliability

Page 16: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 16 webinar

• Historical Access 28

• Data Access 25

• UA Client 22

• UA Server 19

• WinCC OPC UA 16

• UA Principles 7

• How does it works 5

• OPC History 3

SIMATIC WinCC V7.2 - OPC Unified Architecture

Page 17: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 17 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture OPC Unified Architecture in WinCC

OPC UA is designed to deliver a true Universal Connectivity based on a secure and simple platform to address Enterprise level challenges

OPC UA Principles: • Unified Access • Platform Independence • Access via Firewalls and across the Internet • Reliability • Security

• WinCC OPC UA Server

for OPC UA Data Access and OPC UA Historical Access * Part of the WinCC ConnectivityPack

• WinCC OPC UA Client

for data access as WinCC Channel

SIMATIC WinCC

*) OPC UA Historical Access supports Historical Data. Alarms & Events are not supported.

UA Historical Access Historical Data

e.g. MES to excange producation data

e.g. Historian

e.g. Historian or central Message system

e.g. 3.rd party controller

UA Data Access UA Historical Access Alarms & Events *

OPC UA Server

OPC UA Client

UA Data Access

Page 18: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 18 webinar

• Historical Access 28

• Data Access 25

• UA Client 22

• UA Server 18

• WinCC OPC UA 17

• UA Principles 7

• How does it works 5

• OPC History 3

SIMATIC WinCC V7.2 - OPC Unified Architecture

Page 19: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 19 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture WinCC OPC UA Server

The WinCC OPC UA Server provides the following values: • Process values • Values from tag archives

Basic information to the WinCC OPC UA Server • WinCC OPC UA server is installed as Windows service and started automatically.

• WinCC OPC UA server supports the "UA-TCP UA-SC UA Binary" communication profile. The used port number is adjustable (configuration file "OPCUAServerWinCC.xml“)

• You access the WinCC OPC UA server via the following URL: opc.tcp://[HostName]:[Port]

• For authorization between WinCC OPC UA server and OPC UA client certificates are exchanged. In addition, you can encode the data transfer.

Page 20: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 20 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture WinCC OPC UA Server - Configuration of the Server in detail

1. Open the configuration file (<WinCC project folder>OPC\UAServer\OPCUAServerWinCC.xml)

2. Change the port number of the WinCC OPC UA server

3. Specify security settings

Enable the setting with "true".

Disable the setting with "false".

4. Specify user identification

5. Configure optimized WinCC archive write access

6. Change the trace level

Page 21: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 21 webinar

• Historical Access 28

• Data Access 25

• UA Client 21

• UA Server 19

• WinCC OPC UA 17

• UA Principles 7

• How does it works 5

• OPC History 3

SIMATIC WinCC V7.2 - OPC Unified Architecture

Page 22: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 22 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture WinCC OPC UA Client

The WinCC OPC UA client enables data access to any OPC UA server in accordance with the OPC Unified Architecture specification

Configuration of an OPC connection: 1. Add the OPC communication driver

2. Use the WinCC OPC Item Manager to configure the connections (system parameter)

3. Enter the URL of the WinCC OPC UA server in the OPC UA server dialog

• Set up the security settings

4. Click "Browse Server“ An error dialog opens

• The "rejected" folder containing the rejected server certificate

5. Move the server certificate from the "rejected" folder to the "certs" folder

Page 23: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 23 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture WinCC OPC UA Client

Configuration of OPC tags:

1. Click "Browse Server". The "Filter criteria" dialog is opened.

2. Select the tag to be mapped in the "opc.tcp:// ..." dialog, e.g. "OPC_UA_Server_Tag". Click "Add Items".

• A message will be output if this connection is not available

• Enter the connection name "OPCUAServer

Page 24: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 24 webinar

• Historical Access 28

• Data Access 24

• UA Client 22

• UA Server 19

• WinCC OPC UA 17

• UA Principles 7

• How does it works 5

• OPC History 3

SIMATIC WinCC V7.2 - OPC Unified Architecture

Page 25: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 25 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture WinCC OPC UA – Data Access

OPC DA in general OPC UA – Data Access:

standardizes access method to real-time data OPC UA – Data Access decouples the implementation of

the device, e.g. a controller from its data items Every item includes information on: Value, Quality code and timestamp OPC DA usage Used only for real-time data Typical queries: What is the process value of “tank level 1” now? What is the setpoint of “motor 1” now? Only allows the transmission of the latest values

Req

uest

Response

Native communication

Page 26: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 26 webinar

Result: time stamp is used for the message

SIMATIC WinCC V7.2 - OPC Unified Architecture WinCC OPC UA – Data Access – using the timestamp from the OPC tag

Timestamp of the OPC tag is used for the message Timestamp of the OPC tag is used to store the trend if you use the archiving mode “Acyclic”

Result: time stamp is used for the trend

Page 27: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 27 webinar

• Historical Access 27

• Data Access 25

• UA Client 22

• UA Server 19

• WinCC OPC UA 17

• UA Principles 7

• How does it works 5

• OPC History 3

SIMATIC WinCC V7.2 - OPC Unified Architecture

Page 28: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 28 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture WinCC OPC UA – Historical Access

OPC Historical Access in general OPC Historical Access:

standardized access method to analyze archive data Standard method to write historical values

OPC Historical Access usage Used only for historical data Typical queries: What is the historical value of “tank level 1” for the last hour? Insert a new value for the “tank level 1” to the archive. Standard method to read historical values out of the WinCC tag logging archive write historical values into WinCC tag logging archive

SIMATIC WinCC

UA Historical Access Historical Data

MES, ERP e.g. Historian

Rea

d

OPC UA Server

Write

Page 29: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 29 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture WinCC OPC UA – Historical Access

WinCC OPC UA – Historical Access - Read - write access to the WinCC Tag Logging Archive

Marked as manual input

Page 30: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 30 webinar

SIMATIC WinCC V7.2 - OPC Unified Architecture WinCC OPC UA – Historical Access

To write historical data into the WinCC archive by the help of OPC UA Installation of the components is necessary

Configuring optimized WinCC archive write access By default the optimized WinCC archive write access is activated To limited the write access specify a Windows users under <Users> or specify a OPC UA client under <Clients> which have the rights to write data into the WinCC database.

Page 31: OPC Unified Architecture - Siemens AG · SIMATIC WinCC V7.2 - OPC Unified Architecture OPC UA Principles: Unified Access . Unified Access . OPC UA integrates existing OPC specifications

Unrestricted / © Siemens AG 2013. All Rights Reserved.

Page 31 webinar

Jürgen Bohrer

I IA AS S SUP FA 2

Gleiwitzer Str. 555

90475 Nürnberg

Phone: +49 (911) 895-7147

E-Mail: [email protected]

Thank you for your attention!

www.wincc.de

E: \

360_

Web

inar

\ 20

13_0

7_15

_Use

_cas

e_SI

MAT

IC_W

inC

C_w

ith_O

PC_U

A \ 0

00_O

PC_U

A_en

.ppt

x E:

\ 36

0_W

ebin

ar \

2013

_07_

15_U

se_c

ase_

SIM

ATIC

_Win

CC

_with

_OPC

_UA

\ 000

_OPC

_UA_

en.p

ptx