Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. ckemper
  2. PLCnext Engineer
  3. Wednesday, 08 September 2021
Hi Team,

I have a text in the eHMI and would like to fill it with data from the PLC. Every event will be on a seperate line.
Is there a way of adding a New Line (like \n, 16#0A etc) into the string that is converted to a new line character in the eHMI?

Thanks in advance,
Carel
Martin PLCnext Team Accepted Answer Pending Moderation
1
Votes
Undo
Hi,
You can use the formatting option in the TO_STRING function to generate CR+LF characters, which you can concatenate to a STRING, something like in this answer:
https://www.plcnext-community.net/en/discussions/how-to-insert-cr-lf-into-string.html
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
ckemper Accepted Answer Pending Moderation
0
Votes
Undo
Hi Martin,

That was it, thanks!

Carel
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.