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,345
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
58
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
87
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
618
Hi, I tried today to get RD3A and WR3A instructions to work on the PLC and it didn't work, but it worked in simulation. I followed the clone...
Replies
18
Views
1,423
Back
Top Bottom