OPC Data Control allows you to communicate across networks using Windows NT's Distributed Component Object Model (DCOM). Before you can use OPC Data Control with DCOM, you must use DCOM Configuration to set application properties, such as security and location. On the computer running the OPC Data Control , you must specify the location of the OPC server application (the application which responds to requests from the OPC Data Control) that will be accessed or started. For the OPC server application, you must specify the user account that will have permission to access or start the application, and the user accounts that will be used to run the application.
Configuring OPC Data Control to Use DCOM
1. Install the OPC data control on one PC (the client PC) and the OPC server on another (the server PC).
Configure the server PC as follows:
2. In the Windows Start menu, select Run..., type in dcomcnfg and click on the "OK" button. This starts the Distributed COM Configuration Properties application. (Or, to open the DCOM Configuration application now, click here: )
3. In the "Default Properties" tab:
a) Select "Enable Distributed COM on this computer."
b) Set the "Default Authentication Level" to "Connect."
c) Set the "Impersonation Level" to "Identify." (This is the default setting.)
4. In the "Default Security" tab, for both "Default Access Permissions" and "Default Launch Permissions":
a.) Click on "Edit Default...".
b.) In the "Registry Value Permissions" dialog, click on "Add...".
c.) Select "Everyone" (or the appropriate subset of users) and click on "Add."
d.) Select "INTERACTIVE" and click on "Add."
e.) Select "SYSTEM" and click on "Add."
f.) Click on "OK" to return to the "Registry Value Permissions" dialog.
g.) Click on "OK" to return to the "Distributed COM Configuration Properties" application.
5. In the Applications tab, select "Running Class" and click on the "Properties" button.
6. In the "Running Class Properties" dialog box:
a.) In the "Security" tab, select "Use custom access permissions" and click on the "Edit" button.
b.) If "Everyone" (or the appropriate subset of users) is not shown in the Permissions dialog "Name" list, click on the "Add" button. Use the "Add Users and Groups" dialog to add users/groups as required, and return to the "Running Class Properties" dialog box.
In the "Identity" tab...
- Select "The interactive user." (That is, the user who is currently logged on to the computer.)
c.) Repeat steps 6a and 6b for the OPC Server you intend to use; for example, "OPC_WinAC".
7. Start the OPC server.
Configure the client PC as follows:
8. In the Windows Start menu, select Run..., type in dcomcnfg and click on the "OK" button. This starts the Distributed COM Configuration Properties application. (Or, to open the DCOM Configuration application now, click here: )
9. In the "Default Properties" tab:
a) Select "Enable Distributed COM on this computer."
b) Set the "Default Authentication Level" to "Connect."
c) Set the "Impersonation Level" to "Identify." (This is the default setting.)
10. In the "Default Security" tab, for both "Default Access Permissions" and "Default Launch Permissions":
a.) Click on "Edit Default...".
b.) In the "Registry Value Permissions" dialog, click on "Add...".
c.) Select "Everyone" (or the appropriate subset of users) and click on "Add."
d.) Select "INTERACTIVE" and click on "Add."
e.) Select "SYSTEM" and click on "Add."
f.) Click on "OK" to return to the "Registry Value Permissions" dialog.
g.) Click on "OK" to return to the "Distributed COM Configuration Properties" application.
Partager