Help needed with RS232 and 877A.

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
dave3456
Posts: 3
Joined: Wed Sep 20, 2006 3:17 pm
Contact:

Help needed with RS232 and 877A.

Post by dave3456 »

:) Hi Folks
Looking for help to interface a GPS sensor unit with a rs232 ascii string ouput to a 877A. The rs232 board tests successfully using rs232.hex.

The string ouput has a CR LF at the end and I hope to evaluate each of the parameters within this string (3 in total) for use within a flowcode program.

Anybody been there or know of anyone who has?

Regards
Dave.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hi Dave

We are looking to implement a GPS E-block in the near future but unfortunatly I have no information about them at the moment and therefore I cannot really help you at this point in time. Let us know how you get on.

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

Hello Dave,

Create an array (e.g. DATA[24]) within Flowcode (how big it is depends on the size of your expected input). Also create a variable (e.g. IDX) to keep track of the index and another (e.g. IN) to read rs232 data. Here's a suggested procedure:

1) IDX = 0

2) IN = read_rs232()

3) if data exists

4) DATA[IDX] = IN

5) IDX = IDX + 1

6) if IN = CR or LF, exit the loop and process data

7) otherwise, loop back to (2)

Post Reply