Simatic OPC UA Server and Client en

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

OPC UA Server & Client

Siemens @ CERN – September 2019

Non restreint © Siemens Suisse SA 2019 www.siemens.de/tia-portal


OPC UA on the S7-1500
The standard open I4.0/IoT interface for a simple and secure integrtion

OPC UA Data Access Server

Connection of any third-party


device to the S7-1500

Symbolic access to the


optimized or absolute addresses
of the PLC data

Embedded security
(authentication, signature et crypted
communication)

Online Browsing and


Offline Engineering

S7-1500, 1500S, 1500T


ET 200SP CPU, PLCSIM Adv.
Non restreint © Siemens SA 2019
Mars 2019 Siemens Suisse SA
OPC UA Server
First steps

S7-1500 OPC UA server – 1st steps

Server activation

Setting the access to the tags

Browsing with UA Expert client

Read with UA Expert client

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
OPC UA Server
Functional scope

Browse

OPC UA
server
Browse request
Node ID = 84 (root folder), BrowseDirection = forward

Browse response
Node ID, browse name, display name, node class, type def

Browse

• Dynamic adaptation of the client configuration to


• Browsing of PLC data
the data provided by a server
Non restreint © Siemens SA 2019
Mars 2019 Siemens Suisse SA
OPC UA Server
Functional scope

Read

OPC UA
server
Read request
Node ID = "DB1"."myArray“

1111
1111 Read response 1111
0000
Value = “11110000”, Timestamp = 10/29/2018 3:15pm, Status = Good
DB1.myArray DB1.myArray

Data access

1111
0000
DB1.myArray

• Symbolic read access to PLC data

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
OPC UA Server
Functional scope

Write

OPC UA
server
1111 Write request
0000 Node ID = "DB1"."myArray“, Value = “11111111”,
DB1.myArray

1111
Write response 1111
Status = Good ü
DB1.myArray

1111
0000
1111
DB1.myArray

• Symbolic write access to PLC data

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
OPC UA Server
Functional scope

Registered Read (Write)

OPC UA
Register Node request Node ID = "DB1"."myArray“
server
Register Node response Node ID = “123456789"
Node ID: "123456789“
Memory: 16# ABCD_01234

Read request
Node ID: "DB1". "myArray"
Node ID = "123456789" Node ID: "123456789" 1111
1111 1111
0000
Read response 123456789
123456789
Value = “11110000”, Timestamp = 10/29/2018 3:15pm, Status = Good

Data access

1111 Improved performance with repeated


0000
DB1.myArray access (see Read / Write)

• Repeated access to PLC data

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
OPC UA Server
Performances comparison between Read & Registered Read, Security

Read / Registered Read Influence of security


Time [ms] Time [ms]
3250 1516 3000

3000 2750

2750 2500
2500 2250
2250 2000
2000
1750
1750 50%
Communication load
1500
1500
1250
1250
1000
1000
750
750
500 500

250 250

0 Items 0 Items
100 500 1000 Struct of 1000 Array of 1000 [DINT] 100 500 1000 Struct of 1000 Array of 1000 [DINT]
Read avg. Registered Read avg. Read avg. None 1516 Read avg. Basic256Sha256 Sign&Encrypt 1516

Non restreint © Siemens SA 2019


These are measurement example that may differ from your application.
Mars 2019 Siemens Suisse SA
OPC UA Server
Performances comparison – communication load and data type

Communication load Data type


Time [ms] Time [ms]
8000
1516 4000

7000
3500

50%
6000 3000 Communication load

5000 2500

4000 2000

3000 1500

2000 1000

1000 500

0 0 Data
Comm BOOL DWORD REAL LREAL DINT STRING WSTRING
20% 25% 30% 35% 40% 45% 50% type
load [254] [254]
Read 1516 avg. Reg. Read avg. 1516 Read 1516 avg. Reg. Read avg. 1516

Every read contains 1000 single items


Non restreint © Siemens SA 2019
These are measurement example that may differ from your application.
Mars 2019 Siemens Suisse SA
OPC UA Server
Functional scope

Subscribe

OPC UA
server Subscribe request
Node ID = „DB1“.“myArray“, Publishing interval = 5s, Sampling interval = 1s

Publish request
Sampling Queue
1111
1111 Publish response 0000
1111
0000
1111 Publish response
Value = “11110000”,
“11111111”, Timestamp = 10/29/2018 3:15pm, Status = Good
DB1.myArray DB1.myArray
Publishing

Sampling

1111 Load reduction for monitoring use cases


1111
0000
DB1.myArray (Compared to polling)

