CSV Serial String RSLOGIX5000

JDCROCKETT724

Member
Join Date
Jun 2010
Location
Michigan
Posts
249
I have a device that reports back multiple data points in a string seperated by commas. Is there an easy way to extract each data point to a tag? The only way I can think is to find the location of each comma and then extract the data between each one. Possible, but there has got to be an easier way.
 
I think you already have the right idea.

STOR and STOD instructions pull the first number from the String, and will stop when they find a comma. But they don't affect the source String.

I'd say use FIND to find the comma, MID to pull out the number before the comma, then STOR or STOD.

It would be a neat application for an Add-On Instruction !
 
If you can post a couple of examples of the strings you receive, details of the data you are collecting, etc., I can have a look at an AOI parser...

Got to get an idea of the whole formatting.....e.g. Is the data presented as "fixed-length" (i.e. always same number of characters, (leading zeroes)), that sort of thing.

We have to present to the STOR and STOD instructions strings that can be converted, otherwise it won't work
 

Similar Topics

Good morning, I have a Emerson/GE PLC with Cimplicity SCADA. I need to export data of a specific point/object to a CSV file and load the CSV file...
Replies
7
Views
283
I am trying to import addresses and symbols from a PanelBuilder32 application into the RSLogix 5 Address/Symbol database - however each time I...
Replies
5
Views
534
Hello guys, Im using a siemens with WINCC in a computer and need to import to tag´s data fom a specific row in a SCV file, i have a working...
Replies
15
Views
1,688
Hi. About 18 months ago a did a CODESYS project using the CSV Utils from the IIoT libraries. I am trying to reuse what I did and it does not...
Replies
1
Views
387
Hi Everyone, I am hoping a Red Lion Expert can point me in the right direction. I am experimenting with data logging on a CR3000 10" screen...
Replies
4
Views
603
Back
Top Bottom