Opc data type Control connection
In our project we need to read data from an OPC server. Around 2000 points.
I am trying to create an OPC object type and instantiate it manually in control structure, as an upload is not possible due to the size of the server database.
All objects have common properties. Also the path is similar with only object name changing in the path.
For example if an object "A" has a property totw.mag, the full path is A:totw.mag .In the same way object B will have a path B:totw.mag for the same property.
Is there any way that I can generate a path automatically from the name of the object?
If I instantiate an object in control structure with a name as "M001" the control connection property paths will automatically become M001:totw.mag, M001:toto.mag etc
Is this possible?
Voted best answer
Not answering your question (for which I doubt any ready made product support exist) - Have you considered using Advanced upload?
a) Perform Retrieve (produces an .ocs file)
b) Now edit the .ocs file (eg shave off undesired properties, etc)
c) Perform Append
In stage c) new objects will be created, or if one unique match exist (per object to be created) the uploader will insert instead of create. After create or insert, the Control Connection will be updated to match the .ocs file.
I dont know about the other 3rd party devices but for ABB devices and for IEC protocol you can insert an aspect named "auto ied mapping" in which you have to do the parameter mapping onlyonce for one kind of element. rest you can create n number of instances of this object in control structure,the control connections will come automatically.
I hope this would be helpful.