Announcement

Collapse
No announcement yet.

F0-CP128 and Binary data over RS-232

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • F0-CP128 and Binary data over RS-232

    I am trying to send Binary data streams through the serial port. Has anyone done this?

  • #2
    There are several examples over at www.facts-eng.com
    If you have an urgent issue, please contact AutomationDirect's Technical Support team.

    AutomationDirect.com Technical Support: 1(800) 633-0405 or (770) 844-4200 Email Tech Support

    Comment


    • #3
      special characters

      When I try to use the following line of code, special characters are not transmitted.

      PRINT1 CHR$(17),CHR$(93),CHR$(1),CHR$(77)

      The equivalent of the CHR$(17) is not sent to Serial Port 1.

      Comment


      • #4
        How are you verifying that the characters are not being transmitted?
        If you have an urgent issue, please contact AutomationDirect's Technical Support team.

        AutomationDirect.com Technical Support: 1(800) 633-0405 or (770) 844-4200 Email Tech Support

        Comment


        • #5
          Originally posted by cplummer View Post
          When I try to use the following line of code, special characters are not transmitted.

          PRINT1 CHR$(17),CHR$(93),CHR$(1),CHR$(77)

          The equivalent of the CHR$(17) is not sent to Serial Port 1.
          I'm a little rusty on the CoPro, but I believe it should be:
          Code:
          PRINT1 CHR$(17)+CHR$(93)+CHR$(1)+CHR$(77)
          Circumstances don't determine who we are, they only reveal it.
          Jason Wolthuis

          Comment


          • #6
            He has the format correct. The '+' would be used when concatenating characters into a string.
            thePLCguy

            Bernie

            Comment


            • #7
              Thank you for the correction Bernie.
              Circumstances don't determine who we are, they only reveal it.
              Jason Wolthuis

              Comment

              Working...
              X