Вы находитесь на странице: 1из 50

New Automation Technology

23.06.2014

eXtended Automation (XA) - overview

Architecture (XAA)

Engineering (XAE)
Runtime (XAR)

TwinCAT 3 | Overview

23.05.2012

eXtended Automation (XA)


Architecture (XAA)
eXtended
Architecture (XAA)

TcCOM

Safety

C++
modules

TcCOM

TcCOM

TcCOM

eXtended
Automation
Runtime (XAR)

PLC

TcCOM

Modular runtime system


NC

TwinCAT 3
eXtended
Automation (XA)
eXtended
Automation
Engineering (XAE)

TwinCAT 3 development environment


based on Visual Studio 2010
TwinCAT 3
Standard

TwinCAT 3
Integrated

Visual Studio
2010 Shell

Visual Studio
2010

23.05.2012

eXtended Automation (XA)


Architecture (XAA) - notebook example (XAE) CX
eXtended
Automation
Engineering (XAE)

TwinCAT 3 development environment


Visual Studio 2010
TwinCAT 3
Standard

TwinCAT 3
Integrated

Visual Studio
2010 Shell

Visual Studio
2010

eXtended
Automation
Runtime (XAR)

TwinCAT 3 | Overview

23.05.2012

eXtended Automation (XA)


Architecture (XAA) - notebook example (XAE) CX
Ethernet interface used as
programming interface

eXtended
Automation
Runtime (XAR)

TcCOM

Safety

C++
modules

TcCOM

TcCOM

TcCOM

PLC

TcCOM

Modular runtime system


NC

EtherCAT

TwinCAT 3 | Overview

23.05.2012

eXtended Automation (XA)


Architecture (XAA) - notebook example (XAE) CX
TwinCAT 3 development environment on
notebook

TwinCAT 3 runtime on CX /IPC

TwinCAT 3
Standard / Integrated
TwinCAT Transport Layer - ADS
TwinCAT 3 Runtime
Real-time Kernel

Simulink
PLC
modules

C++
PLC
modules

PLC
PLC

IO

TwinCAT Transport Layer - ADS

CNC
PLC

TwinCAT 3 | Overview

23.05.2012

eXtended Automation (XA)


Architecture (XAA) - notebook example (XAE) CX
TwinCAT 3 development
environment PC

TwinCAT 3 runtime on CX /IPC

TwinCAT 3
Standard / Integrated

TwinCAT Transport Layer - ADS

Real-time Kernel
CNC
PLC

Simulink
PLC
modules

C++
PLC
modules

PLC
PLC

IO

TwinCAT Transport Layer - ADS

TwinCAT 3 Runtime

Config Mode:
to enable communication (programming)

XAE status
PC
taskbar

scanning of hardware / IO test in Freerun


Run Mode : PLC NC IO etc. operate in real-time

TwinCAT 3 | Overview

23.05.2012

eXtended Automation (XA)


Architecture (XAA) - notebook example (XAE) CX

TwinCAT XAE displays TwinCAT


state on the target system

TwinCAT on the target computer


(CX / IPC)

PC taskbar

The target computer


must be in the RUN
state in order to logon
to the PLC

Real-time load in %

TwinCAT 3 | Overview

23.05.2012

Establishment of a connection

Practical part

Establishment of a
connection

TwinCAT 3 | Overview

23.05.2012

Establishment of a connection
Requirement: TC3 is successfully installed on the programming computer and the
target computer
Hardware with PC (XAE)
Target system CX with BK1120 Bus Station

23.06.2014

10

Hardware
Example hardware
PC with TwinCAT3 XAE,
CX with EtherCAT
adaptor
TwinCAT3 XAE / XAR on
the same computer
(local)
BK1120 Bus Coupler
2* KL1XX2 2-CHANNEL
DIG IN
2* KL2XX4 4-CHANNEL
DIG OUT
1* KL2531 Stepper
Terminal
23.06.2014

11

Starting the VS2010 / 2010 shell


Taskbar TwinCAT
VS2010 symbol

23.06.2014

12

Enter higher-level headline

Starting the VS2010 / 2010 shell


New Project
XAE Project

23.06.2014

13

Setting the target system

23.06.2014

14

Establishment of a connection
To search, first select Local Target System

23.06.2014

