|
|
|
||||||||
HOME |
PRODUCTS |
DOWNLOAD |
ORDER |
SUPPORT |
ABOUT |
CONTACT |
|
|||
DCOM (Distributed COM) for OPCThe ability of OPC clients and servers to remotely interconnect - i.e have the OPC client application running on one computer and the OPC server on another - is quite powerful and is the enabler for many interesting applications. However, therein lies a hidden issue - Distributed COM, or as it is more commonly known - DCOM. DCOM is often one of the stumbling blocks for new OPC users. So new users should take note that there are some important details to be concerned with when setting up a system for remote OPC connections. Be aware that it may be necessary to enlist the services of a network administrator, in order to safely and effectively set up the required configurations. Most OPC servers include detailed instructions for setting up DCOM, because each DCOM configuration is potentially slightly different, therefore we chose not to include definitive information on DCOM in our OPC client documentation. As a general note, you would be wise to disable any firewalls for testing purposes - that is often the source of problems. It is also a good idea once your DCOM security settings have been set and you are successfully reasing and writing OPC data remotely, to confirm the integrity of your network and PCs from a security standpoint. Note: Much of this article is written from the perspective of the Visual Basic programmer, but applies equally to users of all languages and development environments.
DCOM Configuration on OPC Server PCFirst of all, refer to your OPC server documentation, or contact your vendor for information about setting DCOM security for your particular OPC server. The information below is intended for general reference and should not be taken as 100% accurate in all cases. No responsibility is taken for the application or misapplication of the information presented. The following settings will enable Windows NT or Windows 2000 to communicate with an NT or Windows client and back (assuming that there are no firewalls or proxy servers involved).
Since your OPC server is raising events to your clients and using client callbacks, then you will also need to make the following changes to the default settings for your NT or Windows 2000 'Server' machine:
NOTE: Make sure you test your DCOM application where the client and the server are running under different user accounts.
On the WIN95 CLIENT machines:
NOTE: Modifying and setting security settings should be done with caution and awareness. Before modifying security settings, be sure that you understand the security implications involved. The above client settings are only necessary in certain network situations and can be added via setup code to the clients registry. For more information about writing such code see the references in the Further Information section later in this article.
DCOM Configuration on OPC Client PC
OPC Clients such as OPCWare Client Developer can use remote events callbacks to enable two-way communication between OPC clients and an OPC server application. If you are using OPCWare Client Developer with a OPC server on a remote PC it is essential to configure DCOM settings on the client PC as well as the server PC. Further InformationThere are many useful articles and sources of DCOM information available on the web, we are not going to repeat it all here. If you need to find out more, below we list some of the best sources of information.
Note: Some or all of the terms Microsoft, Windows, Visual Basic, ActiveX, OPC may be trademarks of their respective owners. Copyright © Data Layers Limited 2005. All rights reserved. |
OPCWare Client Developer v2.0.11 [info] |
|||||||||
|
||||||||||
Data Layers is a member of the OPC Foundation |
||||||||||