I have 3 production lines that are identical that run A-B PLCs. In the global tags I have sections for Blade, Feed, etc. and in each of the sections/folders the same tags repeat such as, Driveovervoltage Fault or GroundShortFault. I would like to make an instance for each line’s seperate sections. Example Line 1 Feed, Line 1 Blade, and so on. I have all the tags that are shared from one of the lines in the UDT definition already. I have also made the instances for the above mentioned sections, but they are still displaying information from the original OPC item paths that I set in the UDT definition. Is it possible to set a parameter so that each instance will pull values from their respective OPC item paths? I have found motor and sensor examples, but they appear to be in the same machine. If this is not the correct way to do this, what is the best way to accurately display these faults for each line in a view?
Yes, it is typical to have a UDT parameter that supplies the necessary part of the OPC Item Path. (I usually have the param supply a complete prefix.)
Then you edit the OPC Item Paths in the UDT definition to use the parameter.
I recommend getting one of the UDT member tags working with the parameter, then exporting the UDT as JSON and fixing the rest of them in a competent text editor.
Note that these props with parameter references in the values are created as bindings which you’ll notice in the json (the values are objects, not static strings). Beware that when you find replace the other tags.