I have tried to include 10, 13 and both of them in the string in the PLC, but with no luck. One of them is removed and the other becomes a blank space. I can’t remember which one did what.
I did see the tips and I have successfully used Alt+255 for a blank space. That was a great victory
The solution I have come up with is to allow for the user to enter the string and insert up to three ‘#’-characters where they want the line broken. Then the PLC will split the text and put it to four text fields on the screen; one line each.
I am then putting a string containing Alt+255 (Hex FF) in any field with no text to make the default display of “- - -” go away. I want my fields to be compleately transparent when there is no text present.
I am also working on a second solution which will make a news-ticker type display. The PLC will move the caracters in the string along, making it look like it is scrolling the text across the screen.
It would be awesome if the text fields can word-wrap. It will save a lot of string manipulations, something most PLC’s aren’t great at. Especially in ladder logic
Some tips for other users reading this regarding string fields in gadgets and wanting to use ALT-codes for characters.
The 255 code, at least on my computer, must be entered on the key-pad. Not the numbers along the top of the key-board. I have a laptop, so that means I have to first press ‘Fn’ to activate the keypad, then ‘Alt’ and then ‘255’ (‘kii’ on the keyboard). I have been using Alt+0176 for degree symbols, so my first tries were to use Alt+0255. That does not work…
So, if you are struggling, try the things above