Is it possible to instantiate C++ components multiple times? If so, how do you configure the attribute “Library” in the configuration file? Because, if it is identical in both instances, this is not a valid configuration according to the log file entry.
Hi Christiane, Yes, it should be possible to do this. You only need one “Library” entry, and then multiple “Component” entries, with each component instance having a unique name. Note that is is possible to write a C++ Component as a “singleton”, which means that you will not be able to create more than one instance of that component. But if you wrote the C++ component yourself, and if you did not select this option, then this should not be a problem. Hope this helps. ~ Martin.
moved to PLCnext Technology
