<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Vergleich mit negativen Zahlen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/aada90f369/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/aada90f369/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/aada90f369/</id><updated>2020-02-28T06:34:59.852000Z</updated><subtitle>Recent posts to Vergleich mit negativen Zahlen</subtitle><entry><title>Vergleich mit negativen Zahlen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/aada90f369/?limit=25#ba3d" rel="alternate"/><published>2020-02-28T06:34:59.852000Z</published><updated>2020-02-28T06:34:59.852000Z</updated><author><name>Oberchefe</name><uri>https://forge.codesys.com/u/oberchefe/</uri></author><id>https://forge.codesys.com28c94415482518c3f426a32cdcfe063282be4f14</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
ersteh ich nicht...&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Bei mir tut's auch.&lt;/p&gt;
&lt;p&gt;Welche Hardware verwendest Du?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Vergleich mit negativen Zahlen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/aada90f369/?limit=25#93cc" rel="alternate"/><published>2020-02-28T06:34:57.713000Z</published><updated>2020-02-28T06:34:57.713000Z</updated><author><name>cas</name><uri>https://forge.codesys.com/u/cas/</uri></author><id>https://forge.codesys.comcf40cc8e1622f62f5a8a896fd4b7240938e9007b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;versteh ich nicht...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Vergleich mit negativen Zahlen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/aada90f369/?limit=25#dc5e" rel="alternate"/><published>2020-02-28T06:34:55.579000Z</published><updated>2020-02-28T06:34:55.579000Z</updated><author><name>mburggra</name><uri>https://forge.codesys.com/u/mburggra/</uri></author><id>https://forge.codesys.com83498f693f60638f03b2dd0d95a1bade1b653768</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;also ich habs grad auch ausprobiert. da ist alles so, wie es sein soll !&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Vergleich mit negativen Zahlen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/aada90f369/?limit=25#4c29" rel="alternate"/><published>2020-02-28T06:34:49.597000Z</published><updated>2020-02-28T06:34:49.597000Z</updated><author><name>cas</name><uri>https://forge.codesys.com/u/cas/</uri></author><id>https://forge.codesys.comb46b1cb9962f5ef001070064d1ebed3aaf5efd62</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Nö....&lt;/p&gt;
&lt;p&gt;Wenn ich eingebe:&lt;/p&gt;
&lt;p&gt;Alarm:=(XYZ&amp;gt;120);&lt;/p&gt;
&lt;p&gt;dann funktionierts einwandfrei.&lt;/p&gt;
&lt;p&gt;aber...&lt;/p&gt;
&lt;p&gt;Alarm:=(XYZ&amp;lt;-40);&lt;/p&gt;
&lt;p&gt;geht nicht!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Vergleich mit negativen Zahlen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/aada90f369/?limit=25#af0f" rel="alternate"/><published>2020-02-28T06:34:47.420000Z</published><updated>2020-02-28T06:34:47.420000Z</updated><author><name>mburggra</name><uri>https://forge.codesys.com/u/mburggra/</uri></author><id>https://forge.codesys.com3ffd0edcb85adc7294edc74885450be1a1725309</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;ja stimmt, du hast recht...&lt;/p&gt;
&lt;p&gt;Eigentlich sollte deine Lösung genau so funktionieren&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Vergleich mit negativen Zahlen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/aada90f369/?limit=25#61aa" rel="alternate"/><published>2020-02-28T06:34:41.377000Z</published><updated>2020-02-28T06:34:41.377000Z</updated><author><name>cas</name><uri>https://forge.codesys.com/u/cas/</uri></author><id>https://forge.codesys.comc88b6f11a0ea02f15c269942fbbee495dc61ea24</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;/p&gt;
&lt;p&gt;grundsätzlich ist deine Lösung das "Gleiche".&lt;/p&gt;
&lt;p&gt;Aus (XYZ&amp;lt;-40) wird ja ein BOOLisches Ergebmis , dass dann direkt der VAR Alarm zugewiesen wird. Man spart sich das If  ELSE ind End_IF.&lt;/p&gt;
&lt;p&gt;Das Problem ist jedoch, das für die SPS TRUE herrauskommt.&lt;/p&gt;
&lt;p&gt;Soweit ich weiss ist 0 größer -40 und somit ist (XYZ&amp;lt;-40) gleich FALSE wenn XYZ=0 ist.&lt;/p&gt;
&lt;p&gt;Danke erstmal an der Mithilfe.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Vergleich mit negativen Zahlen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/aada90f369/?limit=25#c7f0" rel="alternate"/><published>2020-02-28T06:34:39.196000Z</published><updated>2020-02-28T06:34:39.196000Z</updated><author><name>mburggra</name><uri>https://forge.codesys.com/u/mburggra/</uri></author><id>https://forge.codesys.come7fb064ad767f4989dc78e1214f2eab1bf5db1f1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;So wie du es hier machst, erscheint es mir nicht ganz einleuchtend.&lt;/p&gt;
&lt;p&gt;Du weisst "Alarm" einen Wert ODER einen anderen zu !!&lt;/p&gt;
&lt;p&gt;Machs doch mit ner IF- Anweisung:&lt;/p&gt;
&lt;p&gt;IF XYZ&amp;lt;-40 OR XYZ&amp;gt;120&lt;/p&gt;
&lt;p&gt;THEN Alarm:=TRUE;&lt;/p&gt;
&lt;p&gt;ELSE Alarm:=FALSE;&lt;/p&gt;
&lt;p&gt;END_IF&lt;/p&gt;
&lt;p&gt;oder so in der art !!!&lt;/p&gt;
&lt;p&gt;viel Glück !&lt;/p&gt;
&lt;p&gt;Mfg Marco Burggraf&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Vergleich mit negativen Zahlen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/aada90f369/?limit=25#273a" rel="alternate"/><published>2020-02-28T06:34:33.168000Z</published><updated>2020-02-28T06:34:33.168000Z</updated><author><name>cas</name><uri>https://forge.codesys.com/u/cas/</uri></author><id>https://forge.codesys.com0c6aed3dec77bb0aaea70cfa2efb448675a83a05</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;/p&gt;
&lt;p&gt;habe heute was mekwürdiges gefunden:&lt;/p&gt;
&lt;p&gt;Habe zwei Variablen (VAR) deklariert:&lt;/p&gt;
&lt;p&gt;Alarm:BOOL;&lt;/p&gt;
&lt;p&gt;XYZ:REAL;&lt;/p&gt;
&lt;p&gt;Im Programm steht jetzt:&lt;/p&gt;
&lt;p&gt;XYZ:=0;&lt;/p&gt;
&lt;p&gt;Alarm:=(XYZ&amp;lt;(-40) OR XYZ&amp;gt;120)&lt;/p&gt;
&lt;p&gt;"Egbebis ist dann TRUE ". Also Alarm hat den Wert TRUE !&lt;/p&gt;
&lt;p&gt;Kurzrum soll geprüft werden, ob der Wert größer 120 oder kleiner -40 ist.&lt;/p&gt;
&lt;p&gt;Geht aber nicht...&lt;/p&gt;
&lt;p&gt;Muß ich da etwas anders deklarieren ?&lt;/p&gt;
&lt;p&gt;MfG&lt;/p&gt;
&lt;p&gt;CAS&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>