advanced controllers enable the smart factory · • launch c/c++ functions from ladder logic...

22
siemens.com/MFP Unrestricted © Siemens AG 2018 Advanced Controllers Enable the Smart Factory The S7-1518 MFP, a combined PLC and PC, is the latest innovation in automation

Upload: others

Post on 08-Mar-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Unrestricted © Siemens AG 2018

siemens.com/MFP Unrestricted © Siemens AG 2018

Advanced Controllers

Enable the Smart Factory

The S7-1518 MFP, a combined PLC and PC, is the

latest innovation in automation

Unrestricted © Siemens AG 2018

Page 2

With today’s Smart Factory requirements

The Smart factory put more demands on the

automation system connections to the real world

• Rapid production reactions

• IIOT connectivity

• Digitalization

• Integrating QC improvement in process

• Responding to external request

• Complex mathematic algorithms

• Big data analysis and cloud functionalities

There continues to be a search for something better than

PC based control so we put the PLC first

Today we are here to introduce the S7-1518 MFP that put

the high level processing closer to the control process

Unrestricted © Siemens AG 2018

Combined applications

A PC is often the choice for needs

beyond coordination machine

functions like:

• Supports more programming

languages

• Communication Protocols

• Complex mathematic algorithms

• Quality control monitoring

• send data to a producer’s

enterprise resource planning

(ERP) system

• Many hardware platforms

Siemens.com/MFP

Unrestricted © Siemens AG 2018

Multiple devices cause complications

More HW means more coordination

• Multiple SW tools

• Timing issues of sub programs

• Communication and storage

• Windows OS firmware and SW updates

• HW and FW changes in new PC

• Program backup and restore

• PC Revision control (OS updates)

• Replacing PC & Restoring programs

• Coordinating PLC rand PC revisions

• Increased deliverables

Unrestricted © Siemens AG 2018

Tight coordination and open system

development tools

All In one proven rugged

modular Controller S7-

1518 MFP

In Parallel and / or coordinated

Unrestricted © Siemens AG 2018 Siemens.com/MFP

Simplified by MFP

Combining PLC and PC in the MFP ---- No

separate PC is required

• The same advantages of a PC PLUS…...

• Proven ruggedness of Modular PLC hardware

• Real-time C++ can be called via PLC logic.

Non-real-time cannot. C/C++ functions from

ladder logic program

• Execute C/C++ applications in parallel to the

STEP 7 program --not called from PLC

• Open libraries for API connectivity

• Model Based program development loaded

direct into controller

• One device to install and back up

• One SD micro memory for restoring the

system

Unrestricted © Siemens AG 2018

New

Advanced Controller SIMATIC S7-1500

Starts with the most powerful PLC as a basis for the MFP

Compact-CPUs Standard / safety Integrated -CPUs Advanced motion control

Technology-CPUs MFP

CPU-

Type

1511C-1

PN

1512C-1

PN

1511F-1

PN

1513F-1

PN

1515F-2

PN

1516F-3

PN/DP

1517F-3

PN/DP

1518F-4

PN/DP

1511TF-1

PN

1515TF-2

PN

1516TF-3

PN/DP

1517TF-3

PN/DP

1518F-4

PN/DP

MFP

Interface

Program/

Data

Memory

175 KB

1 MB

250 KB

1 MB

150/

225 KB

1 MB

300/

450 KB

1,5 MB

500/

750 KB

3 MB

1/

1.5 MB

5 MB

2/3 MB 8 MB

4/6 MB

20 MB

225/

225 KB

1 MB

750/

750 KB

3 MB

1,5/

1,5 MB

5 MB

3/3 MB 8 MB

4/6 MB

20 MB

50 MB

/500MB1

Bit-

Performance

60 ns 48 ns 60 ns 40 ns 30 ns 10 ns 2 ns 1 ns 60 ns 30 ns 10 ns 2 ns 1 ns

Max. number

connections

96 128 96 128 192 256 320 384 96 192 256 320 384

Positioning

Axes

• Typical2

• Maximum3

5

10

5

10

5

10

5

10

7

30

7

30

70

128

128

128

5

10

7

30

55

80

70

128

128

128

Width 85 mm 110 mm 35 mm 35 mm 70 mm 70 mm 175 mm 175 mm 35 mm 70 mm 175 mm 175 mm 175 mm

1

1

1

1

1

1

1

1

1

1

2 1

1

2 1

1

2 1

1

