I am used to using tag property substitution within the definition of tags inside of a UDT. So, I would've expected the same property substitutions to work in a standard tag definition.
For instance, in a UDT it works to define the OPC Item Path as such:
ns=1;s=[{Device_pump}]{AOI_Name_pump}.{TagName}
Where {Device_pump}
and {AOI_Name_pump}
are parameters to the UDT.
However, it seems I cannot use {Tag_Name}
within the OPC Item Path definition of a standard OPC tag, like so:
ns=1;s=[PLC]{Tag_Name}
The tag name is not substituted when I inspect the tag path in the tag browser:
Is that correct, or am I missing something?
Is there a way to make this work?