HMI Split long string to 2 lines of text.
Hello,
I need to display a String on the HMI that is quite long. Too long to display on one line.
What would be the easiest way to split this string if it does not go completely on the screen and preferably where there is a space in the text?
(String describes the machine steps so it changes every step)
Or is there a function on the HMI to use 2 lines of text?
I need to display a String on the HMI that is quite long. Too long to display on one line.
What would be the easiest way to split this string if it does not go completely on the screen and preferably where there is a space in the text?
(String describes the machine steps so it changes every step)
Or is there a function on the HMI to use 2 lines of text?
Comments
https://www.plcnext-community.net/en/discussions/multi-line-string-for-hmi.html
... in which case, the string may need to be split in the PLC, and displayed in two or more stacked text boxes.
newLineBuffer is an instance of ARRAY [1..1] OF BYTE.