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

Strings with control characters

Anonymous
2017-11-09
2017-11-10
  • Anonymous - 2017-11-09

    Originally created by: AntonZ

    Is there an elegant way to construct strings with control characters (e.g. ascii TAB, ETX, STX etc)?

    I have used "POINTER TO BYTE" to set byte values on specific positions in a string, in essence treating it like an array of bytes. But it seems to me there must be more elegant ways to construct a string holding quite some of these characters.

    Just in case someone wonders what I'm up to: this is used to send strings over RS485 to a LED display. The display requires a substantial number of additional control characters in front of and after the text that is to be shown.

     
  • Anonymous - 2017-11-10

    Originally created by: AntonZ

    That's just what I needed. Thank you, much appreciated.

     

Log in to post a comment.