getting a long ASCII message into a SLC 504

eccan

Supporting Member
Join Date
Jun 2006
Location
TN
Posts
22
Hello All
Here is my challenge. I have a leak tester that sends ASCII data out continually during it's test. At the end, it sends the test name and results. All I need in my PLC is this test name & results. Is there a way to constantly dump the ASCII buffer to a string until the message is finished? I tried toggling two ASCII reads (ARD) until the data stops coming, but don't always get the entire message.
Here is what the data looks like at the end (from hyperterminal)- the Gž³Cˆƒä< data is streaming throughout the test. I can parse out the results (WATER, date, time, etc) if I can just capture the last of the date.

G›³Cˆƒä< Gœ³Cˆƒä< G
³Cˆƒä< GŸ³Cˆƒä< G ³Cˆƒä< G¡³Cˆƒä< G¢³Cˆƒä< G£³
C@HŽ< G¤ìö²Cˆƒä< G¥³Cˆƒä< G¦³Cˆƒä< G§³Cˆƒä< G¨³Cˆƒä< G©³
Cˆƒä< M000,01,02,02 WATER ,06-08-2010,14:32:03,+000358.,+0000.03,AC
 
You might think about using the BASIC module. You can use 'GET' until the 'M' appears (if that is a guaranteed first character) then switch over to getting a line.
 

Similar Topics

Long time lurker that usually finds answers on plctalk.net using search, but not this time. I have a conveyor control system with three MicroLogix...
Replies
1
Views
2,352
Hi how's it going. Was just wondering if someone could help me out. Recently one of the guys over on the LinuxCNC forums put me onto getting an...
Replies
15
Views
326
The application was working in Twincat 4022.16 Used VM for offline. recently changed the laptop and the getting the error with Message as below...
Replies
0
Views
84
We are using wincc scada WinCC system software V7.5 SP2 , connected to few plc . Past 3 weeks we getting this alarm continously when we checked...
Replies
0
Views
115
I am very, very new to PLCs. I only have experience with Picos, but I knew enough to save this from the dumpster. Apparently, everything on it is...
Replies
13
Views
711
Back
Top Bottom