Announcement

Collapse
No announcement yet.

ASCII to Real conversion

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


  • ASCII to Real conversion

    I have a DL205 PLC with a 260 CPU. Connected to the RS232 port of the CPU is sensor that measures compass heading, pitch, roll and temperature. These four values are returned as a single ASCII string of variable length. I have parsed the string so that I have the individual measurements as ASCII sub strings. For each, I know the number of characters. I am having trouble converting this ASCII string into REAL number.

    Does anyone have a ladder logic example they would be willing to share of how to do this conversion.


  • #2
    Have you looked at the example programs here...

    http://support.automationdirect.com/examples.html#com

    Especially EP-COM-008?
    Bob

    Comment



    • #3
      Don't know if changing CPUs is an option, but a Do-more CPU would make that simple.

      Comment

      Working...
      X