Studio 5K "direct access" broken?

I've written a few programs within a v24 project that reference other programs' parameters, for example:

\MainProgram.DI_Emergency_Stop

This tag is aliased in MainProgram to Local:1:I.Data.0 (1769-IQ16).

What has been happening (in this and any other such direct access to alias) is that the "\MainProgram.DI_Emergency_Stop" reference in any program randomly changes to a direct reference to the I/O card itself: "Local:1:I.Data.0". This makes code readability and documentation much more difficult than we should tolerate.

Searching on this was fruitless, so has anyone else noticed or found a solution?

Thanks!
 
No Clue as to the above, but you may find it easier to have a pile of XIC -> OTE for inputs with IO to a UDT element that means something to you.. Opposite for outputs..
 
I've got a vague idea that it's because of the way the PLC compiles the code. The PLC itself doesn't care about the alias, it's only us humans that care, because as you say, it's more readable to us.

So if at some point that part of the program has been uploaded from the PLC and overwritten the offline file, you'll just get the base tag.

Don't quote me on this because it's just a vague memory from a similar discussion on this form a couple of years back which I can't find right now. But that may be ballpark close to the answer!

As Lemming alluded to, this is one of the many reasons I like to have I/O mapping routines and map all the physical I/O to global tags
 
This morning an alias IO tag *local* to a program itself transformed to a direct reference to the card.

I have only ever seen this and can repro in v24, has anyone else?
 
To update:

I can only suspect the .ACD file may have been mildly corrupted during a failed download. I went offline, made all my changes, double-checked the alias reference and rung use, compacted, saved, then downloaded to the controller.

So far no missing alias, but I'll update if this happens again.
 
Structured Text alternatives seem to maintain the correct reference.

To date, I cannot reproduce this issue on a ControlLogix processor, but it has so far been isolated to a CompactLogix. (both are running v24 code)
 

Similar Topics

Does anyone have any contact info for a company that can do a Direct Logic 6 to Studio 5000 rewrite. They arent crazy complex programs just on the...
1
Replies
306
Views
After looking into this for a while I couldn't find much information about this so I am curious if this is possible or not. I am trying to use...
4
Replies
1,079
Views
Hi guys, we upgraded to Studio 5000 Logix Designer V37 recently and have found that it's unable to resolve some of the indirect addresses which...
11
Replies
1,900
Views
Hi, I have been trying to run drive via Sysmac studio. I can ping the drive. I can see the logic bits going on/off as per command. But, drive is...
21
Replies
3,507
Views
I have upgraded an old RS500 project to Studio 5000, it has thrown multiple errors which I am currently working through. I have looked through...
8
Replies
2,879
Views
Top