<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Problem with Real type in CoDeSys 2.3</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/7c22ec4fdd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/7c22ec4fdd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/7c22ec4fdd/</id><updated>2020-02-27T19:43:28.571000Z</updated><subtitle>Recent posts to Problem with Real type in CoDeSys 2.3</subtitle><entry><title>Problem with Real type in CoDeSys 2.3</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/7c22ec4fdd/?limit=25#384e" rel="alternate"/><published>2020-02-27T19:43:28.571000Z</published><updated>2020-02-27T19:43:28.571000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com25091ca5e8cc6c9964ea4e5f0d84dfb6288fdf7b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;a real has low precision by nature.&lt;/p&gt;
&lt;p&gt;better to solve it in INT or with textbased math like mathcad, &lt;/p&gt;
&lt;p&gt;if possible try indeed oscat for this, and if still having problems contact us again and we will do your math in text.&lt;/p&gt;
&lt;p&gt;almost inifinte precision is possible.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with Real type in CoDeSys 2.3</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/7c22ec4fdd/?limit=25#62a3" rel="alternate"/><published>2020-02-27T19:43:27.273000Z</published><updated>2020-02-27T19:43:27.273000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comaea2d0d6066484e4433a04519ed4019275fd913b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Carmichael_keith&lt;/p&gt;
&lt;p&gt;Thanks Spfeif, just had a similar problem as this dude and ur idea solved it. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with Real type in CoDeSys 2.3</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/7c22ec4fdd/?limit=25#9389" rel="alternate"/><published>2020-02-27T19:43:23.691000Z</published><updated>2020-02-27T19:43:23.691000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.com130f16f07f3d5768b5ccd399e0354fe4d1700a8a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Check the PROJECT-OPTIONS-BUILD menu from CoDeSys there is a check box for treat LREAL as REAL. Make sure your PLC supports LREAL. I had some problems in the past when a project would not compile. Why do you need 10 decimal places? In other words is this your calculation? Can you do this with interger math?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with Real type in CoDeSys 2.3</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/7c22ec4fdd/?limit=25#e96b" rel="alternate"/><published>2020-02-27T19:43:22.418000Z</published><updated>2020-02-27T19:43:22.418000Z</updated><author><name>Avgur</name><uri>https://forge.codesys.com/u/avgur/</uri></author><id>https://forge.codesys.com33e1624d39e578ba73b248493021bd8b8a9d8229</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;go to &lt;a class="" href="http://www.oscat.de/" rel="nofollow"&gt;http://www.oscat.de/&lt;/a&gt; get the latest Oscat.lib and work with double precision real numbers&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with Real type in CoDeSys 2.3</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/7c22ec4fdd/?limit=25#87d0" rel="alternate"/><published>2020-02-27T19:43:18.871000Z</published><updated>2020-02-27T19:43:18.871000Z</updated><author><name>Claudio-Fi</name><uri>https://forge.codesys.com/u/claudio-fi/</uri></author><id>https://forge.codesys.comf8159ace907104b62964dc04331816abd13b07d8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I need to use a real value, in order to have a precision with 10 decimal figures, eg: 1234.567891 &lt;/p&gt;
&lt;p&gt;The problem is that codesys truncates, my variable at 7 figures eg: 1234.568&lt;/p&gt;
&lt;p&gt;There is a way to use a "double precision" of a 64 bit Real number?&lt;/p&gt;
&lt;p&gt;I tryed to use the LREAL but  when I try to build the project a message say me that LREAL is unsuported type.&lt;/p&gt;
&lt;p&gt;Thank you in advance,&lt;/p&gt;
&lt;p&gt;Claudio&lt;/p&gt;
&lt;p&gt;p.s.: I used like target device a ESX micro.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>