<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to [SOLVE] Convert array of word to string</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/ed7efd1c0c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/ed7efd1c0c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/ed7efd1c0c/</id><updated>2020-02-27T19:40:50.284000Z</updated><subtitle>Recent posts to [SOLVE] Convert array of word to string</subtitle><entry><title>[SOLVE] Convert array of word to string</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/ed7efd1c0c/?limit=25#caad" rel="alternate"/><published>2020-02-27T19:40:50.284000Z</published><updated>2020-02-27T19:40:50.284000Z</updated><author><name>Jetty</name><uri>https://forge.codesys.com/u/jetty/</uri></author><id>https://forge.codesys.comed03b010319034c88d6c2453d48c584fe1560ae5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks a lot i'll try this  &lt;/p&gt;
&lt;p&gt;Edit: Ilt's ok thanks again!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>[SOLVE] Convert array of word to string</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/ed7efd1c0c/?limit=25#337e" rel="alternate"/><published>2020-02-27T19:40:48.927000Z</published><updated>2020-02-27T19:40:48.927000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com692c8737700018563d7df793c5b6f16b37c5ec8d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;an answer within 15 minutes and it is correct too.&lt;br/&gt;
just empty the string.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>[SOLVE] Convert array of word to string</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/ed7efd1c0c/?limit=25#1f45" rel="alternate"/><published>2020-02-27T19:40:45.370000Z</published><updated>2020-02-27T19:40:45.370000Z</updated><author><name>singleton</name><uri>https://forge.codesys.com/u/singleton/</uri></author><id>https://forge.codesys.come20e10f9c2dcf931157366336b727904d7276602</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
it seems that you write the string cyclic. In that way you will add at the second call the values again.&lt;br/&gt;
If you have to call it cyclical just add the following line athe the beginning of your code:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c"&gt;(* clear string *)&lt;/span&gt;
&lt;span class="n"&gt;str&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="k"&gt;''&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>[SOLVE] Convert array of word to string</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/ed7efd1c0c/?limit=25#e328" rel="alternate"/><published>2020-02-27T19:40:44.084000Z</published><updated>2020-02-27T19:40:44.084000Z</updated><author><name>Jetty</name><uri>https://forge.codesys.com/u/jetty/</uri></author><id>https://forge.codesys.com36eff9ccb13d30fee61db358d5c9be51d1c5e7f2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everybody,&lt;/p&gt;
&lt;p&gt;In first sorry for my english but i am french &lt;/p&gt;
&lt;p&gt;I have a little probleme with my program. I need to convert value which are save in an array to string. I have made a little FB who convert the array to a string but there is a "bug" and i have the correct string and the end of the string is not empty it's the begining of my string.&lt;/p&gt;
&lt;p&gt;For example i have value 1731 2498 14567 ... 2456&lt;br/&gt;
my string is : 1731;2498;14567;...;2456;$0D$L1731;2498&lt;/p&gt;
&lt;p&gt;if someone have on idea it will be great.&lt;/p&gt;
&lt;p&gt;Thanks !&lt;/p&gt;
&lt;p&gt;PS this my conversion code:&lt;br/&gt;
&lt;span style="color: #FF0000;"&gt;&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[0]&lt;/span&gt;:=37111;//POS&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[1]&lt;/span&gt;:=37111;//%IW4;//C1&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[2]&lt;/span&gt;:=37111;//%IW5;//C2&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[3]&lt;/span&gt;:=37111;//%IW6;//C3&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[4]&lt;/span&gt;:=37111;//%IW7;//C4&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[5]&lt;/span&gt;:=37111;//%IW9;//C5&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[6]&lt;/span&gt;:=37111;//%IW10;//C6&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[7]&lt;/span&gt;:=37111;//%IW11;//C7&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[8]&lt;/span&gt;:=37111;//%IW12;//C8&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[9]&lt;/span&gt;:=37111;//%IW14;//C9&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[10]&lt;/span&gt;:=37111;//%IW15;//C10&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[11]&lt;/span&gt;:=37111;//%IW16;//C11&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[12]&lt;/span&gt;:=37111;//%IW17;//C12&lt;br/&gt;
gvl.tabsamples1&lt;span&gt;[13]&lt;/span&gt;:=37111;//%IW19;//C13&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;FOR i:=0  TO 13 BY 1 DO&lt;br/&gt;
    str:=CONCAT(str,WORD_TO_STRING(GVL.tabsamples1&lt;span&gt;[i]&lt;/span&gt;));&lt;br/&gt;
    str:=CONCAT(str,';');&lt;br/&gt;
END_FOR&lt;/p&gt;
&lt;p&gt;str:=CONCAT(str,'$0D$L');&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>