<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Codesys 2.3 STRING_to_INT</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/f440857aa1/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/f440857aa1/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/f440857aa1/</id><updated>2020-02-28T14:59:53.844000Z</updated><subtitle>Recent posts to Codesys 2.3 STRING_to_INT</subtitle><entry><title>Codesys 2.3 STRING_to_INT</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/f440857aa1/?limit=25#0397" rel="alternate"/><published>2020-02-28T14:59:53.844000Z</published><updated>2020-02-28T14:59:53.844000Z</updated><author><name>Erik Böhm</name><uri>https://forge.codesys.com/u/erik-boehm/</uri></author><id>https://forge.codesys.com3ca1540aa9eb1850af3d7ac480ed0e8f3383cdcf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Also dieses hier:&lt;/p&gt;
&lt;p&gt;iTest   := STRING_TO_INT('1234');&lt;/p&gt;
&lt;p&gt;funktioniert tadellos&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys 2.3 STRING_to_INT</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/f440857aa1/?limit=25#655e" rel="alternate"/><published>2020-02-28T14:59:45.943000Z</published><updated>2020-02-28T14:59:45.943000Z</updated><author><name>Erik Böhm</name><uri>https://forge.codesys.com/u/erik-boehm/</uri></author><id>https://forge.codesys.com590abad19106a149a69bf17f79a923b91fe97462</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Moin&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Warum nicht direkt STRING_TO_INT ?&lt;/li&gt;
&lt;li&gt;Wie sieht denn dein String aus der umgewandelt werden soll ?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Gruß Erik&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys 2.3 STRING_to_INT</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/f440857aa1/?limit=25#f77c" rel="alternate"/><published>2020-02-28T14:59:43.191000Z</published><updated>2020-02-28T14:59:43.191000Z</updated><author><name>mlampe</name><uri>https://forge.codesys.com/u/mlampe/</uri></author><id>https://forge.codesys.comeeabcd1744c070604db9191f1e8a5d68861f53bf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ich konnte jetzt die Funktion STRING_TO_DINT einbinden.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c"&gt;(*Variablen*)&lt;/span&gt;
&lt;span class="n"&gt;Input&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;STRING&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="n"&gt;strj&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;STRING&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;pj&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;POINTER&lt;/span&gt; &lt;span class="n"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;BYTE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;dnj&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;DINT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;INT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="c"&gt;(*Programm*)&lt;/span&gt;
&lt;span class="n"&gt;strj&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;MID&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Input&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="n"&gt;pj&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;ADR&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;strj&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="n"&gt;dnj&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="n"&gt;STRING_TO_DINT&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pj&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;DINT_TO_INT&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dnj&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Leider liefert bereits STRING_TO_DINT nur 0&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys 2.3 STRING_to_INT</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/f440857aa1/?limit=25#1af3" rel="alternate"/><published>2020-02-28T14:59:35.351000Z</published><updated>2020-02-28T14:59:35.351000Z</updated><author><name>mlampe</name><uri>https://forge.codesys.com/u/mlampe/</uri></author><id>https://forge.codesys.com56fb163bd3e8ebc887dc690c45242c3adf252823</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;br/&gt;
ich würde gerne eine String-Variable in eine Integer-Variable konvertieren.&lt;br/&gt;
Ich arbeite sonst mit Codesys 3x aber wie löse ich diese Problem mit Codesys 2.3 bzw Grips_cp? Dort steht mir diese Funktion anscheinend nicht zur Verfügung!?&lt;/p&gt;
&lt;p&gt;Grüße und schon mal danke im voraus.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>