Hi,
I have added UDT defination as machine and under i have added N:7.0 and F:8.0, but when add this into UDT instances for machine-1, its showing the same as N:70 and F:80 and for machine-2 also showing the same as N:7.0 and F:8.0 and till machien-10 showing as showing but we can change the OPC path..
How can i change the name as like as Machine-1 = N:7.1 and F:8.1 and machine-2 = N:7.2 and F:8.2 to till machine-10 = N:7.10 and F:8.10.(Note: These tags taken from SLC simulator).
find the images below.
Hm, I'm not sure why you would want to change the names of the UDT members. Having them named for their function is more useful than having them named for the tag in the controller--especially as the addresses don't mean anything. Having them named consistently is what allows templating to work.
2 Likes
Hi,
its getting override against the tag as having the same tag name as you can see in the above pictures like N7.0 for all the machine. I want to represent each tag for each machine with respect to the number.
could you please help me to identify this..!!!
You need to define parameter for a machine number and then use it in your tag name and tag path
UDT Parameters | Ignition User Manual (inductiveautomation.com)
You need to apply the same parameter you used for Machine{param} to your tag name N:7.{param}
That does not work for tag member names.
Otherwise this is good information. Once you set the OPC paths to use the parameter you can use the Multi-instance Wizard to create instances with an incrementing machine number. That will eliminate the need to override each UDT instance.
The point of my previous post was that you should name the UDT members what they actually represent, be it a count, percentage, or other value (such as pressure or valve position). That way, when you create a graphic, you can pass in each tag path as a reference and not have to have 10 versions of that graphic.
If you haven't already gone through it, Inductive University is an excellent resource to learn about UDTs. Understanding UDTs Video at Inductive University
1 Like