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

variable is no valid assignment target error while compiling

tabin
2023-06-23
2023-06-23
  • ojz0r - 2023-06-23

    It looks like you are trying to write (assign) to inputs (%IX0.x) instead of outputs (%QX0.x).

     
    • tabin - 2023-06-23

      how can i fix it .... i am new to codesys. can you pls?

       
    • tabin - 2023-06-23

      how can i fix it .... i am new to codesys. can you pls?

       
  • ojz0r - 2023-06-23

    You need to change it in the "var" section at the top.
    Ex: "y1 AT %IX0.5 : bool = 0;" -> "y1 AT %QX0.5 : bool = 0;"

     
    πŸ‘
    1

Log in to post a comment.