1. PLC->System Configuration
2. the Serial Port mode on the CPU Configuration is Do-more Programming by default. You need to change it to General Purpose. I assume you are using Ethernet or USB for programming, otherwise, make sure you have that comm link working before changing this. Hit the Device Settings button to set the baud rate, etc.
3. Use the STRPRINT to generate the message within a STRING element like SS0 (up to 64 characters), or SL0 (up to 256 characters). If you need an even longer string, Do-more supports up to 1024 in one STRING element. Let us know.
4. STREAMOUT SS0 or SL0 (or whatever) out the @IntSerial port Device.
STRPRINT utilizes a very rich formatting script language. You can intermix elements like V10 R22 with string literals, similar to VPRINT
"V10 equals" V10
But there is a bunch of formatting functions for STRPRINT (and EMAIL) instruction. Look for the String Scripting Language Reference in the Help. Just search for
DMD0168 which is the topic number.
Or even better, here's a link to an online version of the Help topic:
String Scripting Language ReferenceAll Help Topic links are active, so you can click on them to browse to related subject matter within your Internet browser.