<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CASE OF Simple Frage</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d17b9073c7/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d17b9073c7/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/d17b9073c7/</id><updated>2020-02-28T03:35:48.573000Z</updated><subtitle>Recent posts to CASE OF Simple Frage</subtitle><entry><title>CASE OF Simple Frage</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d17b9073c7/?limit=25#dfde" rel="alternate"/><published>2020-02-28T03:35:48.573000Z</published><updated>2020-02-28T03:35:48.573000Z</updated><author><name>RolandWagner</name><uri>https://forge.codesys.com/u/rowa/</uri></author><id>https://forge.codesys.comb627464efa5f96180d038f66d0951b7cf62a2c6e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Nun, für das Zurücksetzen des Werts bist Du selbst verantwortlich.&lt;/p&gt;
&lt;p&gt;Deswegen sollte man am Ende einer CASE Struktur idealerweise immer mit einem ELSE aufhören.&lt;/p&gt;
&lt;p&gt;Also:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;CASE&lt;/span&gt; &lt;span class="nv"&gt;testfunk&lt;/span&gt; &lt;span class="nv"&gt;OF&lt;/span&gt;
   &lt;span class="mi"&gt;3&lt;/span&gt;: &lt;span class="nv"&gt;testbool_1&lt;/span&gt;:&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;TRUE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   
&lt;span class="k"&gt;ELSE&lt;/span&gt;
   &lt;span class="nv"&gt;testbool_1&lt;/span&gt;:&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_CASE&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Dann ist klar, was Du willst. Du könntest ja auch etwas anderes wollen...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CASE OF Simple Frage</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d17b9073c7/?limit=25#896c" rel="alternate"/><published>2020-02-28T03:35:43.124000Z</published><updated>2020-02-28T03:35:43.124000Z</updated><author><name>marsmännchen</name><uri>https://forge.codesys.com/u/marsmaennchen/</uri></author><id>https://forge.codesys.com3692932db1f7e23f5a41f9d66ae7f1ce99acb399</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Eine kurze Frage,&lt;br/&gt;
wenn ich testfunk den Wert 3 schreibe, wird testbool_1 natürlich TRUE.&lt;br/&gt;
Wenn ich wieder 0 reinschreibe bleibt testbool_1 aber TRUE.&lt;br/&gt;
Ist das normal? Setzt sich das nicht von selber zurück, weil ja in jedem Zyklus neu ausgewertet wird?&lt;br/&gt;
Oder ist das nur weil ich es mit "Wert schreiben" testweise versuche?&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;CASE&lt;/span&gt; &lt;span class="nt"&gt;testfunk&lt;/span&gt; &lt;span class="nt"&gt;OF&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;3&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;testbool_1&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nt"&gt;TRUE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;
&lt;span class="nt"&gt;END_CASE&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Danke mal wieder für eure Geduld &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>