I am working to understand how to create relative OPC tags. I have a server layout that defines an object like this:
- module name
– parameters
— parameter value
---- parameter attributes
There can be any number of modules, any number of parameters under the parameter heading, and a fixed number of parameter attributes. I think I will have to template somehow for module names and for parameters. However, I am starting with parameter attributes.
So a parameter will look like this:
parameter
- default
- min
- max
I can define a UDT that takes the top most tag as an opc tag. However, I would like default, min and max to be an OPC tag that is a path relative to the parameter opc path.
For example:
objects/module/parameters/voltage
(yes my paths are strings in opc server)
Now I want default to be:
objects/module/parameters/voltage/default
Can I make OPC paths relative to another tags OPC path?