<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Typkonvertierung</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/18c391aa29/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/18c391aa29/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/18c391aa29/</id><updated>2020-02-28T15:10:42.392000Z</updated><subtitle>Recent posts to Typkonvertierung</subtitle><entry><title>Typkonvertierung</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/18c391aa29/?limit=25#c1ee" rel="alternate"/><published>2020-02-28T15:10:42.392000Z</published><updated>2020-02-28T15:10:42.392000Z</updated><author><name>Erik Böhm</name><uri>https://forge.codesys.com/u/erik-boehm/</uri></author><id>https://forge.codesys.combdb2fc6837abc0b04bb6a9a1ebf8aaf2fe2cb033</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo&lt;/p&gt;
&lt;p&gt;Wenn ich das richtig verstehe, brauchst du also ein HIGH-Byte und ein LOW-Byte.&lt;/p&gt;
&lt;p&gt;Das geht recht einfach mit der Funktion SHR(), bzw SHL().&lt;/p&gt;
&lt;p&gt;Eine Beschreibung ist in der CoDeSys-Hilfe zu finden.&lt;/p&gt;
&lt;p&gt;MfG&lt;/p&gt;
&lt;p&gt;Erik Böhm&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Typkonvertierung</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/18c391aa29/?limit=25#a04f" rel="alternate"/><published>2020-02-28T15:10:34.531000Z</published><updated>2020-02-28T15:10:34.531000Z</updated><author><name>schneider</name><uri>https://forge.codesys.com/u/schneider/</uri></author><id>https://forge.codesys.comdf954fc51bbd8b086df42113ec3dcaa098ab97c5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;/p&gt;
&lt;p&gt;habe folgende Problematik. Muss einen erechneten INT Wert in zwei Variablen vom Datentyp SINT konvertieren:&lt;/p&gt;
&lt;p&gt;Bsp: INT 346 --&amp;gt; 16#015A&lt;/p&gt;
&lt;p&gt;Ergebnis sollte liefen: VAR1 = 16#01&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;                            &lt;span class="n"&gt;VAR2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="o"&gt;#&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="n"&gt;A&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Mit dem Befehl INT_TO_SINT erhalte ich nur VAR2 aber nicht VAR1.&lt;/p&gt;
&lt;p&gt;Vielleicht kann mir jemand einen Tipp geben.&lt;/p&gt;
&lt;p&gt;Gruß&lt;/p&gt;
&lt;p&gt;Tobias Ruf&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>