Red Lion G306 raw RS232 comms

gergallardos

Member
Join Date
May 2014
Location
Mexicali
Posts
9
So i have this application where I have to read/write from/to the serial port.
Write has worked fine so far, but it is reading that I have issues with.

Say in my app, i am writing these lines:

TREV
TDIR

And the device should return something like:

> TDIR
*1 - SETUP USES 81 BYTES
*10 - Q5318R USES 148 BYTES
*11 - Q5318 USES 128 BYTES
*12 - Q5319R USES 149 BYTES
*13 - Q5319 USES 128 BYTES
*18 - Q5321R USES 175 BYTES
*19 - Q5321 USES 128 BYTES
*8 - Q5317R USES 148 BYTES
*9 - Q5317 USES 128 BYTES
*20 - Q4451R USES 257 BYTES
*21 - Q4451 USES 128 BYTES
....

How do I do to put each one of those lines in an element of an string array so that I can handle them later?

I am communicating with a Parker 6K2 motion controller.
 
What is the string that is coming back into the redlion.

Hi JeffKiper,

When I use a terminal to send the TDIR command, the controller is returning those lines (or more) in that format. I don't have problems manipulating the data, just catching it.
 

Similar Topics

Happy New Year everyone, I am working on a Prototype project using a AutomationDirect Click Ethernet PLC and a Red Lion G306 HMI. I have the HMI...
Replies
3
Views
1,688
Hello Everyone, I have been playing with the Automation Direct Productivity 2000 PLC for the past couple days. I have a program in the PLC now...
Replies
1
Views
1,855
trying to setup tags in crimson 3.0, when i go to select the address for the tag it has the radix set as decimal, but my programing is binary, any...
Replies
12
Views
4,761
using comm module fc4a-hpc1 (rs232) on idec and connectd to g306 and i have no comm. I believe the settings might be off. Any ideas? Where to get...
Replies
1
Views
1,560
Hi all, I am wondering if it is possible to create a keypad that can be used by an operator to give each data log a name and equipment number...
Replies
3
Views
3,714
Back
Top Bottom