• Load reduction for HMI / Monitoring applications • Absolute Filters possible

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
OPC UA Server
Functional scope

Methods

OPC UA
server
Drive
Method FB
Call request
NodeID
Node ID==“instDrive".“Method“,
“instDrive".“Method“, InputArguments:
InputArguments:[ [DriveSpeed
DriveSpeed==“99999”
“1000” ]]
SetDrive
Speed
Call response
OutputArguments:
OutputArguments: [] [ ] Status =Status = Good
BadInvalidArgument
RPM: 1’000
0

• Consistent data transmission • Request based interaction with the user program

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
OPC UA Server
Functional scope

Methods

• Consistent data transmission • Request based interaction with the user program

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
OPC UA Server
Methods functions

Use of methods

Programming methods

Method call with UA Expert

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
OPC UA Server
Functional scope

Companion Specification
Standard SIMATIC interface User defined interface Standardized interface

• Standardized OPC UA interfaces • Information modelling

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
OPC UA Server
Functional scope - Companion Specification / SiOME

Companion Specification - SiOME


Instance / Models
> On specifications basis
Importation
Types selon BD
spécificatio
n

Instance
https://support.industry.siemens.com/cs/us/en/view/109755133
BD
Exportation
Types, instances, mapping
Mapping

• Standardized OPC UA interfaces • Information modelling

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
OPC UA Server
Companion Specification functions

Use of Companion Specification

Create his own interface with SiOME

Mapping with the user program

Display the new interface in UA Expert

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
S7-1500 OPC UA Server
Feature Set

Browsing Read/Write Registered Subscription Methods Companion


Read/Write Specifications

Client Client Client Client Client Client

Publishing

Registering Nodes
Browse Request

Call Request ( )
R/W Request

R/W Request
Browse Response

Call Response ( )
R/W Response

R/W Response
Node Handles Sampling

Server Server Server Server Server Server

Browsing of Acyclic access to High performance Load reduction for Consistent data transfer Information
SPS-Data data with repeated HMI / monitoring through function call modeling
acyclic access applications (no handshakes)

Non restreint © Siemens SA 2019


Page 17
OPC UA Data Access Client (S7-1500)
Customer use cases

Vertical Line Integration: e.g. MES, SCADA Industry Standard Support

OPC UA OPC UA
Server Client

Machine Machine
Method
PLC PLC
Companion
Specifications Object
OPC UA & Methods
Client
Variable

Variable – Property

Non restreint © Siemens SA 2019


11 September, 2019 DF FA S SUP E&C
OPC UA Client
Features Set

Registered Read / Write Methods call

Client Server Client Server

R / W Request Call Request

R / W Response Call Response

(Registered) acyclic access to


Consistent data transfer
data

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
Client OPC UA
S7-1500 client program

Preparation Execution Closing


Non restreint © Siemens SA 2019
OPC UA Client
Step by step

Using the S7-1500 OPC UA Client

Activate the client

Add a client interface

Declare and paremeter the «client» FBs

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
OPC UA Security
Security

• Different level and combination of


signature and encryption possible

• Automatic authentication of the


client by means of certificates
• TIA Portal provides a project wide
• certification authority (CA)

• Authentication by user possible

Non restreint © Siemens SA 2019


Mars 2019 Siemens Suisse SA
OPC UA
Licences

CPU ET 200SP CPU 1510SP/1512SP ET 200pro CPU 1516pro


S7-1500 up to CPU1513 S7-1500 CPU 1515/1516 S7-1500 CPU 1517/1518
1515SP (Open Controller) Soft PLC 1507S Soft PLC 1508S
included F & T included F & T included F & T

Required licence SIMATIC OPC UA SIMATIC OPC UA SIMATIC OPC UA


S7-1500 Small S7-1500 Medium S7-1500 Large

Article number 6ES7823-0BA00-1BA0 6ES7823-0BA00-1CA0 6ES7823-0BA00-1DA0


List price 110.- €* List price 220.- €* List price 330.- €*
6ES7823-0BE00-1BA0 6ES7823-0BE00-1CA0 6ES7823-0BE00-1DA0
Download
List price 100.- €* List price 200.- €* List price 300.- €*
Non restreint © Siemens SA 2019
*List price - march 2019
Mars 2019 Siemens Suisse SA
Thank you for your attention

Michel Avondet
Technical Account Manager for CERN

Av.des Baumettes 5
1020 Renens
Téléphone: +41 585 584 712

E-mail:
michel.avondet@siemens.com

siemens.ch

Non restreint © Siemens SA 2019

You might also like