Is there an easier way than the following? I think I’m over-complicating this…
I am trying to link a PLC to a project, where this PLC can change dynamically across the entire project (depending upon user login, location, etc.). I am using a client tag called PLCName (string) that points to the name of the PLC being used in the project, but I am having a hard time trying to use as little scripting as possible. I want to be able to change PLCName and all tags in my project are referencing that PLC.
For buttons and other things I have to use the Script Editor to read the PLCName from the client tag, and write to PLCName+baseTag (especially with pop-ups passing in the tags as strings). For numeric labels it is a little easier to use an expression like
Too complex? Easier solution? I’m open to ideas, but my tag paths are fairly rigid at this point.
TL;DR - Same project, different PLCs for different areas/users. If PLC changes, tag references change. Easy or not?