14
For internal use only / © Siemens AG 2010. All Rights Reserved. GRAPH in STEP 7 V11 Programming in GRAPH For internal use only / © Siemens AG 2010. All Rights Reserved. Interlock and Supervision Exercise for GRAPH Compile and Testing Introduction GRAPH in STEP 7 V11

37 TIA Portal V11 Graph RelA0 En

Embed Size (px)

Citation preview

Page 1: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

GRAPH in STEP 7 V11

Programming in GRAPH

For internal use only / © Siemens AG 2010. All Rights Reserved.

� Interlock and Supervision

� Exercise for GRAPH

� Compile and Testing

� Introduction

GRAPH in STEP 7 V11

Page 2: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 3 GRAPH in STEP 7 V11

Interlock and

Supervision

Exercise for

GRAPH

Compile and

Testing

� Handling

� Generel

Introduction

Program development for sequential functions with SFC (S7-GRAPH)

� Graphic program development

� Structured program design

� Up to 50% time savings*

� Process description

� Easily readable, easily understandable

� Describe time sequences

� Steps

� Transitions

� Integrated diagnostic functions, e.g. monitoring

maximum time for executing a step

� Certified according to PLCopen Base Level

S7-400

WinAC

S7-300

S1Transport

S2Filling

Trans

T1

Step

Transition

Step

* compared to programming with equal functions with LAD, FBD, IL/STL

Sequential Function Chart (S7-GRAPH) for sequential process flows

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 4 GRAPH in STEP 7 V11

Interlock and

Supervision

Exercise for

GRAPH

Compile and

Testing

� Handling

� Generel

Introduction

Program development for sequential functions with SFC (S7-GRAPH)

A sequencer consists of a series of steps!

S1Transport

S2Filling

Trans

T1

Step

Transition

Step

Usage: The execution of a process can be divided into a number of step, either running sequentially or in parallel.

Transition = Condition for switching to next step

Within the steps, actions are formulated

Each sequencer requires an initial step

Each sequencer requires an end!

Page 3: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 5 GRAPH in STEP 7 V11

Interlock and

Supervision

Exercise for

GRAPH

Compile and

Testing

� Handling

� Generel

Introduction

Programming with GRAPH

Advantages:

� The Graph block cannot be overwritten in the language STL

unlike STEP 7 Classic!

FB

Local

A new GRAPH block

directly after creating

Favorite bar

Editor features

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 6 GRAPH in STEP 7 V11

Programming with GRAPH

The sequence view

Drag & Drop of

elements

Sequence view

Drop target for

Drag & Drop

SHIFT+F9Branch

SHIFT+F12Jump

SHIFT+F7Sequencer

end

SHIFT+F5Step

Elements Symbol Shortcut

Page 4: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 7 GRAPH in STEP 7 V11

Programming with GRAPH

The sequence view

Possible elements at

the particular position

Tasks in context menu:

� Define initial step

� Insert elements

� Renumber

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 8 GRAPH in STEP 7 V11

Programming with GRAPH

The sequence view

Graphical selection of the jump

target with the mouse

Selection of the jump

target within window

Steps can be moved or copied

with the mouse

Branches can be closed or

modified with the mouse

Graphical editing with the mouse:

� Close / modify branches

� Move / copy steps

� Select jump target

Page 5: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 9 GRAPH in STEP 7 V11

Programming with GRAPH

The single step view

Block call using

Drag & Drop

D&D of tags and

constants

Single step view

Block call using D&D

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 10 GRAPH in STEP 7 V11

Interlock and

Supervision

Exercise for

GRAPH

Compile and

Testing

� Handling

� Generel

Introduction

Programming with GRAPH

The single step view

Shortlist for events

Expand / collapse the description

action identifier

Actions can be programmed easily:

� Shortlist for action identifier

� Shortlist for events

� Templates for actions

Page 6: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 11 GRAPH in STEP 7 V11

Programming of a sequencer with GRAPH in STEP 7 V11

Live Demo

� Create Graph block

� Define sequencer using

� Favorite bar

� context menu

� Project jumps

� Graphical editing

For internal use only / © Siemens AG 2010. All Rights Reserved.

� Interlock and Supervision

� Exercise for GRAPH

� Compile and Testing

� Introduction

GRAPH in STEP 7 V11

Page 7: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 13 GRAPH in STEP 7 V11

Settings for the Graph Editor and Compiler

Settings are easier and less complex in contrast to S7-Graph V5.x

GRAPH in STEP 7 Prof V11S7- GRAPH V5.3

Compilation is

performed

automatically with

Standard FC72/73

Settings for Interface und

data block easier

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 14 GRAPH in STEP 7 V11

Interlock and

Supervision

Exercise for

GRAPH

Compile and

Testing

Introduction

Testing of a sequencer