2

3

1

1

1

1

2 1

1

2 1

1

2 1

1

2

3

1) additional 50 MB working memory for C/C++ in PLC-RT and 500 MB for C/C++ Runtime application)

Page 8 04/25/2018 SIMATIC S7-1518 MFP

Unrestricted © Siemens AG 2018

Advanced Controller – CPU 1518(F) MFP

Multifunctional Platform based on S7-1500 Controller

Multifunctional Platform CPU 1518(F)-4 PN/DP MFP

• Performance and quantity structure of CPU 1518

• C/C++ Code can be used in the STEP 7 program code by calling

function blocks processed by ODK into Step 7 functions

• A second runtime for C/C++ applications can be used in addition

to the STEP 7 user program code so that it is possible to run

complex C/C++ applications in parallel.

• Standard-, Safety- and complex high level language program code

can be executed on one single platform.

• Plug and play replacement of a S7-1518(F) MFP CPU is

available, so that in the case of changing the hardware only

the SIMATIC memory card has to be plugged to the new

hardware module.

Customer Benefit:

There is no need of separate PC hardware.

Integration of high level languages via SIMATIC ODK 1500S/Target

1500S, and Eclipse

Re-use of existing technological know-how in C/C++ Code

Standard- and failsafe CPU

Page 9 04/25/2018 SIMATIC S7-1518 MFP

Unrestricted © Siemens AG 2018

Hypervisor

Advanced Controller – CPU 1518(F) MFP

Usage of the Multifunctional Platform

Communication

Process Data

Operating System

Ethernet

General-Purpose OS

C/C++ Runtime

USB/VGA Ethernet

Embedded OS

CPU 1505 S

Embedded OS

PN IRT

ST

EP

7

C+

+ (

CP

U

Fct. lib

rary

) PC, Soft Controller:

Open for windows applications

• No limitations by using the operating system (OS)

relating to HMI, applications, drivers, …

• Standard PC interfaces (USB, VGA, PCI, …)

• Hardware change by using an image of the OS

• But: Maintenance of the operating system

(Microsoft Security Updates, Patches) by OEM

CPU 1518 MFP:

Robustness for embedded applications

• Pre-configured embedded operating system

with fixed programming interface (API)

• Controller interfaces

• Hardware change without engineering system

• OS-Support incl. Security Updates by Siemens

OE

M

OE

M

Windows

C+

+

(AP

I)

SQ

L,

Scri

pti

ng

,

HM

I

C+

+

(AP

I)

CPU 1518 MFP

ST

EP

7

C+

+ (

CP

U

Fct. lib

rary

)

PN IRT

Page 10 04/25/2018 SIMATIC S7-1518 MFP

Unrestricted © Siemens AG 2018 Siemens.com/MFP

All code sources can used

Combined PLC and PC in the MFP ---- No

separate PC required

• The same advantages of a PC PLUS…...

• Launch C/C++ functions from ladder logic

program

• Execute C/C++ applications in parallel to the

STEP 7 program

• Proven ruggedness of Modular PLC

hardware

• One SD micro memory for restoring the

system

Integration of publicly available

libraries save countless hours of

programming I.E protocol

convertor or data base

connection via API.

Unrestricted © Siemens AG 2018 Siemens.com/MFP

Parallel Processing MFP

Combining PLC and PC in the MFP ----

The same advantages of a PC PLUS…...

• No separate PC required

• Launch C/C++ functions from ladder logic

program

• Execute C/C++ applications in parallel to the

PLC program

• Uses Proven ruggedness of Modular PLC

hardware Including Extreme Environment

version

• One device to install and back up

• One SD micro memory for restoring the

system

Launch C/C++ functions

from ladder logic program

Execute C/C++

applications in parallel to

the STEP 7 program

Unrestricted © Siemens AG 2018

Advanced Controller – CPU 1518(F) MFP

Engineering of the Multifunctional Platform

Programming-Tool

Engineering of

CPU 1518(F)-4 PN/DP MFP

• Engineering of the Multifunctional Platform within

TIA Portal

Programming-Tool

STEP 7

Parallel Development of

STEP 7- and C/C++ functions/applications

• The standard TIA Portal STEP is used for Standard and

Safety rated applications of the CPU 1518(F) in the MFP

• The SIMATIC ODK 1500S with „eclipse“ is used to

program the code in high level for the PC side.

• The program code developed in C/C++ can be used

