Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

No online change possible

alexgooi
2023-01-12
2023-06-16
  • alexgooi

    alexgooi - 2023-01-12

    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
  • jickisticki - 2023-03-10

    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

Log in to post a comment.