Kepware Knowledge Base: Solution
How Do I Tell Multiple OPC Clients Apart In the Server?
Last Update: 11/7/2018
Problem:
Multiple OPC clients are connected to the server, but there is no easy way to identify them.
Solution:
Support was added for the IOPCCommon::SetClientName method in KEPServerEX version 5.7. This method allows any OPC client that connects to the server to set a name in relation to its server connection objects. The following was also done:
- The System Tag _OpcClientNames was added at the server's System Tag level. This tag displays the names set by clients connected to the server in a String Array.
- In OPC Diagnostics, a field was added for the Client Name after the Client ID in the view.
The OPC Quick Client was also updated to allow the setting of a Client Name. For more information, refer to the instructions below.
- To start, open the OPC Quick Client. Then, double-click on the server connection. For example, select "Kepware.KEPServerEX.V5".
- In Server Properties, open the Identification tab.
- Next, enter a name in the Client Name field to identify the server connection.
- Once finished, click OK.
Note: The OPC Quick Client can create multiple connections to the same or different servers. As such, a client name may be set for each connection.
©
2021
PTC Inc. All Rights Reserved.