15

Establishment of a connection

searches for
TC
controllers
IPC/ CX

Connection
to both
devices
(enter PC
target
system)

23.06.2014

16

Establishment of a connection
Logon information: user name and password for computer.
Training CX 1020
CX training:

Administrator
1

23.06.2014

17

Establishment of a connection

Connection valid

23.06.2014

18

Establishment of a connection

23.06.2014

19

Status of connection establishment


TwinCAT XAE displays TwinCAT
state on the target system

TwinCAT on the target computer


(CX / IPC)

PC taskbar

23.06.2014

20

State of the TwinCAT symbol


TwinCAT XAE displays TwinCAT
state on the target system

The TwinCAT system on the XAE


computer must be in the Config
Mode for logging on.

The target system must


be in Config Mode for
scanning and freerun test
of the hardware

The target computer must


be in the RUN state in
order to logon to the PLC
later

Run Mode is also possible if the XAE computer


simultaneously represents a control computer (XAR)

23.06.2014

21

Scan and Freerun

Practical part

Hardware test

Scanning
Freerun Mode

TwinCAT 3 | Overview

22

23.05.2012

Enter higher-level headline

Scan Hardware
Check Config
Mode, activate
Config Mode if
necessary

Scan

23.06.2014

23

Enter higher-level headline

Scan Hardware
Scan Hardware

23.06.2014

24

Enter higher-level headline

Freerun
In Freerun Mode,
I/O can be tested
without PLC program

23.06.2014

25

PLC Program

Practical part

Create PLC program

Generate global variables


Linkage with the hardware

TwinCAT 3 | Overview

26

23.05.2012

Enter higher-level headline

Add PLC project


Create PLC project

23.06.2014

27

Enter higher-level headline

Global Variable List


PLC project from
template
Generate global variable
list

23.06.2014

28

Enter higher-level headline

Global Variable List


Name

23.06.2014

29

Enter higher-level headline

Global Variable List


Create global variables

23.06.2014

30

Enter higher-level headline

Linking
Link

23.06.2014

31

Enter higher-level headline

Linking
Link

23.06.2014

32

Enter higher-level headline

Linking
Further links

23.06.2014

33

Enter higher-level headline

Activate
Activating the
configuration
Wait for Run Mode

23.06.2014

34

Enter higher-level headline

Activate
If TwinCAT XAR is not
registered, a 7-day
licence can be created

23.06.2014

35

Enter higher-level headline

Login
Logon to PLC project

Login

Start
PLC

PLC
Online

PLC RUN

23.06.2014

36

Online

XAE offline + PLC not in Run Mode


XAE online + PLC not in Run Mode
XAE offline + PLC in Run Mode
XAE online + PLC in Run Mode

TwinCAT in Run Mode

Enter higher-level headline

Monitoring
Global variables online

Write
Values

23.06.2014

38

Enter higher-level headline

Extending the program


Logout
Create FB

23.06.2014

39

Enter higher-level headline

Extending the program


Create FB

23.06.2014

40

Enter higher-level headline

Extending the program


Edit FB
Toolbox: VIEW>TOOLBOX

23.06.2014

41

Enter higher-level headline

Extending the program


Edit FB
Adapt connection with
Set output connection

23.06.2014

42

Enter higher-level headline

Extending the program


Edit FB
Adapt connection with
Set output connection

23.06.2014

43

Enter higher-level headline

Extending the program


Call block in Main (ST)
with input assistant and
Auto Declare

23.06.2014

44

Enter higher-level headline

Extending the program


Call block in Main (ST)
with input assistant
and Auto Declare

23.06.2014

45

Enter higher-level headline

Extending the program


Call block in Main (ST)
with input assistant
and Auto Declare
Configure input and
output

23.06.2014

46

Autostart

Practical part

Settings for automatic start of


the XAR

Activate boot project


Enable boot project start
Set TwinCAT autostart for
RUN

TwinCAT 3 | Overview

47

23.05.2012

Enter higher-level headline

Autostart
Boot project
Enable autostart
Creating a boot project

23.06.2014

48

Enter higher-level headline

Autostart
TwinCAT autostart

23.06.2014

49

Enter higher-level headline

Autostart
User name and
password for the
control computer

23.06.2014

50

Вам также может понравиться