Settings are better represented in contrast to S7-Graph V5.x

Task card

„Testing“

Semi automatic

GRAPH in STEP 7 Prof V11

S7- GRAPH V5.3

Manual mode

Select step

Page 8: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 15 GRAPH in STEP 7 V11

Interlock and

Supervision

Exercise for

GRAPH

Compile and

Testing

Introduction

Testing of a sequencer

Settings are better represented in contrast to S7-Graph V5.x

Task card

„Testing“

Settings for

synchronization

Active Step

Synchronized step

Transition true

Before activation,

you have to click

the proper step

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 16 GRAPH in STEP 7 V11

Testing of a sequencer

Further

settings for testing

Overview in the navigation

Actions

Logic of the transition

Track active step:

Currently active step is

always shown

Monitor

Task card

„Testing“

Page 9: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 17 GRAPH in STEP 7 V11

Testing of a sequencer with GRAPH in STEP 7 V11

Live Demo

� Monitor a sequencer

� Step through a sequencer

� Sequence control

� Using time functions

For internal use only / © Siemens AG 2010. All Rights Reserved.

� Interlock and Supervision

� Exercise for GRAPH

� Compile and Testing

� Introduction

GRAPH in STEP 7 V11

Page 10: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 19 GRAPH in STEP 7 V11

Interlock and

Supervision

Exercise for

GRAPH

Compile and

Testing

Introduction

Exercise: Graph sequencer

Hands-on

Graph-Sequencer:Fill-fruit-juice machine

Step: Mixer

Step: Transport to

machine part „Filling“

Action:

Mixer for 10 s ON

(Output Q0.1)

Action:

Conveyer belt ON (Output

Q0.0)

Step: Transport to Mixer

Action:

Conveyer belt ON (Output Q0.2)

Transition:

Mixer reached (Input

I0.0)

Conveyer belt not busy

(I0.1) and Step Mixer 11s

active

Filling reached (Input

E0.2)

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 20 GRAPH in STEP 7 V11

Interlock and

Supervision

Exercise for

GRAPH

Compile and

Testing

Introduction

Exercise: Graph sequencer

Hands-on

Graph-Sequencer:Fill-fruit-juice machine

Step: Mixer

Step: Transport to

machine part „Filling“

Action:

Mixer for 10 s ON

(Output Q0.1)

Action:

Conveyer belt ON (Output

Q0.0)

Step: Transport to Mixer

Action:

Conveyer belt ON (Output Q0.2)

Transition:

Mixer reached (Input

I0.0)

Conveyer belt not busy

(I0.1) and Step Mixer 11s

active

Filling reached (Input

E0.2)

Page 11: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

� Interlock and Supervision

� Exercise for GRAPH

� Compile and Testing

� Introduction

GRAPH in STEP 7 V11

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 22 GRAPH in STEP 7 V11

Interlock and

Supervision

Exercise for

GRAPH

Compile and

Testing

Introduction

Interlock and Supervision

S1Transport

S2Filling

Trans

T1

Step

Transition

Step

Transition = Condition for switching to next step

Within the steps, actions are formulated

Each sequencer needs an Initial Step

Page 12: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 23 GRAPH in STEP 7 V11

Interlock and

Supervision

Exercise for

GRAPH

Compile and

Testing

Introduction

Interlock und Supervision: additional functions in a Step

S2Filling Step

Alarm

optional

Within the steps, actions are formulated

Optional: Action will be only executed, if the

interlock condition is true.

Interlock function contains the logic for

the condition

Supervision function

is watching your steps

Alarm

optional

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 24 GRAPH in STEP 7 V11

Interlock and

Supervision

Exercise for

GRAPH

Compile and

Testing

Introduction

Interlock and Supervision easily engineered

Interlock condition

Expand / Collapse

Drag & Drop of

elements

Indicator Interlock

Indicator Supervision

Page 13: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 25 GRAPH in STEP 7 V11

Interlock and Supervision: Online representation at a glance

Supervision error

Interlock error

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 26 GRAPH in STEP 7 V11

Interlock und Supervision:

How to configure alarms

Activate alarms

Acknowledge on HMI

Set the focus on

Supervision or Interlock …

… add an individual text for the alarm

… in Properties …

Generic text for the alarmConfiguration

of the alarms

Page 14: 37 TIA Portal V11 Graph RelA0 En

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS2 FAPage 27 GRAPH in STEP 7 V11

Interlock and Supervision:

How to configure alarms

Create an alarm class

in “Common data”

Choose the proper

alarm class in

PLC alarms

Enable the alarm class

in your HMI

For internal use only / © Siemens AG 2010. All Rights Reserved.

I IA AS CS 2 FA

Gleiwitzerstr.555

90475 Nürnberg

Phone: +49 (911) 895 - 4646

E-Mail: [email protected]

Thank you for your attention!