<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Absoluter Anfänger - Hilfe bei AWL und Analoge Werte</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/840ac95e27/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/840ac95e27/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/840ac95e27/</id><updated>2020-02-28T12:15:22.063000Z</updated><subtitle>Recent posts to Absoluter Anfänger - Hilfe bei AWL und Analoge Werte</subtitle><entry><title>Absoluter Anfänger - Hilfe bei AWL und Analoge Werte</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/840ac95e27/?limit=25#13b4" rel="alternate"/><published>2020-02-28T12:15:22.063000Z</published><updated>2020-02-28T12:15:22.063000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.comdbb3bf0592ee2d51d804e0d34ef4ae750da8dcd9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Habe noch was vergessen! Es gibt ein nettes E-Book für die ersten Schritte mit Codesys&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://www.ebookaktiv.de/eBook_IEC61131/eBook_IEC61131.htm" rel="nofollow"&gt;http://www.ebookaktiv.de/eBook_IEC61131 ... C61131.htm&lt;/a&gt; m &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Absoluter Anfänger - Hilfe bei AWL und Analoge Werte</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/840ac95e27/?limit=25#7de0" rel="alternate"/><published>2020-02-28T12:15:19.451000Z</published><updated>2020-02-28T12:15:19.451000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.comc3c73901654429262814767dbd9a3b4b817f55ac</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Kann man schon machts aber vom Aufbau unübersichtlicher und kompliziert wenn man sowas mehrfach in einer POU hat.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;LD&lt;/span&gt; &lt;span class="n"&gt;Bedingung1&lt;/span&gt;
&lt;span class="n"&gt;JMPC&lt;/span&gt; &lt;span class="n"&gt;dorthin1&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="n"&gt;Hier&lt;/span&gt; &lt;span class="n"&gt;was&lt;/span&gt; &lt;span class="n"&gt;tun&lt;/span&gt; &lt;span class="n"&gt;wenn&lt;/span&gt; &lt;span class="n"&gt;Bedingung&lt;/span&gt; &lt;span class="n"&gt;nicht&lt;/span&gt; &lt;span class="n"&gt;erf&lt;/span&gt;&lt;span class="err"&gt;ü&lt;/span&gt;&lt;span class="n"&gt;llt&lt;/span&gt;
&lt;span class="n"&gt;JMP&lt;/span&gt; &lt;span class="n"&gt;dorthin2&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;Unbedingter&lt;/span&gt; &lt;span class="n"&gt;Sprung&lt;/span&gt; &lt;span class="n"&gt;damit&lt;/span&gt; &lt;span class="n"&gt;die&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="err"&gt;ä&lt;/span&gt;&lt;span class="n"&gt;chsten&lt;/span&gt; &lt;span class="n"&gt;Zeilen&lt;/span&gt; &lt;span class="n"&gt;nicht&lt;/span&gt; &lt;span class="n"&gt;ausgef&lt;/span&gt;&lt;span class="err"&gt;ü&lt;/span&gt;&lt;span class="n"&gt;hrt&lt;/span&gt; &lt;span class="n"&gt;werden&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 
&lt;span class="n"&gt;dorthin1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="n"&gt;Hier&lt;/span&gt; &lt;span class="n"&gt;was&lt;/span&gt; &lt;span class="n"&gt;tun&lt;/span&gt;
&lt;span class="n"&gt;dorthin2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Ich glaube nicht das das am Ende übersichtlicher wird. &lt;/p&gt;
&lt;p&gt;Gruß &lt;/p&gt;
&lt;p&gt;Ralph&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Absoluter Anfänger - Hilfe bei AWL und Analoge Werte</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/840ac95e27/?limit=25#303b" rel="alternate"/><published>2020-02-28T12:15:12.382000Z</published><updated>2020-02-28T12:15:12.382000Z</updated><author><name>Programier-Hans</name><uri>https://forge.codesys.com/u/programier-hans/</uri></author><id>https://forge.codesys.com8d0ebbe1dfaf0bf58608289011c74d3fa0f6ec8f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;/p&gt;
&lt;p&gt;warum schreibt man dann nicht:&lt;/p&gt;
&lt;p&gt;CAL Zeit1(IN:= NOT(Zeit1.Q),PT:= T#0.5s)&lt;/p&gt;
&lt;p&gt;LD Zeit1.q&lt;/p&gt;
&lt;p&gt;JMPC dorthin&lt;/p&gt;
&lt;p&gt;dorthin:&lt;/p&gt;
&lt;p&gt;Zähle um 1 hoch&lt;/p&gt;
&lt;p&gt;Also immer wenn die 0.5s erreicht sind wird Zeit1.Q TRUE und springt deshalb zur Marke dorthin?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Absoluter Anfänger - Hilfe bei AWL und Analoge Werte</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/840ac95e27/?limit=25#5bfb" rel="alternate"/><published>2020-02-28T12:15:09.834000Z</published><updated>2020-02-28T12:15:09.834000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.com7e5d2b4ff290dd60055d8a383b95a40ba81f99ec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Programier_Hans,&lt;/p&gt;
&lt;p&gt;das ist mal ein nettes Pseudonym! In AWL kommt man bei bedingten Zuweisungen nicht um Sprünge oder Bausteinaufrufe herum. Was ich allerdings nicht verstehe ist die Verwendung von dem RS Funbktionsbaustein dafür gibts in AWL (auch KOP, FUP und CFC) die Operatoren S und R man spart sich damit das instanzieren der RS Bausteine. &lt;/p&gt;
&lt;p&gt;So jetzt zu meinem AWL Ansatz für Dein Problem&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;CAL Zeit1(IN:= NOT(Zeit1.Q),PT:= T#0.5s)&lt;br/&gt;
LD Zeit1.q&lt;br/&gt;
JMPCN dorthin&lt;br/&gt;
(&lt;em&gt; hier dann hochzählen&lt;/em&gt;)&lt;br/&gt;
dorthin:&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;Für den Zeitwert kannst Du natürlich auch eine Variable nehmen.&lt;/p&gt;
&lt;p&gt;Gruß &lt;/p&gt;
&lt;p&gt;Ralph&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Absoluter Anfänger - Hilfe bei AWL und Analoge Werte</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/840ac95e27/?limit=25#6c8c" rel="alternate"/><published>2020-02-28T12:15:02.361000Z</published><updated>2020-02-28T12:15:02.361000Z</updated><author><name>Programier-Hans</name><uri>https://forge.codesys.com/u/programier-hans/</uri></author><id>https://forge.codesys.com74b2787a6a8e4a5661bfb52a968e523ca0ff53cc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo alle,&lt;/p&gt;
&lt;p&gt;ich bin absoluter Anfänger in der SPS-Programmierung und hätte ein paar Fragen.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Ich möchte einen analogen Wert von 0 bis 20mA in 1mA Schritten hochzählen. Zwischen den Schritten soll ca. 0.5s Pause sein. Wie löst man sowas in AWL?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Ich habe mehrere Funktionsblöcke. Jetzt will ich alle Funktionsblöcke verknüpfen und nacheinander ablaufen lassen. Macht man sowas auch in AWL?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Soll man eigentlich in AWL mit Sprüngen arbeiten oder bleibt nichts anderes übrig? Folgendes habe ich getestet:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;CAL&lt;/span&gt;     &lt;span class="n"&gt;RS1&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;Start&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;RESET1&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Zeit2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Q&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;CAL&lt;/span&gt;     &lt;span class="n"&gt;Zeit1&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;RS1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Q1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;PT&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;PLC_PRG&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;TIn&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;LD&lt;/span&gt;       &lt;span class="n"&gt;Zeit1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Q&lt;/span&gt;

&lt;span class="n"&gt;JMPC&lt;/span&gt;           &lt;span class="n"&gt;marke&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;marke:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;    &lt;span class="n"&gt;LD&lt;/span&gt; &lt;span class="k"&gt;TRUE&lt;/span&gt;

    &lt;span class="n"&gt;ST&lt;/span&gt; &lt;span class="n"&gt;Test&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Bei mir wird Test immer gleich TRUE und wartet nicht bis Zeit.Q TRUE wird. Warum ist dies so? Wie löst man sowas?&lt;/p&gt;
&lt;p&gt;Kennt ihr ein gutes Buch, in dem sowas beschrieben ist?&lt;/p&gt;
&lt;p&gt;Vielen Dank für die Hilfe.&lt;/p&gt;
&lt;p&gt;Grüße&lt;/p&gt;
&lt;p&gt;Hans&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>