Studio 5000 Search Replace

SophieA

Member
Join Date
May 2017
Location
Summit
Posts
5
I'm trying to Search and Replace a bunch of different tags after mapping the I/O of a migrated project. The Search - Replace Limit is set to 'Text Only' and grayed out so I cannot change it. Help states to:

"Choose an option from this menu to configure what the Find What field represents.

Note: This option is not available if you are searching within the Tag Editor/Data Monitor."

I am not in the Tag Editor, so I am stumped here. I've tried to use the Search and Replace browsers (box with the 3 dots) to select the exact tags of interest, but it still just looks for matching text strings and goes to work, and in the process has created a bunch of undefined tags sprinkled all over various subroutines. Beautiful.

Thoughts from more experienced users of 5000 - pulling out my hair.
 
I usually use Ctrl F, it brings up the Find and Replace Tool
 
Have to be careful, i always save before a Search and Replace for just this reason. I don't know a workaround other than to pay close attention to what you're actually trying to replace.
 
This is all Off-Line.

If I start with just 'Find' the 'Limit' is selectable, so I choose 'References to exact tag and its members', but as soon as I click on 'Replace' the 'Limit' defaults back to 'Text only'.

This seems like a serious shortcoming of the program. I've used Search - Replace on other PLC editors with no problem. It is such a fundamental task that I've got to believe I am missing something.

I've gone to doing a 'Find', and then individually editing the tag name on each rung. But with dozens of instances of some tags this is a burden.
 
I don't know if you're doing what I think you are, but I did a complex project where I used Control "F" and the replace feature to change a lot of tags. I didn't do anything with the limit or reference to exact text. If I had a tag "AHU_9_HEAT_SP" and I wanted it to say "AHU_10_HEAT_SP" like I'm doing now, then I copied the first tag into the replace with box and made my edit. If I remember, it won't carry over descriptors. I had to use a CSV for the descriptors. I brought them in first and then the tag would populate it's descriptor when I created it.
Be careful to only select "This Routine". I accidentally did a whole program and had to delete it and import it in and start over. If you already knew all this, then sorry for wasting your time. Good luck.
 
saultgeorge - little different as all my 'new' tags are all defined in the I/O mapping routine. Now I just need to replace the I/O alias tags throughout all the other routines with the mapped I/O tags. But as I said before, it is not replacing tags, but replacing text strings.
 
Have you tried saving the project to an L5K file and doing the edit/replace in a text editor?

We do this on a regular basis with programs and routines, occasionally on full projects.

The text being replaced has to be fairly distinctive.
 

Similar Topics

I was just curious if there is a way to search for a description of a boolean contained within a DINT/INT. For instance, I have a DINT[1] named...
Replies
6
Views
2,272
I usually do production support and I am the guy that comes behind someone else's program and try and debug.Often I see code that looks like this...
Replies
3
Views
3,870
I recently did a program conversion from logix 500 to studio 5000 and when machine runs it depends on two ton instructions to keep the machine in...
Replies
17
Views
323
Hi Everyone. Not posted on here for a long time, but I am hoping someone can help me. I am doing a differential pressure calculation in a L27ERM...
Replies
16
Views
382
Back
Top Bottom