Hi All;
I have been translating the (open source) eFFL Fuzzy Logic library
https://github.com/zerokol/eFLL from C++ to ST. I have attached a section of that translated work. Part of the reason for doing this is to reacquaint myself with the ST language.
The persistent problem is that, while the code compiles without errors or warnings, the simulator balks at a download with error:
"C0367 Internal error 3 prohibiting online change! Clean application and download necessary". 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.
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.
Any clues to getting this running would be appreciated.
Thanks,
Jeff
EDIT 1: Changed attached file to .projectEDIT 2: Corrected .project file attached