Author Topic: Print commands  (Read 11383 times)

tipster

  • Newbie
  • Posts: 7
    • View Profile
Print commands
« 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>

Joel Moore

  • Full Member
  • Posts: 128
    • View Profile
Re:Print commands
« Reply #1 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.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Print commands
« Reply #2 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!
Email: support@triplc.com
Tel: 1-877-TRI-PLCS