• as “CPU-Function libraries“ (C/C++ Code, which

runs synchronous in the CPU-runtime) directly

called within

the CPU program code via block call

• as a separate runtime-application within the „C/C++

Runtime“ in parallel to the CPU-runtime

Page 14 04/25/2018 SIMATIC S7-1518 MFP

Unrestricted © Siemens AG 2018

Advanced Controller – CPU 1518(F) MFP

Diagnosis and Debugging

SSH

(Secure Shell)

Diagnosis in C/C++ runtime

• Visualization of the status of the C/C++ runtime via

onboard LEDs of the CPU

• Errors within the C/C++ runtime will create a diagnosis

information at the diagnostic buffer of the 1518 CPU

Debugging of C/C++ runtime applications

• Access to C/C++ runtime via secure shell:

• Via secure shell the typical commands/instructions for the

embedded linux operating system are available

• Debugging of the C/C++ application is possible by using eclipse

Page 15 04/25/2018 SIMATIC S7-1518 MFP

Unrestricted © Siemens AG 2018

Advanced Controller – CPU 1518(F) MFP

Typical Development Environment

Runtime-Licenses for the execution

of ODK applications and for the OPC-

UA Server are inclusive

Execution of

• ODK Binary files (.so, synchronously )

• C/C++ Applications (asynchronously)

En

gin

eeri

ng

R

un

tim

e

SIMATIC ODK 1500S

(incl. Eclipse)

SIMATIC TIA Portal

SIMATIC Target 1500S

(option)

SIMATIC S7-1500

CPU 1518(F)-4 PN/DP MFP

Developing of C/C++ Applications:

• CPU Function Libraries for using C/C++ in a

real time application

(e.g. technology, functions for closed loop

control , complex mathematic algorithms)

• C/C++ application for customer specific high

level languages implementations

(e.g. automated data reduction or

concentration, gateways, protocol converter)

Page 16 04/25/2018 SIMATIC S7-1518 MFP

Unrestricted © Siemens AG 2018

Advanced Controller – CPU 1518(F) MFP

Execution of Function Libraries and C/C++ Applications

Execution of functions in loadable libraries at

runtime and/or as an independent C/C++

application:

Real-time: so (shared object):

• C/C++ code is called as a function block directly in

an OB, e.g.

• algorithms, closed loop controller, …

C/C++ Runtime:

• C/C++ code will be executed as an independent

C/C++ runtime application in parallel to the CPU

user program code, e.g.

• Connection to SQL-Database,

• Implementation of complex communication

protocols like IEC 61850, …

C/C++ Runtime CPU

Application OB CPU-

Function

Library

so

FB Load

FB Fct1

FB Fct2

FB Unload

Fct1

Fct2

CPU 1518(F)-4 PN/DP MFP

exec.

Page 17 04/25/2018 SIMATIC S7-1518 MFP

Unrestricted © Siemens AG 2018

SECS/GEM or PV2

IEC 61580

Complex

protocol implementations

Ananlyse komplexer Daten für Steuerungsentscheidungen

Ermittlung Schlüsseldaten (KPIs) für Management und Wartung

Zusammenfassung von Daten für externe Archivierung

Preparation of complex information e.g. for management decision

Analysis of machine data for preventive maintenance

Collection and summary of data for external archival storage

automated data compression or

concentration

Automatic optimization of processes

Forecast of future automation tasks and steps

Planning of complex movements

Execution of complex algorithms

Advanced Controller – CPU 1518(F) MFP

Possible Applications for C/C++ Runtime on CPU 1518 MFP

Direct connection to SQL-Database (remote)

Database access

Page 18 04/25/2018 SIMATIC S7-1518 MFP

Unrestricted © Siemens AG 2018

Advanced Controller – CPU 1518(F) MFP

Programming Interface for C/C++ Runtime Applications

1) DTD: Document Type Definition 2) SAX: Simple API for XML

GNU C Library (glibc 2.24)

• Basic functions of the embedded Linux operating

system

• e.g. open, read, write, malloc, printf, getaddrinfo,

dlopen, pthread_create, crypt, login, exit

GNU Standard C++ Library

(libstdc++ 6.2.0)

• Standard C++ library according to ISO 14882

OpenSSL and Cryptography

Library (libssl 1.0.2k)

• OpenSSL functions for transport layer security (TLS)

and secure sockets layer (SSL) protocols

• Standard encryption library

XML Parser Library (libxml2 2.9.4)

