<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Codesys Newbie Convert Word to ASCII String</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a522cb841e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a522cb841e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a522cb841e/</id><updated>2020-02-27T21:52:31.497000Z</updated><subtitle>Recent posts to Codesys Newbie Convert Word to ASCII String</subtitle><entry><title>Codesys Newbie Convert Word to ASCII String</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/a522cb841e/?limit=25#1b08" rel="alternate"/><published>2020-02-27T21:52:31.497000Z</published><updated>2020-02-27T21:52:31.497000Z</updated><author><name>EnterDownload</name><uri>https://forge.codesys.com/u/enterdownload/</uri></author><id>https://forge.codesys.comd9ebf7c1a256584ea845ebead5468679e81ba88c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;SOLVED : Take 3 WORDS and convert back to the ASCII String that the Words represent&lt;/p&gt;
&lt;p&gt;The Words : &lt;/p&gt;
&lt;p&gt;Word1-  Decimal Value : 21072&lt;br/&gt;
Word2-  Decimal Value : 18255&lt;br/&gt;
Word3-  Decimal Value : 49&lt;/p&gt;
&lt;p&gt;The 3 Words Converted back to a String = "PROG1".....as seen in the attached picture, (the value for the result variable "sProgramName")&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Convert_Word_to_String.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1069"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys Newbie Convert Word to ASCII String</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/a522cb841e/?limit=25#53fc" rel="alternate"/><published>2020-02-27T21:52:29.837000Z</published><updated>2020-02-27T21:52:29.837000Z</updated><author><name>EnterDownload</name><uri>https://forge.codesys.com/u/enterdownload/</uri></author><id>https://forge.codesys.com2398f961fbdab81528639895a98942b270c4f8ce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello All&lt;/p&gt;
&lt;p&gt;I am a newbie to Codesys...about 3 weeks. &lt;/p&gt;
&lt;p&gt;I have an HMI where an operator can choose a filename to execute.&lt;/p&gt;
&lt;p&gt;The filename is 10 words long, 2 characters per word.&lt;/p&gt;
&lt;p&gt;The filename e.g. "PROG1" is selected from the HMI and sent over Modbus to the Festo PLC.&lt;/p&gt;
&lt;p&gt;On the Modbus, the filename text "PROG1" seen as 3 words&lt;/p&gt;
&lt;p&gt;Word1: Decimal Value  = 21072&lt;br/&gt;
Word2: Decimal Value  = 18255&lt;br/&gt;
Word3: Decimal Value  = 49&lt;/p&gt;
&lt;p&gt;The question is how can I convert a value of any length word(s) from their Decimal Value to the ASCII equivalent string and read it back into a variable ? &lt;/p&gt;
&lt;p&gt;From this ...Word1+Word2+Word3 .....How do I get this ----&amp;gt; "PROG1" &lt;/p&gt;
&lt;p&gt;Can someone help the newbie ?? Please let me know if more clarification is needed..&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;JL&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>