Studio 5000 - Alias Tags

The method I use for this is to put zz in front of the existing tags (zzTputSta01), create the new and correct aliased tag (TputSta01)., replace all the uses of the wrong tag in the code, and then delete all the zz tags. You should be able to do this online.
 
The better method is to map I/O and not use alias tags at all. Aliases were a good idea in theory, but practical use sucks.
I'd say aliases are simply misunderstood and used for stuff they shouldn't be... Aliasing IO is pretty stupid and somewhat pointless, aliasing plant objects like valves and motors is pretty much the only way available to have modularity in Rockwell.
 
Alias tags have their place. For I/O, when I do use them, I alias an intermediate tag that the actual h/w point is mapped to. Yeah, its a 2nd layer of "indirection" but if the actual i/o point fails, its a simple change to the mapping rung.
For other uses, as cardosocea points out, it can make the job easier.
 
Alias tags have their place. For I/O, when I do use them, I alias an intermediate tag that the actual h/w point is mapped to. Yeah, its a 2nd layer of "indirection" but if the actual i/o point fails, its a simple change to the mapping rung.
For other uses, as cardosocea points out, it can make the job easier.
I may not be following your method well. You alias an intermediate tag to the physical IO point and then map that to a usefully-named tag that's used in the code? Is it so that your physical IO point can have its "hardware tag" be simple and meaningful in itself? Like, say, "IN001.0" instead of "Local:1:I.Data.0"? And then map IN001.0 to PB_AlarmReset that's used in the code?
 
Example: I create a very descriptive tag "Product_In_Position_At_Conveyor_Stop" and alias it to the tag xxxYYYzzz. The very descriptive tag is used in my logic.
A mapping rung sets the tag xxxYYYzzz to follow the actual hardware input. XIC Local:1:I.data.0 OTE xxxYYYzzz.

Later on the input gets buggered up and the electrician wants to use an input on another module. He only has to change the mapping rung to get the logic to work. XIC Local:3:I.data.7 OTE xxxYYYzzz.

In this case it adds an extra layer of indirection that isn't really needed - just don't make Product_In_Position_At_Conveyor_Stop an alias and use it where xxxYYYzzz is set. But it illustrates out to get around having to redefine an alias and skipping a download. I have used this method for complex tags that are UDTs.

Sorry for the confusion.
 
Only time I've seen alias' is when they are buried inside the logic, which makes it hard to see the IO in 1 place when troubleshooting and putting test bits around when needed
I don't believe I've actually used them unless explicitly told to

I have an IO routine, which directly ports the IO into tags with XIC... OTE or MOV
This way, if IO changes, its a simple change. Also if I need to sim, I can just create another routine and use that routine instead of the physical IO routine
 
I have a historical question: were aliases a common way to interface between programs before programs had parameters?

Currently I reference other programs' local tags by setting them as Public parameters.
 

Similar Topics

So I started a new job and I inherited a frankenstein's monster of a project. I just stumbled on to something that I don't know if it's an issue...
6
Replies
428
Views
In my mind there is a clear rationale to favour the use of input map routines with compactlogix controllers. The inputs are updated...
5
Replies
3,703
Views
I'm new to AB and I'm running into a lot of things people tell me can't be done in AB that actually CAN be done, so I thought I'd ask here if...
3
Replies
12,126
Views
Hello all, I have a hindsight question, as I have a working system, but thought it would be good to ask if anyone has suggestions or criticism. I...
2
Replies
124
Views
8
Replies
370
Views
Top