Got a huge strategy you’ve inherited from someone else? Just want to clean up a little before you call it “done”? What methods do you use to clean out some of the deadwood to get your strategy clean, lean, and easy to maintain?
Of course, we always suggest backing up strategies, especially working ones, before making major changes, and on a regular basis in case something goes wrong: [URL=“http://www.opto22.com/site/optonews/2009/optonews_09092009.aspx#PSGTip”]BACK IT UP (Click here for more on backing up)!
Here’s one thing to look at if you suspect there may be unused variables taking up space and using extra memory:
When looking at your strategy tree in PAC Control in Configure Mode, you can double-click on many parts of the strategy tree, including: Variables, I/O Units, Points and PIDs. When you double-click on one of these yellow folder icons, you will see a summary list, including how often each is referred to in the strategy.
Then click on the column heading Ref Count to sort by that column, putting the possibly unused items, those with Ref Count 0, at the top.
[FYI - if this image doesn’t appear, log into My.Opto22 to see all OptoForum images]
Note: Before you start deleting all those with Ref Count zero, consider whether something else (PAC Display, a third-party HMI/SCADA like Wonderware, etc.) might be using that tag to store some data not referenced by the strategy itself.
Also remember to add lots of comments and variable descriptions as you go. While YOU may know what this chart or variable does TODAY, the next person to work on it may appreciate a clue. Also remember that next person could be you, in 22 months or 22 years!