Internet PLC Forum

General => Technical support => Topic started by: tipster on November 15, 2004, 11:53:48 AM

Title: Print commands
Post by: tipster on November 15, 2004, 11:53:48 AM
Is it possible to append a <LF> AFTER the default <CR> character, while using the PRINT command?
I am trying to send commands to an RS-485 device which requires this protocol     "command character",<CR>,<LF>
Title: Re:Print commands
Post by: Joel Moore on November 15, 2004, 02:05:17 PM
I doubt it.  Have you tried using OUTCOMM to send your commands instead?  A little more work but you'll have more control I think.
Title: Re:Print commands
Post by: support on November 16, 2004, 08:54:21 PM
Try this:

PRINT #1 "This is a test string"+CHR$(13)+CHR$(10);

don't forget the semi-colon at the end of the statement!