Hi Dear,
My question about the tags, what the differences between Base and Alias and the other tags? when we have to use an alias tag or a base tag?
An alias tag references the Base tag, almost like indirection.
Sometimes people make over-use of Alias tags, but where they would
most likely be used is when addressing Inputs and Outputs.
Suppose you had an output module, in the same chassis as the controller, in slot 4. Bit 7 of that output module would have the physical address ....
Local:4:O.Data.7
You cannot change that address, it is fixed and the "Local:4:O" tag is automatically created when the module is added into the I/O configuration.
If you coded that output without an alias to it, you would have to use documentation to "see" what that output was driving. Whereas if you create a tag that Aliases to it, for example "Flywheel_Clutch", then you can immediately see what the function of the output is, without adding documentation.
Although an Alias tag is a separate entity in the tag databases, both the controller itself, and the Logix5000 programming software, read and write the state of the Base tag, seamlessly, without you knowing much about it.
One word of caution .... it is possible to create multiple Alias tags, aliased to the same Base tag. I have seen this done when an inexperienced programmer wrote code to address an input, for example "Cycle_Start_PB". However, he addressed his code to "CycleStart_PB", saw that it wasn't a valid tag, and created it as an alias tag to the physical input. We then had two alias tags, "Cycle_Start_PB" and "CycleStart_PB" bothe referencing the same base tag. It all
works OK, butit can make fault-finding, and troubleshooting a nightmare !