Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 1 XSoft.

Slides:



Advertisements
Ähnliche Präsentationen
Die deutsche Satzstellung
Advertisements

R. Zankl – Ch. Oelschlegel – M. Schüler – M. Karg – H. Obermayer R. Gottanka – F. Rösch – P. Keidler – A. Spangler th Expert Meeting Business.
Schutzvermerk nach DIN 34 beachten 05/01/14 Seite 1 XSoft_d.
Strukturierter Text.
Moeller XSystem - Grundlagen
Laurie Clarcq The purpose of language, used in communication, is to create a picture in the mind and/or the heart of another.
Institut AIFB, Universität Karlsruhe (TH) Forschungsuniversität gegründet 1825 Towards Automatic Composition of Processes based on Semantic.
| DC-IAP/SVC3 | © Bosch Rexroth Pneumatics GmbH This document, as well as the data, specifications and other information set forth in.
Tage der Woche German Early Level Montag Dienstag Mittwoch Donnerstag
CALPER Publications From Handouts to Pedagogical Materials.
Ein Projekt des Technischen Jugendfreizeit- und Bildungsvereins (tjfbv) e.V. kommunizieren.de Blended Learning for people with disabilities.
Universität StuttgartInstitut für Wasserbau, Lehrstuhl für Hydrologie und Geohydrologie Copulas (1) András Bárdossy IWS Universität Stuttgart.
Schutzvermerk nach DIN 34 beachten 02/04/15 Seite 1 Grundlagen XSoft.
Konjunktionen & Indirekte Fragen {Conjunctions}
Institut für Angewandte Mikroelektronik und Datentechnik Phase 5 Architectural impact on ASIC and FPGA Nils Büscher Selected Topics in VLSI Design (Module.
Schutzvermerk nach DIN 34 beachten Aufbau der Bausteine und deren Aufruf.
The prepositions in and an Two way prepositions. What are two-way prepositions? 0 A set of prepositions can take the dative or the accusative case: "an",
Schutzvermerk nach DIN 34 beachten Abgeleitete Datentypen.
Synchronization: Multiversion Concurrency Control
SiPass standalone.
Schutzvermerk nach DIN 34 beachten MI4 – Recipes.
Schutzvermerk nach DIN 34 beachten 16/04/15 Seite 1 A200 XSoft für Umsteiger.
Literary Machines, zusammengestellt für ::COLLABOR:: von H. Mittendorfer Literary MACHINES 1980 bis 1987, by Theodor Holm NELSON ISBN
Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 1 Rainer.
Schutzvermerk nach DIN 34 beachten 22/04/15 Seite 1 XSoft Solution: Delayed activation Standard libraries and their use.
Arbeiten in einem agilen Team mit VS & TFS 11
Schutzvermerk nach DIN 34 beachten 24/04/15 Seite 1 A200 XSoft für Umsteiger.
Schutzvermerk nach DIN 34 beachten XSoft: Einführung.
What is a “CASE”? in English: pronouns, certain interrogatives
What is a “CASE”? in English: pronouns, certain interrogatives
type / function / form type of words:
Schutzvermerk nach DIN 34 beachten 19/07/15 Seite 1 Rainer.
The Journey to America… The Immigrant Experience.
Schutzvermerk nach DIN 34 beachten 25/07/15 Seite 1 Grundlagen XSoft.
1 Konica Minolta IT Solutions Prinzip Partnerschaft MANAGED MONITORING ÜBERWACHJUNG DER SERVERINFRASTRUKTUR UND ANWENDUNGEN DIREKT AUS DER CLOUD.
Gregor Graf Oracle Portal (Part of the Oracle Application Server 9i) Gregor Graf (2001,2002)
Lecture slides for Training Curriculum TIA Portal
EUROPÄISCHE GEMEINSCHAFT Europäischer Sozialfonds EUROPÄISCHE GEMEINSCHAFT Europäischer Fonds für Regionale Entwicklung Workpackage 5 – guidelines Tasks.
Berliner Elektronenspeicherring-Gesellschaft für Synchrotronstrahlung m.b.H., Albert-Einstein-Straße 15, Berlin frontend control at BESSY R. Fleischhauer.
Kapitel 2 Grammar INDEX 1.Subjects & Verbs 2.Conjugation of Verbs 3.Subject Verb Agreement 4.Person and Number 5.Present Tense 6.Word Order: Position of.
Memorisation techniques
Kapitel 8 Grammar INDEX 1.Command Forms: The Du-Command Form & Ihr- Command 2.Sentences & Clauses.
EUROPÄISCHE GEMEINSCHAFT Europäischer Sozialfonds EUROPÄISCHE GEMEINSCHAFT Europäischer Fonds für Regionale Entwicklung Workpackage 5 – guidelines Tasks.
Der die das ein eine ein Wie sagt man “the” auf Deutsch? Wie sagt man “a” auf Deutsch?
What’s the odd one out and why? TeeBananenBier Orangensaft WasserMilsch KaffeeFisch PizzaSalatSchokoladeSandwich SchokoladeOrangenZitronenApfel PizzaFischOrangeChips.
DAS HABE ICH GESTERN GEMACHT! I DID HAVE DONE THAT YESTERDAY! Das Perfekt-Präsens.
Essay structure Example: Die fetten Jahre sind vorbei: Was passiert auf der Almhütte? Welche Bedeutung hat sie für jede der vier Personen? Intro: One or.
Linde AG : Transparent data enable efficient plant engineering
Interrogatives and Verbs
Freizeit Thema 5 Kapitel 1 (1)
Azure Countdown Wenn der Freund und Helfer Freunde und Helfer braucht: Sichere Content-Upload-Plattform für Bürger.
Sentence Structure Connectives
Cryo-Test LESER Test Bench
Aspect-Oriented Programming: Fad or the Future
Process and Impact of Re-Inspection in NRW
Das Taschentuch-Spiel
Get your Project started
To English Translations
מבוא למערכות מחשב ואסמבלי
ELECTR IC CARS Karim Aly University of Applied Sciences.
type / function / form type of words:
Official Statistics Web Cartography in Germany − Regional Statistics, Federal and European Elections, Future Activities − Joint Working Party meeting.
CSL211 Computer Architecture
OFFICE 365 FOCUS SESSION SHAREPOINT ONLINE 101:LERNE DIE BASICS 19. März 2018 Höhr-Grenzhausen.
Integrating Knowledge Discovery into Knowledge Management
Practical Exercises and Theory
Ich - Projekt Due Monday, September 19..
- moodle – a internet based learning platform
 Präsentation transkript:

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 1 XSoft

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 2 XSoft Agenda Programming with Moeller XSoft IEC-Basics and basic logic circuits The elementary data types Derived Data Types Application structure and variable scope POU composition Standard libraries and their use Continuous Function Chart Management of global variables in XSoft Structured Text

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 3 XSoft Agenda Task management in the XSoft Test and Commissioning Address structure according to IEC Erzeugen einer Symboldatei

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 4 XSoft Programming with Moeller XSoft

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 5 XSoft Develop efficiently with XSoft Two parts: Programming according to the international standard IEC Learning about the XSoft features Using the programming features and benefits for the hardware of the XSystem Objective of the workshop

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 6 XSoft Moeller Automation System PS40 XSystem MI4MV4XI/ONWINbloc IEC DFx/DVxMotionXI/OC Scope of application

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 7 XSoft XVision XControl XMotion XSoft XSoft:

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 8 XSoft  Programming languages: IL, ST, LD, FBD, SFC and CFC  Integrated fieldbus configurators für CAN, DP, XI/ON, XIO  Extensive libraries  Online functions (Online- change, Insertion of new variables, Tracing etc.)  Integrated visualization for XVision XSoft: Summary

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 9 XSoft IEC-Basics and basic logic circuits

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 10 XSoft 1. General information 2. Equipment requirements and tests 3. Programming languages 4. User guidelines 5. Messaging service specification 6. (not used) 7. Fuzzy IEC EN Overview

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 11 XSoft IEC How data is declared the structure of an application the syntax and the semantics of five different programming languages The international standard defines: XSoft is an IEC programming system!

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 12 XSoft Supplier independent programming Reduction of software investment thanks to re-usable function blocks Reduced training effort Arguments for IEC systems

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 13 XSoft Overview of the programming languages Automation project LD / FBD IL ST SFC

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 14 XSoft Label END:LD% IX0.0 or Motor1_ON Comment (* Feeder raw parts *) Direct or Symbolic IL - the programming line structure in instruction list

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 15 XSoft JMP JMPC JMPCN Jump/Branch Operators & &N AND ANDN OR ORN XOR XORN Logic Operators ADD DIV MUL SUB Arithmet. Operators CAL CALC CALCN RET RETC RETCN Calls & Returns EQ GE GT LE LT NE Comparators LD LDN ST STN S R Assignment operators Operators

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 16 XSoft Variable names must not contain national symbols (ä, ü, ö), blanks or hyphens ! Variable names must not begin with a number ! Variable names and file (program) names MUST differ ! Keywords must not be used as variable names ! Sample: A variable named LT (e.g. for the function „lamp test“) will lead to an error message because LT is the reserved keyword for a comparator ! (LT=Less Than) Stör-M1:BOOL Stoer_M1:BOOL 1_Start:BOOL Start_1:BOOL Pump:BOOL Pump1:BOOL Pump.POE LT:BOOL L_Test:BOOL Hints for the use of identifiers

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 17 XSoft Chose your variable name in a way that they are self-explanatory. Use a capital letter as the first letter and use small letter for the rest. Separate variable names consisting of several word by underscores between the words and start each word with a capital letter. When working with brackets please use indentions for each level. e.g. use one TAB for each new bracket level. Always put jump labels in a separate line and highlight them by e.g. framing them with comments All below mentioned hints serve the purpose of making your programs easy to read and give them a well-defined structure: Hints for the creation of programs

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 18 XSoft & & > = > = Result LD AND OR ( AND ( OR ) ) ST Result LD ( LD LD AND ST LD AND ( ( AND ) Value Value2 Value3 Value4 Value5 1 Value Value2 Value3 Value4 Value5 1 Value Value2 X Value X 1 X Value5 X Working with brackets

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 19 XSoft Standard operators Programming in LD (Ladder diagram)

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 20 XSoft Storing within networks Direct support via menu bar Enable networks at FB inputs Specialities in the LD / FBD editors

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 21 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 22 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 23 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 24 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 25 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 26 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 27 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 28 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 29 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 30 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 31 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 32 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 33 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 34 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 35 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 36 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 37 XSoft Information : Schedule for programming

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 38 XSoft Exercise: IEC basics and basic circuits

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 39 XSoft Exercise: IEC basics and basic circuits

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 40 XSoft The elementary data types BOOL BYTE, WORD, DWORD SINT, INT, DINT USINT, UINT, UDINT REAL, LREAL STRING TIME, TOD, DATE, DT

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 41 XSoft Data types - Interpretation of values Elementary data types

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 42 XSoft SINT 41 Hex Input 1 und 7 high = Now it‘s clear ! Now it‘s clear ! What does it mean ? What does it mean ? IEC Programming languages Why data types ?

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 43 XSoft Bool Byte WordDWord REAL ANY_INT ANY Bit Maths Town ADD DIV SUB MUL ANY NUM Bit City AND OR XOR Type specific use

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 44 XSoft Information: Elementary data types

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 45 XSoft Information: Elementary data types

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 46 XSoft Information: Elementary data types

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 47 XSoft Derived Data Types

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 48 XSoft Value limitations Rotations : UINT( ); Enumerations tDialmode : (TONE, PULSE); Arrays Structures values : ARRAY[1..10] OF INT; Oven_data : STRUCT Temperature : REAL; Time : DT; END_STRUCT IEC Derived data types

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 49 XSoft Data:Array[1..10] of INT; Data[5]... :Array[1..10,1..4,1..3] of INT; Data[5,4,2]... :Array[1..10,1..4] of INT; Data[7,4] ARRAYs

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 50 XSoft Datenfelder – ARRAYs – vierdimensional ?!

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 51 XSoft Temperature :125 °C Time : :35:47 Heat_time : 7m Alarm : 0 Oven1.Temperature Oven1.Time Oven1.Heat_time Oven1.Alarm Oven_data : STRUCT Temperature : UINT ; Time : DT ; Heat_time : TIME ; Alarm : BOOL ; END_STRUCT ; TYPE END_TYPE VAR Oven1 : Oven_data ; END_VAR Derived Data Types - Structures -

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 52 XSoft Application structure and variable scope

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 53 XSoft Project BlocksGlobal VariablesData types DeclarationCode Structure of an application software

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 54 XSoft PROGRAM „PLC_PRG“ FU FB FU FB Function block Function ax² + b = y Result in Akku Program LD AND ST IN OUT IN PROGRAM FU FB FU FB PROGRAM FB FU FB POU Types

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 55 XSoft FU FB FU FB PROGRAM PROGRAM (e.g. in IL) Action (CFC) Action (ST) Action (LD) Action (CFC) Actions

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 56 XSoft LocalGlobalType InputOutputInOutExternal Pump Scope of variables (1)

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 57 XSoft LocalGlobalType InputOutputInOutExternal Global Pump External Pump Valid area Scope of variables (2)

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 58 XSoft LocalGlobalType InputOutputInOutExternal Valid area Input Druck Input Druck Output Pump InOut Mit Scope of variables (3)

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 59 XSoft POU composition

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 60 XSoft Program Organiation Unit DeclarationsInstructions + VAR Input1 AT %I : BOOL ; Output1 AT %Q : BOOL ; END_VAR LDInput1 STOutput1 Composition of a POU

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 61 XSoft Instanciation means: Assignment of a data set to a function block or a variable VAR parts_counter : CTU; END_VAR CTU Instructions CTU Instructions + Parts_counter Data Parts_counter Data PLC‘s memory Instanciation (1)

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 62 XSoft Multiple instanciation means: Assignment of several data sets to a function block VAR raw_parts : CTU; finished_parts : CTU; waste : CTU; END_VAR CTU Instructions CTU Instructions + Data set raw_parts Data set raw_parts Xcontrol memory Data set finished_parts Data set finished_parts Data set waste Data set waste Instanciation (2)

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 63 XSoft Call-up of function blocks Time Generator Set Period Pulse Output BOOL PROTOTYPE Instructions CAL M_Tact (Set:=Start, Period:=20 ) LD M_Tact.PulseOutput ST Tact CAL M_Tact (Set:=Start, Period:=20 ) LD M_Tact.PulseOutput ST Tact LD Start ST M_Tact.Set LD 20 ST M_Tact.Period CAL M_Tact LD M_Tact.PulseOutput ST Tact LD Start ST M_Tact.Set LD 20 ST M_Tact.Period CAL M_Tact LD M_Tact.PulseOutput ST Tact PROGRAM Timertest Declaration VAR M_Tact : Timegenerator; Start AT%I0.0: BOOL; Tact AT%Q0.0: BOOL; END_VAR VAR M_Tact : Timegenerator; Start AT%I0.0: BOOL; Tact AT%Q0.0: BOOL; END_VAR 1. Variant IEC compliant 2. Variant IEC compliant 3. Variant (XSoft; next version of IEC ) CAL M_Tact (Set:=Start, Period:=20, PulseOutput=>Tact ) CAL M_Tact (Set:=Start, Period:=20, PulseOutput=>Tact )

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 64 XSoft Standard libraries and their use

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 65 XSoft Power machine x o station number alarm IEC Standard libraries

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 66 XSoft Additional libraries

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 67 XSoft Exercise: Delayed activation

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 68 XSoft Solution: Delayed activation

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 69 XSoft : Toiletten-Licht-Lüfter-Steuerung Exercise: Toilet control

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 70 XSoft Solution: Toilet control

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 71 XSoft Exercise: Toilet control; extension

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 72 XSoft Solution: Toilet control; extension

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 73 XSoft Continuous Function Chart

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 74 XSoft Continuous Function Chart (CFC) Graphical Programming language Not within the scope of the standard IEC useful “enhancement” of FBD Of all the programming languages best suitable for the programming of complex expressions with feedback loops (therefore widely spread in the process industry)

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 75 XSoft Input Output Block Jump Label Return Comment Negate Set/Reset Enable Create Macro In-Pin Out-Pin Operators

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 76 XSoft Execution rules

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 77 XSoft Macros Create macro

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 78 XSoft Exercise: Function block blinker

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 79 XSoft Solution: Function block blinker

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 80 XSoft Management of global variables in XSoft

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 81 XSoft Generelly accessible variables (Global variables) Global Variables I

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 82 XSoft Eintrag über die Eingabehilfe der automatischen Deklaration Auswahl der gewünschten globalen Variablenliste Global Variables II

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 83 XSoft Structured Text

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 84 XSoft Structured Text Textual language High level language similar to PASCAL or C not so well known in the PLC/automation world of all languages best suitable for programming loops and branches/decisions

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 85 XSoft Analog Operators IL,FBD,LDST ADD + SUB - MUL * DIV / Working with ANY_NUM, TIME

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 86 XSoft Comparison Operators IL,FBD,LDST EQ = NE<> GE>= GT > LE<= LT < Working with ANY data type

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 87 XSoft Hierarchy of the operators IL LDI1 AND I2 OR(I3 ANDI4 ) STresult ST result:= I1 AND I2 OR I3 AND I4; result:= (I1 AND I2) OR (I3 AND I4);

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 88 XSoft Branching I LDvariable GT100 JMPC greater LDvariable EQ100 JMPC equal LDa ADD1 STa JMPEND greater: LDa SUB1 STa JMPEND equal: LDa STresult END: IL IF variable > 100 THEN a:=a-1; ELSIF variable = 100 THEN result:=a; ELSE a:=a+1; END_IF; ST

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 89 XSoft Branching II LDvariable EQ1 JMPC case_1 LDvariable EQ2 OR(variable EQ3 ) OR(variable EQ4 ) JMPC case_2 LDa ADD1 STa JMPEND case_1: LDa ADD1 STa JMPEND case_2:. IL CASE variable OF 1: a:=a+1; 2,3,4: a:=a+2; : a:=a+3; ELSE a:=0; END_CASE; ST

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 90 XSoft Loops I FOR variable := 1 TO 10 DO STEP 1 array_a[variable]:=100; array_b[variable]:=50; array_c[variable]:=3; END_FOR; FOR VAR array_a:ARRAY[1..10] OF INT; array_b:ARRAY[1..10] OF UINT; array_c:ARRAY[1..10] OF USINT; END_VAR

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 91 XSoft WHILE a <= 100 DO a:=a*2; b:=b+1; c:=c+5; END_WHILE; WHILE DO REPEAT a:=a+1; b:=b*2; UNTIL a=100 OR b=50 END_REPEAT; REPEAT UNTIL The cycle time trap Loops II

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 92 XSoft Exercise: Cycle Counter with level check

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 93 XSoft Solution: Cycle Counter with level check

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 94 XSoft Exercise: Extension of cycle counter

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 95 XSoft Solution: Extension of cycle counter

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 96 XSoft Task management in the XSoft

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 97 XSoft Task Definition Task1 20ms Prg1 Prg2Prg3 Task2 event Prg4 Prg5 In XSoft there exist two kinds of tasks „Periodic“ and „Event triggered“. For the execution the following rules are valid:.The task, for which the condition is fulfilled, will be executed, i.e. if the time period has elapsed or on the rising edge of the associated global triggering event. ·If several task have valid conditions at the same moment the task with the highest priority will be executed first. ·If several tasks have valid conditions and the same priority the task with the longest waiting time will be executed.

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 98 XSoft Task Definition Xsoft Task Interval Execution priority Event triggered task with global trigger variable

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 99 XSoft Project Task 1 Task 2 Task Program 1 Program 2 Program 3 Program N Definition of hierarchies

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 100 XSoft Cyclic Event triggered e.g. by global variable S1= 1 TaskA Prog1 H1:=NOT H1 TaskA Prog1 H1:=NOT H1 TaskA Prog1 H1:=NOT H1 H1:=1H1:=0H1:=1 1s TaskA Prog1 H1:=NOT H1 TaskA Prog1 H1:=NOT H1 TaskA Prog1 H1:=NOT H1 H1:=1H1:=0H1:=1 S1=1 Task Interval: Definitions:

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 101 XSoft Task A Prio 5 Task B Prio4 Task A Prio 5 High priority tasks interrupt low priority tasks! Priorities of 0-31 are allowed ! Definition of Priority

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 102 XSoft TaskA Prog1 H1:=NOT H1 TaskA Prog1 H1:=NOT H1 TaskA Prog1 H1:=NOT H1 H1:=1H1:=0H1:=1 1s Task Interval: TaskB Prog2 Cycle time error (Watchdog) If any one task can NOT complete the execution of its assigned programs within the defined interval, the PLC will go into HALT (watchdog) ! Definition of priorities

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 103 XSoft Prog_L Prog_H Program execution time t 0T ProgL T ProgH (Task interval H) T IH (Task intervall L) T IL Prog_L 1. Break Prog_H T IRH Prio 0 1 Task_L: Task_H: Prog_L 2.Prog_L Break Prog_H Break Prog_H New Start 1. Prog_H T progL* Definition: Task Timing

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 104 XSoft (Task interval L) T IL Break Prog_H T IRH Task_LL: Task_L: Break Prog_H Break Prog_H Prog_L 1.Prog_L 2.Prog_L Prog_L 1.Prog_L 2.Prog_L 3. T ProgL* Prog_L Prog_H Program execution time t 0T ProgL T ProgH Prio 0 1 Prog_LL 2 T ILR Prog_LL 4 Break etc. And what about 3 Tasks?

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 105 XSoft Exercise: Task configuration

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 106 XSoft Test and Commissioning

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 107 XSoft Watch- and recipe manager F2

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 108 XSoft Breakpoint and single step Breakpoint

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 109 XSoft Sampling Trace

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 110 XSoft Exercise

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 111 XSoft Exercise

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 112 XSoft Address structure according to IEC

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 113 XSoft Structure of an address Percent character ‘%’ Area prefix –IInput –QOutput –MMarker Size –XSingle Bit –NoneSingle Bit –BByte (8 Bits) –WWord (16 Bits) –DDouble word (32 Bits) Samples –%IW214 –%QX1.1 –%MD48 Manufacturer specific; not defined in the standard !

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 114 XSoft Erzeugen einer Symboldatei

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 115 XSoft Variablen in eine globale Variablenliste eintragen! Schritt1: Projekt erstellen und speichern

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 116 XSoft Schritt 2: Übersetzen

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 117 XSoft Simulation abschalten Simulation

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 118 XSoft Schritt 3: Symboldateierzeugen anklicken

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 119 XSoft Schritt 5: Symbolfile konfigurieren Wegklicken! Symbolfile konfigurieren Anklicken!

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 120 XSoft Schritt 6: Auswahl der Variablen

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 121 XSoft Schritt 7: Auswahl zu Symbolliste hinzufügen Anklicken!

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 122 XSoft Schritt 8: Fenster mit OK verlassen und übersetzen Bestätigen!

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 123 XSoft Schritt 9: Übersetzen

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 124 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 125 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 126 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 127 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 128 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 129 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 130 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 131 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 132 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 133 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 134 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 135 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 136 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 137 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 138 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 139 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 140 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 141 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 142 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 143 XSoft Notice

Schutzvermerk nach DIN 34 beachten 20/04/15 Seite 144 XSoft Notice