One potential solution would be to wrap the variable you are trying to modify in a control block (such as a switch or if statement). This way, depending on the conditions, you can prevent the property from changing while other tasks are being processed.
You may also want to consider increasing the operating system priority of the task you wish to change the property with to ensure it always runs MLSDev https://mlsdev.com.
Finally, you could try adding additional memory protection to the controller and add a reset point so that the program can be restarted when the change is attempted.
I hope this helps. Programming, web design, mobile apps, data science, software engineering, analytics, IT consulting.
Last edit: jickisticki 2023-03-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear forum,
I'm currently running into a problem where Iβm not able to do an online change in the controller.
The IDE states that the code position is an getter(property) from an interface.
I have found the following post online.
https://forge.codesys.com/forge/talk/Runtime/thread/3c63ae0a97/
In this post the solution is to set a different priority for each task. I have tried this but this doesn't seem to solve the problem.
Also setting a longer cycle time doesn't solve the problem.
How can I solve this problem
Thanks in advance
Last edit: alexgooi 2023-01-12
One potential solution would be to wrap the variable you are trying to modify in a control block (such as a switch or if statement). This way, depending on the conditions, you can prevent the property from changing while other tasks are being processed.
You may also want to consider increasing the operating system priority of the task you wish to change the property with to ensure it always runs MLSDev https://mlsdev.com.
Finally, you could try adding additional memory protection to the controller and add a reset point so that the program can be restarted when the change is attempted.
I hope this helps. Programming, web design, mobile apps, data science, software engineering, analytics, IT consulting.
Last edit: jickisticki 2023-03-24