Alias tag guidelines, Example – Rockwell Automation 1794-Lxxxx PhaseManager User Manual
Page 53

Publication LOGIX-UM001B-EN-P - April 2010
53
Guidelines
Chapter 3
Alias Tag Guidelines
Program-scoped tags and phase-scoped tags make your code easier to reuse.
Make the tags aliases for tags at the controller scope. If you reuse the
equipment phase (for example, copy/paste), simply point the phase-scoped
tags to new tags at the controller scope. This reduces address fixes within the
code.
Example
The controller automatically makes a tag for an equipment phase. The tag is at
the controller scope (controller tag). Suppose you plan to reuse an equipment
phase for a different part of your tank.
1. Make an alias tag for the first equipment phase. Make the tag at the
phase scope and point it to the controller tag for that equipment phase.
2. Use the alias tag throughout the code of the equipment phase (This
Phase).
3. Make a copy of the equipment phase.
4. Point the alias tag of the copy to its controller tag.