• Manipulation of XML files

• Push and pull type parser interface for

XML/HTML

• DTD1), XPath, XPointer and XInclude

implementation

• SAX2) interface (compatible to Expat)

Data Compression Library (zlib 1.2.8)

• lossless data-compression library

12/22/2017 Page 19

04/25/2018 SIMATIC S7-1518 MFP

Unrestricted © Siemens AG 2018

CPU 1518 MFP

C++

Runtime

CPU

Advanced Controller – CPU 1518(F) MFP

Real-Time Synchronous Function Libraries E

ng

ineeri

ng

R

un

tim

e

scl so

Workflow

Create the CPU function libraries within the

development environment (IDE)

• Realtime: Eclipse (C++)

1

Transfer of the executable file to target:

• via CPU-Webserver 2

Transfer of the SCL function block sources

for the ODK functions to the TIA Portal

project

3

Create the PLC program code with ODK

function block calls 4

Download and execute the PLC program

code 5

1

2 3

4

5

IDE

Build

CPU

Web-Server

SO

Page 20 04/25/2018

SIMATIC S7-1518 MFP

Unrestricted © Siemens AG 2018

CPU 1518 MFP

C++

Runtime

CPU

Advanced Controller – CPU 1518(F) MFP

Asynchronous C++ Applications E

ng

ineeri

ng

R

un

tim

e

exec.

Workflow

Create the C++ application within the development environment

(IDE) Eclipse

1

Automatically download of the executable files to the target

system when the build process was finished:

• Application will be transferred to the target register

• Start of the application

2

Editing of the startup scripts for an automatically start of the

C++ application during startup of the CPU 1518 MFP

3

1

2

3

IDE

Build

12/22/2017 SIMATIC S7-1500 / ET 200 CPUs | Technical slides Page 21

04/25/2018 SIMATIC S7-1518 MFP

Unrestricted © Siemens AG 2018

eclipse

Advanced Controller – CPU 1518(F) MFP

Common Interface for Engineering

Inputs

Outputs

ST

EP

7 P

roje

kt

Communication, Shared Data

X1 X3 X2

TIA Portal

Engineering via

PROFINET-Interface X3

• Interface X3 can be used for download

and debugging with eclipse for the

C/C++ application.

• Interface X3-Port can be used for

download and online scenarios for the

STEP 7 project.*

*) possible alternatives are interface X1 and X2

RT 2

C+

+ A

pp

lication

CP

U R

untim

e:

ST

EP

7 p

roje

ct

RT 1

Page 22

04/25/2018 SIMATIC S7-1518 MFP

Unrestricted © Siemens AG 2018

Advanced Controller – CPU 1518(F) MFP

Memory Concept concerning User Data at CPU 1518(F) MFP

FWUpdate.S7S

(optional)

SIMATIC.S7S

S7_JOB.S7S

user.img

system.img

<root>

CppEnv1.MFP

data.img

RT 2

C+

+ a

pp

lication

CP

U R

untim

e:

ST

EP

7 p

roje

ct

RT 1

Central data storage on one SIMATIC Memory Card

Easy handling at hardware change:

• Common data storage for CPU and

C/C++ runtime on FAT32 data system

• Pre-condition:

min. 2GB SIMATIC Memory Card

• CPU runtime (STEP 7 project):

• Project files in the STEP 7 containers on

SMC

• C/C++ runtime (C/C++ application):

• 256 MB on SMC

• container in linux Ext4 file system:

• system.img for C/C++ runtime

• user.img for C++ applications

• data.img for user data

• Diagnostic alarms in CPU diagnostic

buffer if the file system is corrupted

Page 24

Unrestricted © Siemens AG 2018

Tim Parmer

Product Marketing Manager Advanced Controller

Factory Automaton – Digital Factory

5300 Triangle Parkway

Norcross, GA 30092

Phone: +1 770 871-3913

E-mail:

[email protected]

Thank you for your attention!

Subject to changes and errors. The information given in this document only contains general descriptions and/or performance features which may

not always specifically reflect those described, or which may undergo modification in the course of further development of the products. The requested

performance features are binding only when they are expressly agreed upon in the concluded contract.

All product designations, product names, etc. may contain trademarks or other rights of Siemens AG, its affiliated companies or third parties.

Their unauthorized use may infringe the rights of the respective owner.

siemens.com/tia-portal

Page 25 04/25/2018 SIMATIC S7-1518 MFP