Text extraction in RS Logix 5000

Evirua

Member
Join Date
Aug 2018
Location
Here
Posts
34
Is there a way to import & extract specific values from a .txt file into a tag value (within an array) in RSLogix 5k?
 
Best way is to use Excel and a DDE function to/from RSLinx (search this site there are several examples). Then you setup a column of addresses and the value next to it and do a DDE write.


Another simpler way is to use an Excel macro to use SendKeys function and write it online. I use that for PLC's where the comments are stored in the PLC to write new comment while online in run mode.


There is also sample code on the AB site to read/write values to/from the SIM card, but it's very complicated code.
 
Last edited:

Similar Topics

I´ve being trying wrap head around FOR loops.. When and what can this be used for? I´ve mostly seen it move data, resettting arrays etc. I made a...
Replies
13
Views
383
Hi! When is CASE preffered? CASE uses a numreric variable for the cases and doesnt handle BOOL, but this can be done with numreric and bool using...
Replies
4
Views
171
Hello everyone, Wondering if anybody can help me with this: I have a CompactLogix processor running a little robot cell. Every 200 cycles...
Replies
8
Views
188
Hello, doing switch from FBD to ST. First task is converting my old work. How do you sum variables? For example, Interlock1, interlocl2 and...
Replies
5
Views
218
Hello, I am using studio 5000 pro and am trying to figure out the structured text. Here's my scenario: An operator scans a barcode, the barcode...
Replies
15
Views
386
Back
Top Bottom