<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Fuzzy Logic C++ to ST</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/caa05d2a3d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/caa05d2a3d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/caa05d2a3d/</id><updated>2020-02-27T14:01:11.863000Z</updated><subtitle>Recent posts to Fuzzy Logic C++ to ST</subtitle><entry><title>Fuzzy Logic C++ to ST</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/caa05d2a3d/?limit=25#974a" rel="alternate"/><published>2020-02-27T14:01:11.863000Z</published><updated>2020-02-27T14:01:11.863000Z</updated><author><name>truly-bent</name><uri>https://forge.codesys.com/u/truly-bent/</uri></author><id>https://forge.codesys.com443d18aa624a411cf3e7f294509e0cc299be3561</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It took a bit of head scratching, but the solution presented itself eventually. &lt;br/&gt;
In a few cases, I was creating new objects like this:&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #0040BF;"&gt;IF ((aux := __NEW(fuzzySetArray)) = 0) THEN&lt;br/&gt;
    // do something&lt;br/&gt;
END_IF&lt;br/&gt;
&lt;/span&gt;&lt;br/&gt;
If the object creation is taken out of the IF statement, like this:&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #0040BF;"&gt;aux := __NEW(fuzzySetArray);&lt;br/&gt;
IF (aux = 0) THEN&lt;br/&gt;
    // do something&lt;br/&gt;
END_IF&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;...then the download fault disappears and the simulator is ready to run.&lt;/p&gt;
&lt;p&gt;Find the corrected (..._A.project) file attached to the first post above. &lt;br/&gt;
Jeff&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fuzzy Logic C++ to ST</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/caa05d2a3d/?limit=25#1151" rel="alternate"/><published>2020-02-27T14:01:11.531000Z</published><updated>2020-02-27T14:01:11.531000Z</updated><author><name>truly-bent</name><uri>https://forge.codesys.com/u/truly-bent/</uri></author><id>https://forge.codesys.com859d57e8f714c687c1150f440ea661dd3604e107</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks Edwin. &lt;br/&gt;
Find attached &lt;span style="color: #0000FF;"&gt;.project&lt;/span&gt; file in the edited post above&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fuzzy Logic C++ to ST</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/caa05d2a3d/?limit=25#aa3d" rel="alternate"/><published>2020-02-27T14:01:10.721000Z</published><updated>2020-02-27T14:01:10.721000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com463148d269383b650ffc351edb1b7e0fd3c72d94</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you need to attach the .project file not the opt files…!&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fuzzy Logic C++ to ST</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/caa05d2a3d/?limit=25#0c20" rel="alternate"/><published>2020-02-27T14:01:10.383000Z</published><updated>2020-02-27T14:01:10.383000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com6af618f85adc8ca92f58641faf583f4cbae0b15d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;a null is not equal to a zero, null is nothing mostly 00 hex and a null is a symbol&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fuzzy Logic C++ to ST</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/caa05d2a3d/?limit=25#0828" rel="alternate"/><published>2020-02-27T14:01:10.110000Z</published><updated>2020-02-27T14:01:10.110000Z</updated><author><name>truly-bent</name><uri>https://forge.codesys.com/u/truly-bent/</uri></author><id>https://forge.codesys.combb9ae3dc6b5f48db4db8fd8aa2fda00cc5f62b86</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi All;&lt;br/&gt;
I have been translating the (open source) eFFL Fuzzy Logic library &lt;a class="" href="https://github.com/zerokol/eFLL" rel="nofollow"&gt;https://github.com/zerokol/eFLL&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The persistent problem is that, while the code compiles without errors or warnings, the simulator balks at a download with error: &lt;strong&gt;"C0367 Internal error 3 prohibiting online change! Clean application and download necessary"&lt;/strong&gt;. Cleaning the application makes no difference. I have been unable to track down the cause of the error and was hoping to find some help from someone who might have a better grasp of OOP principals as applied to CODESYS. There is a possibility of a call to an un-instantiated object, but i haven't found where.&lt;/p&gt;
&lt;p&gt;An additional question i have is about the CODESYS "NULL" definition. The code compiles with NULLs, but the editor doesn't appear to recognize it as a defined symbol. I have tried replacing all the NULLs with a numeric '0' - this also compiles without errors, but made no difference to the download.&lt;/p&gt;
&lt;p&gt;Any clues to getting this running would be appreciated.&lt;br/&gt;
Thanks,&lt;br/&gt;
Jeff&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #0000FF;"&gt;EDIT 1: Changed attached file to .project&lt;/span&gt;&lt;br/&gt;
&lt;span style="color: #0000FF;"&gt;EDIT 2: Corrected .project file attached&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=4395" rel="nofollow"&gt;Fuzzy_eFFL r024_A.project &lt;span&gt;&lt;span&gt;[183.92 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>