“extending” the automation toolbox: introduction to twincat 3 software and extended automation

49
“eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Upload: design-world

Post on 02-Jul-2015

782 views

Category:

Technology


4 download

DESCRIPTION

eXtended Automation, the core principle of TwinCAT 3 adds numerous enabling tools to the lineup of technologies already established in the TwinCAT platform. While the bases for automation, PLC, motion control, robotics and HMI programming have been well-covered in TwinCAT for many years, version 3 adds the opportunity to use Object-Oriented programming, C/C++, Matlab®/Simulink®, software-based safety and more, all in a standardized Microsoft Visual Studio®-based shell. Of course, all of the IEC 61131-3 programming languages are usable in TwinCAT 3 so programmers can select the languages and tools that are best-suited to each application. This educational seminar will provide a technical overview of the primary elements of TwinCAT 3 and eXtended Automation technology. Watch this webinar to learn the latest automation programming tools made available by TwinCAT 3 including: Visual Studio-enhanced programming environment IEC 61131-3 3rd edition update Object-oriented programming C/C++ programming options Matlab®/Simulink® integration

TRANSCRIPT

Page 1: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

“eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software

and eXtended Automation

Page 2: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

This webinar will be available afterwards at

designworldonline.com & email

Q&A at the end of the presentation

Hashtag for this webinar: #DWwebinar

Before We Start

Page 3: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Moderator

Leslie Langnau Design World

Presenter

Robert Trask Beckhoff Automation

Page 4: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Introduction to TwinCAT 3 software and eXtended Automation

“eXtending” the Automation Toolbox

Robert Trask, PE

TwinCAT Specialist

Beckhoff Automation

Page 5: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

IPC I/O Automation Motion

New Automation Technology

PC-based Control

Page 6: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

1. Introduction

2. eXtended Automation (XA)

3. Connectivity

4. Migration

5. Functions

6. Product overview

eXtended Automation

Contents

Page 7: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Main Features

Scalability: in Hardware and in Software

