Top Banner
1 Klöpper und Wiege Software GmbH D 32657 Lemgo 21.03.22 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram
18

1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

Dec 22, 2015

Download

Documents

Willa Atkinson
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

1 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

Welcome, Ladies and Gentlemen !

SPS/IPC/DRIVES/

IEC 61131 - 3 TutorialFunction Block Diagram

Page 2: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

2 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

Who is Who ?

Götz JäckelTechnical Trainersince 1989 at KW-Software

SoftwareKW-Software GmbHD-32657 Lemgosince 1981 PLC Automation Softwarewww.kw-software.de

Page 3: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

3 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

The Program

The Example: My Flipflop

The Entry: What are the advantages of FBD ?

The Overview: What are the elements of FBD ?

The Execution: What are the execution rules ?

The Standard: What's the range of standard elements ?

The Individualist: What's possible beyond the standard ?

Page 4: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

4 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

An Example

Page 5: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

5 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

Advantages (4 of all)

• Simultanous programming and documenting (overview, comments, reliability, information flow)

• Universal applicability (Signal processing, numeric, arithmetic, integer, floating point)

• Structured programming (define and call subroutines)

• Standardized set of Functions and Function Blocks

Page 6: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

6 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

The Elements - Overview

Page 7: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

7 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

Elements - Lines

horizontal, verticalflow directioncrossing with / without contact

Page 8: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

8 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

Elements - Fus, FBs, Variables

FunctionsFunctions BlocksInput / Output Variables

Page 9: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

9 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

Elements - Parametrization

• Negation• Duplication

• Implicit edge detection• Formal Parameters• Actual Parameters

Page 10: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

10 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

Elements - additionals

Jumps

• Connectors

Page 11: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

11 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

Execution rules

1. An element is executed, when all its inputs have been calculated.2. An element is completely evaluated, when all outputs are calculated.3. The evaluation of network is finished, when all its output values are calculated.

Page 12: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

12 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

Feedback

implicite explicite

standardized execution order IEC 61131: depends on implementatione.g. KW-Software:• display of a warning message• indication of the execution order

Page 13: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

13 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

Standard Functions

IEC 61131:"If you know one standard system,

you know them all."

Page 14: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

14 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

Standard Function Blocks

Communication FBs are described in IEC 61131 - 5

Page 15: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

15 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

User Functions and Function Blocks

An example:

1. Change the Flipflop from a PROGRAM to a Function Block.2. Call the new user FB from annother PROGRAM.

Page 16: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

16 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

User FB I: Formal Parameters

Change the declaration type from VAR / VAR_EXTERNAL to VAR_INPUT resp. VAR_OUTPUT

Page 17: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

17 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

User FB II: Insert the User FB

The new FB can be used like IEC 61131-3 FBs.

Page 18: 1Klöpper und Wiege Software GmbH D 32657 Lemgo02.07.2015 Welcome, Ladies and Gentlemen ! SPS/IPC/DRIVES/ IEC 61131 - 3 Tutorial Function Block Diagram.

18 Klöpper und Wiege Software GmbH D 32657 Lemgo 19.04.23

User FB III: It works !