OPC UA Server & Client · Offline Engineering Mars 2019 Siemens Suisse SA. Non restreint Siemens SA...
Transcript of OPC UA Server & Client · Offline Engineering Mars 2019 Siemens Suisse SA. Non restreint Siemens SA...
www.siemens.de/tia-portalNon restreint © Siemens Suisse SA 2019
OPC UA Server & ClientSiemens @ CERN – September 2019
Non restreint © Siemens SA 2019
OPC UA on the S7-1500The standard open I4.0/IoT interface for a simple and secure integrtion
OPC UA Data Access Server
S7-1500, 1500S, 1500TET 200SP CPU, PLCSIM Adv.
Connection of any third-partydevice to the S7-1500
Symbolic access to theoptimized or absolute addressesof the PLC data
Embedded security(authentication, signature et cryptedcommunication)
Online Browsing andOffline Engineering
Mars 2019 Siemens Suisse SA
Non restreint © Siemens SA 2019Siemens Suisse SA
OPC UA ServerFirst steps
S7-1500 OPC UA server – 1st steps
Mars 2019
Server activation
Setting the access to the tags
Browsing with UA Expert client
Read with UA Expert client
Non restreint © Siemens SA 2019Siemens Suisse SA
OPC UA ServerFunctional scope
Browse
• Browsing of PLC data • Dynamic adaptation of the client configuration tothe data provided by a server
OPC UAserver
Browse
Browse requestNode ID = 84 (root folder), BrowseDirection = forward
Browse responseNode ID, browse name, display name, node class, type def
Mars 2019
Non restreint © Siemens SA 2019Siemens Suisse SA
OPC UA ServerFunctional scope
Read
• Symbolic read access to PLC data
OPC UAserver
Data access
Read requestNode ID = "DB1"."myArray“
Read responseValue = “11110000”, Timestamp = 10/29/2018 3:15pm, Status = Good
11110000
DB1.myArray
11110000
DB1.myArray
11111111
DB1.myArray
Mars 2019
Non restreint © Siemens SA 2019Siemens Suisse SA
OPC UA ServerFunctional scope
Write
• Symbolic write access to PLC data
OPC UAserver
Write requestNode ID = "DB1"."myArray“, Value = “11111111”,
Write responseStatus = Good
11110000
DB1.myArray
11110000
DB1.myArray
11111111
DB1.myArray
11111111
DB1.myArray
ü
Mars 2019
Non restreint © Siemens SA 2019Siemens Suisse SA
OPC UA ServerFunctional scope
Registered Read (Write)
• Repeated access to PLC data
OPC UAserver
Data access
Read requestNode ID = "123456789"
Read responseValue = “11110000”, Timestamp = 10/29/2018 3:15pm, Status = Good
11110000
DB1.myArray
11110000
123456789
Register Node request Node ID = "DB1"."myArray“
Register Node response Node ID = “123456789"
Improved performance with repeatedaccess (see Read / Write)
Node ID: "123456789“Memory: 16# ABCD_01234
11111111
123456789
Node ID: "DB1". "myArray"Node ID: "123456789"
Mars 2019
Non restreint © Siemens SA 2019
Influence of securityRead / Registered Read
OPC UA ServerPerformances comparison between Read & Registered Read, Security
Mars 2019 Siemens Suisse SA
1516
0
250
500
750
1000
1250
1500
1750
2000
2250
2500
2750
3000
3250
100 500 1000 Struct of 1000 Array of 1000
Time [ms]
Items[DINT]
Read avg. Registered Read avg.
0
250
500
750
1000
1250
1500
1750
2000
2250
2500
2750
3000
100 500 1000 Struct of 1000 Array of 1000
Time [ms]
Items[DINT]
Read avg. None 1516 Read avg. Basic256Sha256 Sign&Encrypt 1516
50%Communication load
These are measurement example that may differ from your application.
Non restreint © Siemens SA 2019Mars 2019 Siemens Suisse SA
0
1000
2000
3000
4000
5000
6000
7000
8000
20% 25% 30% 35% 40% 45% 50%
Time [ms]
Commload
Read 1516 avg. Reg. Read avg. 1516
Communication load
Every read contains 1000 single items
0
500
1000
1500
2000
2500
3000
3500
4000
BOOL DWORD REAL LREAL DINT STRING[254]
WSTRING[254]
Time [ms]
Datatype
Read 1516 avg. Reg. Read avg. 1516
50%Communication load
Data type
1516
These are measurement example that may differ from your application.
OPC UA ServerPerformances comparison – communication load and data type
Non restreint © Siemens SA 2019Siemens Suisse SA
OPC UA ServerFunctional scope
Subscribe
• Load reduction for HMI / Monitoring applications
OPC UAserver Subscribe request
Node ID = „DB1“.“myArray“, Publishing interval = 5s, Sampling interval = 1s
11110000
DB1.myArray
11110000
DB1.myArray
Sampling
Publishing
11111111
DB1.myArray
Publish response11111111
DB1.myArray
Publish responseValue = “11111111”, Timestamp = 10/29/2018 3:15pm, Status = Good
Publish responseValue = “11110000”, Timestamp = 10/29/2018 3:15pm, Status = Good
Publish requestSampling Queue
11110000
DB1.myArray
11111111
DB1.myArray
Load reduction for monitoring use cases(Compared to polling)
• Absolute Filters possible
Mars 2019
Non restreint © Siemens SA 2019
Call requestNode ID = “instDrive".“Method“, InputArguments: [ DriveSpeed = “99999” ]
Call responseOutputArguments: [ ] Status = BadInvalidArgument
Siemens Suisse SA
OPC UA ServerFunctional scope
Methods
OPC UAserver
Call requestNode ID = “instDrive".“Method“, InputArguments: [ DriveSpeed = “1000” ]
Call responseOutputArguments: [ ] Status = Good
DriveMethod FB
SetDriveSpeed
RPM: 0RPM: 1’000
• Consistent data transmission • Request based interaction with the user program
Mars 2019
Non restreint © Siemens SA 2019Siemens Suisse SA
OPC UA ServerFunctional scope
Methods
• Consistent data transmission
Mars 2019
• Request based interaction with the user program
Non restreint © Siemens SA 2019Siemens Suisse SA
OPC UA ServerMethods functions
Use of methods
Mars 2019
Programming methods
Method call with UA Expert
Non restreint © Siemens SA 2019Siemens Suisse SA
OPC UA ServerFunctional scope
Companion SpecificationStandard SIMATIC interface User defined interface Standardized interface
Mars 2019
• Standardized OPC UA interfaces • Information modelling
Non restreint © Siemens SA 2019Siemens Suisse SA
OPC UA ServerFunctional scope - Companion Specification / SiOME
Companion Specification - SiOME
• Standardized OPC UA interfaces • Information modelling
BD
InstanceBD
Mapping
https://support.industry.siemens.com/cs/us/en/view/109755133
Instance / Models> On specifications basis
ImportationTypes selonspécificatio
n
ExportationTypes, instances, mapping
Mars 2019
Non restreint © Siemens SA 2019Siemens Suisse SA
OPC UA ServerCompanion Specification functions
Use of Companion Specification
Mars 2019
Create his own interface with SiOME
Mapping with the user program
Display the new interface in UA Expert
Non restreint © Siemens SA 2019
S7-1500 OPC UA ServerFeature Set
Browsing ofSPS-Data
Brow
se R
espo
nse
Brow
se R
eque
st
Acyclic access todata
R/W
Res
pons
e
R/W
Req
uest
High performancewith repeatedacyclic access
R/W
Res
pons
e
R/W
Req
uest
Nod
e H
andl
es
Reg
iste
ring
Nod
es
Load reduction forHMI / monitoringapplications
Publishing
Consistent data transferthrough function call(no handshakes)
Cal
l Res
pons
e ( )
Cal
l Req
uest
( )
Informationmodeling
Browsing Read/Write RegisteredRead/Write
Subscription Methods CompanionSpecifications
Client Client Client Client Client Client
Server Server Server Server Server Server
Sampling
Page 17
Non restreint © Siemens SA 2019DF FA S SUP E&C
OPC UA Data Access Client (S7-1500)Customer use cases
Vertical Line Integration: e.g. MES, SCADA Industry Standard Support
CompanionSpecifications& Methods
Method
Object
Variable
Variable – Property
Machine
PLC
MachineMachine
PLC
OPC UAServer
OPC UAClient
OPC UAClient
11 September, 2019
Non restreint © Siemens SA 2019
OPC UA ClientFeatures Set
Registered Read / Write
(Registered) acyclic access todata
Client
R / W Request
R / W Response
Server
Methods call
Consistent data transfer
Client
Call Request
Call Response
Server
Siemens Suisse SAMars 2019
Non restreint © Siemens SA 2019
Client OPC UAS7-1500 client program
Preparation Execution Closing
Non restreint © Siemens SA 2019Siemens Suisse SA
OPC UA ClientStep by step
Using the S7-1500 OPC UA Client
Mars 2019
Activate the client
Add a client interface
Declare and paremeter the «client» FBs
Non restreint © Siemens SA 2019
OPC UA SecuritySecurity
Siemens Suisse SAMars 2019
• Different level and combination ofsignature and encryption possible
• Automatic authentication of theclient by means of certificates
• TIA Portal provides a project wide• certification authority (CA)
• Authentication by user possible
Non restreint © Siemens SA 2019
OPC UALicences
CPU ET 200SP CPU 1510SP/1512SPS7-1500 up to CPU15131515SP (Open Controller)included F & T
ET 200pro CPU 1516proS7-1500 CPU 1515/1516Soft PLC 1507Sincluded F & T
S7-1500 CPU 1517/1518Soft PLC 1508Sincluded F & T
Required licence SIMATIC OPC UAS7-1500 Small
SIMATIC OPC UAS7-1500 Medium
SIMATIC OPC UAS7-1500 Large
Article number
Download
6ES7823-0BA00-1BA0List price 110.- €*
6ES7823-0BA00-1CA0List price 220.- €*
6ES7823-0BA00-1DA0List price 330.- €*
6ES7823-0BE00-1BA0List price 100.- €*
6ES7823-0BE00-1CA0List price 200.- €*
6ES7823-0BE00-1DA0List price 300.- €*
*List price - march 2019Mars 2019 Siemens Suisse SA
Non restreint © Siemens SA 2019
Thank you for your attention
Michel AvondetTechnical Account Manager for CERN
Av.des Baumettes 51020 Renens
Téléphone: +41 585 584 712
E-mail:[email protected]
siemens.ch