Openness: tools (ADS) to share information (.h, .dll, .NET, also Java, NI, Delphi,

Support of all major fieldbus technologies

Real time: Beckhoff real time extension for Microsoft OS, high determinism, low jitter

Complete control system: from I/O to CNC and Robotics

Motion control without special hardware

What customers liked:

Complete and scalable solution

Feasible for many different areas

Fieldbus openness and support of different supplier I/O and drives

Ease of networking and sharing data

Ability to freely run other software on control system without affecting control

eXtended Automation

TwinCAT 2.x, a success story since 1996

Page 8: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Wishes from customers:

Integration: one tool, one project

C/C++ support for real time applications: reuse of existing code

Matlab/Simulink: known in universities, reuse of existing Simulink code

Support of latest generation PC hardware: Multicore, 64bit

Modular software design: use of ready to use modules without programming

Handle complex software: more and more software in the machine

Support object orientation: new in IEC61131-3 3rd Edition

Migration: easy migration from TwinCAT 2 to TwinCAT 3

Compatibility: Use TwinCAT 2 code (including libraries) in TwinCAT 3

Keep the free visualization, quick to make simple screens for debugging

ADS works, don’t change a thing!

Better version control

More modern look and feel to code editors

eXtended Automation

TwinCAT 3.x wish list

Page 9: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Beckhoff PC-based Control:

Setting New Standards in Automation

PC-Hardware

Feldbus

TwinCAT-

Software

I/O TwinSAFE PLC Control Control (PID)

Connectivity

NC PTP CNC Robotics Measurement Technology

NC I

Base

Motion

TwinCAT 3

Motivation

Page 10: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Integration of PLC, Motion and HMI into one software on one CPU:

Minimize hardware

faster cycle times

reduced interface complexity

better diagnosis

PC Control offers an “open” control system

abstraction as a principle

functions in software & independent from hardware

scalable performance and cost by selection of standard CPUs

powerful operating systems add IT functions to automation solutions

automation and IT world share the same benefits:

performance increase

cost decrease

TwinCAT 3

Motivation

Page 11: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

TwinCAT 3

PC-based Control Milestones

Page 12: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Industry 4.0

The “fourth industrial revolution”

Heavy focus on intelligent, networked systems

Convergence of information technology (IT) and automation technology (AT)

Idea heavily promoted in Germany/Europe by government and industry

The Internet of Things The development of Internet-like structures to identifiable objects

Term coined by Kevin Ashton of MIT and has become popularized by companies such as

Oracle, IBM and SAP

TwinCAT 3

PC-based Control Milestones

Page 13: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

1. Introduction

2. eXtended Automation (XA)

3. Connectivity

4. Migration

5. Functions

6. Product overview

eXtended Automation

Contents

Page 14: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Architecture (XAA)

Engineering (XAE)

System Manager

PLC

Motion Control

C/C++ programming

Matlab® integration

C#/.NET programming

Runtime (XAR)

TwinCAT 3

eXtended Automation (XA)

Page 15: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

eXtended Automation

Engineering (XAE)

Page 16: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

eXtended Automation Engineering

Features

TwinCAT 3 – extended, modular engineering tool

One programming environment, one project file, one debug environment

Integrated TwinCAT System Manager

Programming according to IEC 61131-3 3rd edition

(including NEW object orientation extensions)

Cyclically execute C and C++ with deterministic access to remote I/O

Matlab®/Simulink®

Migration of TwinCAT 2 projects

IDE = Microsoft Visual Studio® 2010/2012

Page 17: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

TwinCAT 3 Standard

using the Microsoft Visual Studio®

shell

for PLC programmers and users of

existing modules

configuring, setting up and diagnosis

debugging PLC

TwinCAT 3 Engineering Environment

System Manager Configuration – I/O – PLC – MC – NC – CNC – Safety – others

Programming

IEC

61131 Object-

oriented

extensions

IEC Compiler

TwinCAT 3 Runtime

TwinCAT Transport Layer – ADS

.NET

C++

Powershell

IronPytho

n

CO

M

eXtended Automation Engineering

Scalable Functionality

Page 18: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

TwinCAT 3 Integrated

Integration into Microsoft Visual Studio®

2010

for PLC and C/C++ programmers

configuring, setting up and diagnostics

module generation (C/C++ or

Matlab®/Simulink®)

debugging PLC, C/C++,

Matlab®/Simulink®

code generation

debugging

upload of TC modules

Caption:

eXtended Automation Engineering

Scalable Functionality

Page 19: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

TwinCAT 3 framework = Microsoft Visual Studio® 2010/2012

usage of the most common programming environment

maintained by a company

extendable via plug-ins

link to common source control software

usage of C and C++ for programming automation devices

usage of .NET languages for non-real-time applications

(e.g. HMI)

improved help system

eXtended Automation Engineering

Workbench Integration

Page 20: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Simultaneous programming according to IEC 61131 and C++

eXtended Automation Engineering

Free Choice in Programming Languages

Page 21: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Mapping of process images

open for all common fieldbuses

support of all PC hardware interfaces

easy commissioning and diagnosis

assignment of logical and physical process images

Changes of the bus system do not require a change of

the PLC code.

TwinCAT process images

eXtended Automation Engineering

TwinCAT I/O – Integrated System Manager

Page 22: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Shared tree structure for hard- and software

Programming language-

dependent toolbox

Shared output window

of all languages

eXtended Automation Engineering

TwinCAT 3 PLC

Page 23: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

eXtended Automation Engineering

TwinCAT 3 Motion Control – Abstraction Layer

Page 24: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

eXtended Automation Engineering

TwinCAT 3 Motion Control – From PTP to Robot Control

Page 25: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

reuse of existing C/C++ code

cooperation of C/C++ and PLC code

real-time applications for all platforms (CE, XP,…)

opens new areas – not standard PLC users

well-known programming language

standardised (C: ISO/IEC 9899 TC3, C++: IEC 14882)

generation of Automation Device Drivers (ADD) enables to implement own drivers (e.g.

fieldbus drivers)

Beckhoff SDK provides the functionality (like PLC libraries) for

ADS, File I/O, Motion

Application areas

image processing, robotics, measurement technology

eXtended Automation Engineering

C/C++ Programming Languages

Page 26: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Method CycleUpdate:

– is called cyclically

Logical input/output

image

eXtended Automation Engineering

C/C++ Programming Languages

Page 27: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

eXtended Automation Engineering

Matlab®/Simulink® Integration

Page 28: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

eXtended Automation Engineering

Matlab®/Simulink® Integration

Page 29: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Well-known programming languages

Standardized C# (ISO/IEC 23270)

Creates intermediate code (Common Intermediate Language – CIL)

Benefits:

Efficient engineering with higher abstraction level

Widely accepted

“Garbage collection” organised on the memory.

Could now be handled as part of one integrated solution

Restrictions:

Garbage collector is not suitable for real-time applications.

eXtended Automation Engineering

.NET Programming Languages (e.g. C#)

Page 30: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

eXtended Automation Engineering

C# and .NET Programming

Page 31: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

eXtended Automation Engineering

Rutime (XAR)

Page 32: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

eXtended Automation Runtime

Multi-core Support

Page 33: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

distribution of projects to cores (e.g. PLC, NC, Motion Control and HMI run on different

cores)

scalable base time for each core

scalable CPU usage for each core

eXtended Automation Runtime

Support of Multi-core Systems

Page 34: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Enables cores for

real-time usage

Defines the base

time for a core

Defines the CPU-

usage limit

Assignment of a task

to a CPU

eXtended Automation Runtime

Support of Multi-core Systems

Page 35: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

1. Introduction

2. eXtended Automation (XA)

3. Connectivity

4. Migration

5. Functions

6. Product overview

eXtended Automation

Contents

Page 36: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Connectivity

Solutions For Many Different Areas

Page 37: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Consistent, vertical, horizontal

Cyclical/event-driven

Data exchange and/or commands

Open protocol with example code

Available for major Windows platforms

Access from PLC via function blocks

Routable via: local/network

Components free of charge

OCX/DLL/.NET/

Script/Web service

Connectivity

Tools that Enable Industry 4.0

Page 38: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Connectivity

Tools that Enable Industry 4.0

Page 39: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

1. Introduction

2. eXtended Automation (XA)

3. Connectivity

4. Migration

5. Functions

6. Product overview

eXtended Automation

Contents

Page 40: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Conversion of an existing TwinCAT 2 project into the TwinCAT 3 format:

integrated converter for TwinCAT 2 projects (System Manager & PLC Control)

extension of the projects with new functionalities

higher reusability of existing code parts in new projects

use of the same tool for all projects/applications

eXtended Automation

TwinCAT 2 to TwinCAT 3 Migration

Page 41: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

1. Introduction

2. eXtended Automation (XA)

3. Connectivity

4. Migration

5. Functions

6. Product overview

eXtended Automation

Contents

Page 42: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

TwinCAT Functions offer a broad range of different add-ons that can

also be used for TwinCAT 3!

Communication

OPC UA, Modbus, Telecontrol, Serial

Controller implementations

Controller Toolbox, Temperature Control

Engineering tools

ECAD Import, Source Code Management

Diagnosis/Measurement technology

Scope 2

Functions

Continuity

Page 43: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

only one software for programming and configuration

Visual Studio® integration

more freedom in the choice of programming language

support for the object-oriented extension of IEC 61131-3

use of C/C++ as the programming language

link to Matlab®/Simulink®

open interfaces for expandability and adaptation to existing tool landscape

faster and more flexible runtime environment

configuration of binary PLC/C++/Matlab® runtime modules

active support of multi-core and 64-bit systems

migration of TwinCAT 2 projects

Functions

TwinCAT 3 Tools and Highlights

Page 44: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

1. Introduction

2. eXtended Automation (XA)

3. Connectivity

4. Migration

5. Functions

6. Product overview

eXtended Automation

Contents

Page 45: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

TwinCAT 3

Convergence of Technologies Leads to Industry 4.0

Page 46: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

For further information visit:

www.beckhoff.com/TwinCAT3

Beckhoff | New Automation Technology

Thank you for your time!

© Beckhoff Automation GmbH

All images are protected by copyright. The use and transfer to third parties is not permitted.

Beckhoff®, TwinCAT®, EtherCAT®, Safety over EtherCAT®, TwinSAFE®, XFC® and XTS® are registered

trademarks of and licensed by Beckhoff Automation GmbH. Other designations used in this presentation

may be trademarks whose use by third parties for their own purposes could violate the rights of the

owners.

The information provided in this presentation contains merely general descriptions or characteristics of

performance which in case of actual application do not always apply as described or which may change as

a result of further development of the products. An obligation to provide the respective characteristics shall

only exist if expressively agreed in the terms of contract.

Page 47: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Questions?

Design World Leslie Langnau [email protected] Phone: 440.234.4531 Twitter: @DW_3DPrinting

Beckhoff Automation Robert Trask [email protected] Phone: 760.525.7376 Twitter: @TwinCAT3

Page 48: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation

Thank You

This webinar will be available at designworldonline.com & email

Tweet with hashtag #DWwebinar

Connect with

Discuss this on EngineeringExchange.com

Page 49: “eXtending” the Automation Toolbox: Introduction to TwinCAT 3 Software and eXtended Automation