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

Text List Fallback Value

5 days ago
  • phoward131 - 2024-03-22

    I am relatively new to Codesys and I'm trying to develop an HMI that displays what mode a particular device is in based on an integer value. I am currently using dynamic texts with a text list which works fine but I am looking for a way to display a particular string (ie 'Unknown') when the index doesn't match any of of the indices in the text list. I can enter 'Unknown' in the text property of the text field element which works as expected but it displays the single quotes on the visualization. How can I escape these quotes to simply display the word Unknown? Thanks!

  • tomas111 - 6 days ago

    What version of codesys?
    Need to avoid in any specific element?
    Try writing %s in the text, it should work. Or better yet, attach a screenshot.

  • dkugler - 5 days ago

    why you adding this ' ' ? you don't need them in the text field :-) delete them, write only Unknown and everything will be as expected


Log in to post a comment.