Hi All,
I am not directly involved with this problem, just a middle man, so I will try to describe this to the best of my ability!
We have a project with three PLCs with exactly the same software on. They are configured with different IPs and hostnames on the network, and they all communicate with a master PLC. We are using OPC-US to connect to Simulink to model the plant, but we have a problem in that as the OPC server name is identical on all PLCs, with identical tags we can only connect to one PLC at a time.
Is there a way of giving each PLC it’s own OPC server name so that Simulink can connect to all PLCs at once?
Thanks
Charlie
Hi,
I don’t know if the server name can be changed - haven’t found any possibility documented in the help about somethink like that, so unfortunately I don’t think so.
But honestly spoken, I’m also a bit confused about why a name change should be possible to communicate with different servers in parallel? As OPC UA is working on top of TCP, and a server/client connection is unambiguous because of the addressing by unique IP address or hostname (e.g. opc.tcp://<IP_ADDRESS_OR_HOSTNAME>:/…), the name of the server itself should not be problem when connecting to more then one server in parallel… at least from my understanding and experience from real projects where for example visualizations (independent of the visualization type) are communicating with multiple PLCs in parallel.
Is this something specific with Simulink (I’ve no experience with Matlab Simulink)?
Best regards!