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

OnlineManager error when writing/reading variable

williamc
2014-01-23
2014-01-24
  • williamc - 2014-01-23

    Hi,

    When I try to write a variable through script I sometimes get the error:

    Error : The OnlineVarRef at position 1 was not created by the OnlineManager.
    Parameter name: variables

    I can write to this variable many times without an issue then I get this error.

    Does anyone know what it means, and how I can resolve it.

    I know this is a bit light on details so if any more detail will help let me know and I will add it.

     
  • mkeller - 2014-01-24

    Hi.

    williamc hat geschrieben:
    Error : The OnlineVarRef at position 1 was not created by the OnlineManager.
    Parameter name: variables

    The second expression of your prepared/forced values was not recognized as an object of the Online Manager. This error can only happen if the element is a null reference or an unknown OnlineVarRef implementation. The null reference could be a timing issue.

    Is it always the same position in the same order of expressions or a different position but the same expression?

    Can you provide more information about your script?

    Regards,
    Martin

     

Log in to post a comment.