using Controllogix 5000

unsaint32

Member
Join Date
Oct 2012
Location
minneapolis
Posts
365
In the tag table window, is there a way to display only the tags that are actually used in programs, rather than showing all tags that are generated when I add modules?

thanks
 
There are a number of filters you can apply to the tag display. The filters are in a drop down list at the top of the table and you can also use your own filters and wildcards.

Tags generated when you add modules are used tags, unless you delete the module.
 
There are a number of filters you can apply to the tag display. The filters are in a drop down list at the top of the table and you can also use your own filters and wildcards.

Tags generated when you add modules are used tags, unless you delete the module.

I see the following filter options:
unused
produced
can be forced
alias
consumed

I guess there is no way to select a display that is the opposite of the "Unused."

Thanks.
 
You could delete the unused tags, leaving you with a display of used ones only.
 
You could delete the unused tags, leaving you with a display of used ones only.
As a maintenance guy in a plant with over 100 PLCs, I don't think it is timely feasible to delete the unused tags. I just wanted to use something like the filter to narrow the display to the tags that are actually included in the routines. And it looks like I can't do that. Why wouldn't Rockwell include the filter called "used"?
 
As a maintenance guy in a plant with over 100 PLCs, I don't think it is timely feasible to delete the unused tags. I just wanted to use something like the filter to narrow the display to the tags that are actually included in the routines. And it looks like I can't do that. Why wouldn't Rockwell include the filter called "used"?

Ideally, if the programmer made use of "Program Scoped" tags, you could use the tag browser in each Program to just view the tags related to that program.
 
could you possibly open a watch window and select view current routine. This would give you a list of all tags you may interested in viewing
 
As a maintenance guy in a plant with over 100 PLCs, I don't think it is timely feasible to delete the unused tags. I just wanted to use something like the filter to narrow the display to the tags that are actually included in the routines. And it looks like I can't do that. Why wouldn't Rockwell include the filter called "used"?

Because a good programmer doesn't leave a tag database full of unused tags, and so the unused tag filter is more helpful when cleaning up a project. I for one never leave any unused tags. Don't see why it's such a huge task to filter by unused and delete them, leaving effectively what you're after...a tag database of used tags. Maybe Rockwell thought the same thing :)
 
Because a good programmer doesn't leave a tag database full of unused tags, and so the unused tag filter is more helpful when cleaning up a project. I for one never leave any unused tags. Don't see why it's such a huge task to filter by unused and delete them, leaving effectively what you're after...a tag database of used tags. Maybe Rockwell thought the same thing :)
I see. The thing is, I'm not allowed to delete anything in the program. Also, I'm sure there are some unused tags that are made by the eng dept for future uses.
 
Last edited:
I see. The thing is, I'm not allowed to delete anything in the program. Also, I'm sure there are some unused tags that are made by the eng dept for future uses.

If the engineering department have put tags in a controller for "future use", then they should have put references to those tags in the logic, even if it is in a subroutine file that is not called. That would stop them from being deleted.

Best case scenario is that all the tags you see in the database are "in use", so there's no fog to see through.

Worst case scenario is that when the eng dept. come to use a tag they thought they had already created, it won't be there and they'll have to create again.

And, strictly speaking, deleting unused tags is not deleting anything in the program, nor can it affect the program in a any way.

As already stated, a well-written and maintained application will not have anything in the database that isn't needed.

BUT, it is possible that there are tags in the database being accessed externally, eg. HMIs, SCADA, Data-Loggers, etc. The code may not exist in the controller (yet) to service this data, but the external system may be reading writing them. If you delete these tags, you may be affecting other systems.
 
..

As already stated, a well-written and maintained application will not have anything in the database that isn't needed.


I don't think this is entirely true. Arrays and UDTs can easily have unused elements/members. Standardized UDTs, AOI's may have functionality that may or may not be required pending the process.

For example, a analog input AOI. I built one, and added a weight calculation function. It may or may not be required but it's a feature that could be enabled depending on the analog input and process needs. So, while the UDT base tag is used members of that UDT could go unused, which "generically" speaking the "tag" AnalogInput.Percent might be used but the "tag" AnalogInput.Weight may not be used.

The UDT is technically "used" however not entirely.

We also will create arrays of UDTs as controller-scoped tags. This keeps everything nice and compact, but then alias to other controller-scoped tags or program tags (depending on the function). So it's possible an element of the UDT tag array may or may not be used.

So to me "well-written" means the tag structures are organized, standardized and efficient the trade-off is not everything is used but you have visibility as to what CAN be used, or what functionality COULD be implemented.
 

Similar Topics

Good Afternoon , I was wondering if any of you folks have communicated with a Foxjet Marksman Elite Printer. The reason I ask is that we...
Replies
1
Views
1,610
I have a Controllogix5000 system that I am retrofitting a quantity of 4, Powerflex 40P Frequency Drives onto the system. Two of these drives have...
Replies
1
Views
1,974
The PC I have has RSLinx v2.52 installed with VisualBasic 6. I saw a few examples with POKE's but they were using PLC 5. Am I supposed to add a...
Replies
0
Views
1,861
Hello all, We have a customer with about 10 PLC's which they want to synchronize the time (TOD, date, etc). These are mostly 1756-L82's with...
Replies
6
Views
2,272
Read and write the Tags direct using pycomm3 and LogixDriver. Just in case anybody wanted to know. Here's a sample: from pycomm3 import...
Replies
0
Views
789
Back
Top Bottom