<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to Convert ascii string to real value?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/757811ea31/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/757811ea31/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/757811ea31/</id><updated>2023-02-20T11:12:59.251000Z</updated><subtitle>Recent posts to How to Convert ascii string to real value?</subtitle><entry><title>How to Convert ascii string to real value?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/757811ea31/?limit=250#5ea2" rel="alternate"/><published>2023-02-20T11:12:59.251000Z</published><updated>2023-02-20T11:12:59.251000Z</updated><author><name>dkugler</name><uri>https://forge.codesys.com/u/dkugler/</uri></author><id>https://forge.codesys.comf6a2dd8220320596f287af478b8409a019b138b0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;a hint how formatted "printing" of reals in strings is possible:&lt;br/&gt;
&lt;a href="https://forge.codesys.com/forge/talk/Engineering/thread/f05178ced3/?limit=25#904a"&gt;https://forge.codesys.com/forge/talk/Engineering/thread/f05178ced3/?limit=25#904a&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to Convert ascii string to real value?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/757811ea31/?limit=25#e272" rel="alternate"/><published>2023-02-20T01:48:29.289000Z</published><updated>2023-02-20T01:48:29.289000Z</updated><author><name>rickj</name><uri>https://forge.codesys.com/u/rickj/</uri></author><id>https://forge.codesys.com0e262211eb835eacdd1b29c7553722c1d0f0249a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If you are starting with IEE754 (a codesys REAL type) then you could use "SomeString := TO_STRING(UrRealVal);" Probably it would be better to put "UrRealVal" into a TextVariable field and a format (i.i. %2.3f) in the Text field of a viosualization element.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to Convert ascii string to real value?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/757811ea31/?limit=25#fc10" rel="alternate"/><published>2023-02-16T22:02:03.290000Z</published><updated>2023-02-16T22:02:03.290000Z</updated><author><name>ph0010421</name><uri>https://forge.codesys.com/u/ph0010421/</uri></author><id>https://forge.codesys.come5187db3da2eaa297f6d3a592d1d58f9bd88b98c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;that's the bit pattern for an iee754 floating point number, not a string.&lt;br/&gt;
And it's 3.714 not 37.14&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to Convert ascii string to real value?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/757811ea31/?limit=25#df98" rel="alternate"/><published>2023-02-16T13:58:54.331000Z</published><updated>2023-02-16T13:58:54.331000Z</updated><author><name>mzychowicz</name><uri>https://forge.codesys.com/u/mzychowicz/</uri></author><id>https://forge.codesys.com4a60e5ede89d8e3b136d7416766919acddc0cf02</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Does anyone know how to convert an ascii string to the real value? I am taking a hex buffer (42,14,8F,5C) and converting to its ascii equivalent using oscat_basic.BUFFER_TO_STRING. I am now stuck on how to convert this value in its real value (37.140) to display on HMI. Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>