FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
09-29-2023 12:15 PM
I got an example PLC program that works perfectly on other controller. The program can be loaded but cannot be started. The error can be seen in the photo. Tested with real CORE X3 and virtual one. Any idea what's wrong? Thanks.
Solved! Go to Solution.
09-29-2023 03:31 PM
Hi,
probably there is not activated checkbound() function in another controller. The function shows you that there is some access to array in your project where you get over the array size.
Check your arrays and indexes wheter you don ´t increment index too high somewhere.
Regards, P.
10-10-2023 09:12 AM
I understand your reply, however exactly the same code is running on other devices (like WAGO PFC200 and CC100 including ABB) in native Codesys, which is where my confusion lies, as these have no errors and run fine.
It would be great to understand why this issue is only present in the ctrlX development environment.
10-11-2023 08:03 AM - edited 10-11-2023 08:04 AM
When there is an array overrun, you must fix you code. Otherwise you read/write data outside of the array.
Independent on your statement that any other environment does not recognize the problem. Instead of asking:
Why is there an compile error on ctrlX, you must ask why there is no compiler error on other systems.
One possible answer was mentioned by pade.