Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: PLCwannabe on February 19, 2022, 09:42:02 AM
-
I,m using multiple Print to string to write an alarm email message. Is it possible to have each new string added to email, to start a new line within the message. So instead of SL1 SL2 SL3 SL4, I need
SL1
SL2
SL3
SL4
-
I,m using multiple Print to string to write an alarm email message. Is it possible to have each new string added to email, to start a new line within the message. So instead of SL1 SL2 SL3 SL4, I need
SL1
SL2
SL3
SL4
In the STRPRINT or the EMAIL instructions, you can use "$N" after the end of each string which translates to carriage return, line feed ("$0D$0A"). In the Print Script of those instructions it would look like:
SL1 "$N" SL2 "$N" SL3 "$N" SL4
-
Awesome, thanks.