<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to question on type conversions</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a3d837d93a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a3d837d93a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a3d837d93a/</id><updated>2020-02-27T21:58:09.337000Z</updated><subtitle>Recent posts to question on type conversions</subtitle><entry><title>question on type conversions</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/a3d837d93a/?limit=25#8049" rel="alternate"/><published>2020-02-27T21:58:09.337000Z</published><updated>2020-02-27T21:58:09.337000Z</updated><author><name>sarathbabu</name><uri>https://forge.codesys.com/u/sarathbabu/</uri></author><id>https://forge.codesys.com743b00438c3b86d04e018b4fde7fc1fe88d97fee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I misstyped it should be &lt;/p&gt;
&lt;p&gt;IDVAR:=CONCAT(TEMP,'^');&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question on type conversions</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/a3d837d93a/?limit=25#aaa9" rel="alternate"/><published>2020-02-27T21:58:07.829000Z</published><updated>2020-02-27T21:58:07.829000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com6b755c9e3556dacc242177ae30dfd2167fc037e2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;IDVAR:=(TEMP,'^');&lt;/p&gt;
&lt;p&gt;this is not allowed&lt;br/&gt;
it should read IDVAR:=TEMP;&lt;br/&gt;
however you can do this in previous line&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question on type conversions</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/a3d837d93a/?limit=25#4e4d" rel="alternate"/><published>2020-02-27T21:58:03.575000Z</published><updated>2020-02-27T21:58:03.575000Z</updated><author><name>sarathbabu</name><uri>https://forge.codesys.com/u/sarathbabu/</uri></author><id>https://forge.codesys.com113f4ca10550de2ef63778821eab166a8cf5fdd1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the info     i did not find it in the help file,I thought all conversions can be found in help file&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question on type conversions</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/a3d837d93a/?limit=25#8367" rel="alternate"/><published>2020-02-27T21:58:02.066000Z</published><updated>2020-02-27T21:58:02.066000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com2d2017836dcf8c0255abb2e9320a223057aaa45d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Nothing hidden.&lt;br/&gt;
 i like to propose you the use of the F2 key.&lt;br/&gt;
there you will find every conversion and any thing you can type in at a particular moment.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question on type conversions</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/a3d837d93a/?limit=25#6731" rel="alternate"/><published>2020-02-27T21:57:57.646000Z</published><updated>2020-02-27T21:57:57.646000Z</updated><author><name>sarathbabu</name><uri>https://forge.codesys.com/u/sarathbabu/</uri></author><id>https://forge.codesys.com38d870210e73101c79abf44c44c67c63cf229314</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;Below&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;am&lt;/span&gt; &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="n"&gt;but&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="n"&gt;did&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="n"&gt;understand&lt;/span&gt; &lt;span class="n"&gt;how&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="k"&gt;conversion&lt;/span&gt; &lt;span class="n"&gt;works&lt;/span&gt; &lt;span class="n"&gt;here&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;function IDVAR:string&lt;br/&gt;
var_input&lt;br/&gt;
    ID_VARONE:string;&lt;br/&gt;
    ID_VARTWO:STRING;&lt;br/&gt;
end_var&lt;br/&gt;
VAR&lt;br/&gt;
TEMP:STRING;&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;TEMP:=CONCAT(ID_VARONE,'^');&lt;br/&gt;
TEMP:=CONCAT(TEMP,ID_VARTWO);&lt;br/&gt;
IDVAR:=(TEMP,'^');&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;function TEST:string&lt;br/&gt;
var_input&lt;br/&gt;
    VarSARID:string;&lt;br/&gt;
    Act_Count:udint;&lt;br/&gt;
end_var&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;TEST:=IDVAR('12345',UDINT_TO_STRING(Act_Count));&lt;/p&gt;
&lt;p&gt;In codesys i did not find the UDINT_TO_STRING conversion but it is working any thing is hidden?&lt;/p&gt;
&lt;p&gt;Thanks&lt;br/&gt;
sarath&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>