Help - Search - Members - Calendar
Full Version: Freeing up space in data files (easily)
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
phuz
Hey guys,

I am working on SLC programs for 22 different plants, the majority of them being 5/03 processors.

Whoever did the original programming decided to create an abundance of extra data files...ie, a Timer array of 250 timers, and then only use the last 10 timers in that array, so all that extra space in the beginning of the file is wasted, and since they are at the end, I cannot just simply change the file properties to 10 timers.

There are data files like this ALL OVER, and in all 22 of the programs. Is there a utility of some sort that will take care of all the FIND/REPLACE to shorten data files?

There is going to a lot of extra time added if I have to start moving files around and shortening them to make room for my new program files.

Thanks.
BobLfoot
If you have the ability to offline edit and re-download each program the compaction is a fairly simple 9 Step process.

Step 1 - Open the latest and greatest saved copy of the program with RSLogix 500.

Step 2 - Choose File Save As Library Files *.SLC.

Step 3 - Using a New Blank Program Choose File Open and open the *.SLC library you saved.

Step 4 - When the Import SLC Format window pops up select Indexed rahter than normal.

Step 5 - WIth the Import SLC Format window still open choose the Edit Index Button.

Step 6 - Make edits in the fixup column to compact your data.

Step 7 - Proceed with the import.

Step 8 - Re-Size your data files to as small as you desire.

Step 9 - Save your new program with another name as an *.rss

Step 10 - Download the program into your PLC.


***** DANGER WILL ROBINSON -- DANGER WILL ROBINSON *****

DO NOT RELOCATE REAL WORLD I/O OR HMI TAGS UNLESS YOU PLAN TO REWIRE THE PLC AND OR REPROGRAM THE HMI AS WELL.

***** DANGER WILL ROBINSON -- DANGER WILL ROBINSON *****


My Initial Program
[attachmentid=6222]

My Edit Index Screen Shots
[attachmentid=6224]

My Finished Program
[attachmentid=6223]

phuz
QUOTE(BobLfoot @ May 15 2008, 11:21 AM) [snapback]68952[/snapback]

If you have the ability to offline edit and re-download each program the compaction is a fairly simple 9 Step process.

Step 1 - Open the latest and greatest saved copy of the program with RSLogix 500.

Step 2 - Choose File Save As Library Files *.SLC.

Step 3 - Using a New Blank Program Choose File Open and open the *.SLC library you saved.

Step 4 - When the Import SLC Format window pops up select Indexed rahter than normal.

Step 5 - WIth the Import SLC Format window still open choose the Edit Index Button.

Step 6 - Make edits in the fixup column to compact your data.

Step 7 - Proceed with the import.

Step 8 - Re-Size your data files to as small as you desire.

Step 9 - Save your new program with another name as an *.rss

Step 10 - Download the program into your PLC.


***** DANGER WILL ROBINSON -- DANGER WILL ROBINSON *****

DO NOT RELOCATE REAL WORLD I/O OR HMI TAGS UNLESS YOU PLAN TO REWIRE THE PLC AND OR REPROGRAM THE HMI AS WELL.

***** DANGER WILL ROBINSON -- DANGER WILL ROBINSON *****


My Initial Program
[attachmentid=6222]

My Edit Index Screen Shots
[attachmentid=6224]

My Finished Program
[attachmentid=6223]


Thanks for the advice. Good point about moving HMI tags...I didn't even think of that. Unfortunately, I have no prior knowledge of which tags are HMI unless I export that database as well. *sigh*

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.