Issue
What are the typical steps to install and configure Vista OPC Server?
Product Line
TAC Vista
Environment
- Vista 5.1.x
- Vista OPC Server 1.6.1
Cause
OPC Server can be used in many integration situations to provide data to other parties or bring third party data into the Vista front end.
Resolution
- Install TAC Vista OPC Server 1.6.1 installation package
- Add a Windows Account for Vista OPC Server
- Start Computer Management
- In System Tools\Local Users and Groups\Users click New User
- Name the user OPC_Communication
- Provide a password
- Uncheck the User must change password at next logon checkbox
- Check User cannot change password checkbox
- Check Password never expires checkbox
- Click Create and Close.
- Add user to the Administrators group
- Configure Service
- In Services right click on TAC Vista OPC Server and click properties
- Ensure Startup type is Manual
- On Log On tab select This Account
- Browse to the local account OPC_Communication
- Provide the password in the Password and Confirm password fields
- Click OK
- In Services right click on TAC Vista OPC Server and click properties
- Configuring DCOM
- Start Component Services
- Double click Component Services\Computers\My Computer\DCOM Config
- Locate the COM Server TAC Object Server OPC DA Services and select properties
- Click the Identity tab
- Select This User
- Select the local account OPC_Communication
- Provide the password in the Password and Confirm password fields
- Click OK
- Locate the COM Server TAC Object Server OPC AE Services and select properties
- Click the Identity tab
- Select This User
- Select the local account OPC_Communication
- Provide the password in the Password and Confirm password fields.
- Click OK
- Create a Vista User Account
- Start Vista Server
- Start Vista Workstation and Log In
- In the root TAC Vista folder create a new account (User - Vista or User - Windows Domain Group)
- Name the user TACOPC
- Modify the properties of the account
- Set the password
- Set an authority level that OPC Clients should use when accessing the OPC Server
- Set the Logout time to zero(0)
- Configure the Vista OPC Server Login
- Open TAC Vista OPC Server Setup (Program Files\Schneider Electric\TAC Vista OPC Server\Vista OPC Server Setup)
- Ensure the Retry connect period is 360 seconds.
- In the logon to TAC Vista Server click Login using the following Vista Account
- In the Username type TACOPC
- Type the password
- Click OK
- Confirm the change took place, if it is not refer to OPC server for TAC Vista will not keep the login settings in the TAC Vista OPC Server setup.
- Open TAC Vista OPC Server Setup (Program Files\Schneider Electric\TAC Vista OPC Server\Vista OPC Server Setup)
- Configuring Windows Firewall
- If Vista Server and OPC Server are on the same computer then no firewall exceptions are required. Consult the OPC Server manual (Chapter 4) for the firewall exceptions if using a separated OPC Server and Vista Server setup.
- Configuring OPC Client DCOM Settings
- If the OPC Client is on another computer then create a user account to match the one used by Vista OPC Server.
- Start Computer Management
- In System Tools\Local Users and Groups\Users click New User
- Name the user OPC_Communication
- Provide a password
- Uncheck the User must change password at next logon checkbox
- Check User cannot change password checkbox
- Check Password never expires checkbox
- Check Create and Close
- Configure Access Permissions
- Start Component Services on the Vista OPC Server computer under Administrative Tools
- In the Tree Structure right click on Component Services\Computers\My Computer and click properties
- Click the COM Security tab
- In Access Permissions click Edit Limits
- Click Add
- Select the local account OPC_Communication (EXAMPLE: W7USCNU1342VXXX\OPC_Communication)
- In the allow column select Local Access and Remote Access
- Click OK
- In Access Permissions click Edit Default
- Click Add
- Select the local account OPC_Communication
- In the allow column select Local Access and Remote Access
- Click OK
- In Launch and Activation Permissions click Edit Limits
- Click Add
- Select the local account OPC_Communication
- In the allow column select Local Launch, Remote Launch, Local Activation, and Remote Activation
- Click OK
- In Launch and Activation Permissions click Edit Default
- Click Add
- Select the local account OPC_Communication
- In the allow column select Local Launch, Remote Launch, Local Activation, and Remote Activation
- Click OK
- Start Component Services on the Vista OPC Server computer under Administrative Tools
- Configure Local Security Policy
- Select the Local Policies\Security Options\Network Access: Sharing and security model for local accounts policy
- Set the policy to Classic - local user authenticate as themselves
- Click OK
- Repeat these steps for the OPC Client computer
- If the OPC Client is on another computer then create a user account to match the one used by Vista OPC Server.
- Configuring OPCEnum
- Start Component Services on the Vista OPC Server computer
- In the tree structure Component Services\Computers\My Computer\DCOM Config right click on OPCEnum and click properties
- On the general tab change Authentication Level to Default
- Ensure Run Application on this computer is checked on location tab
- Click the Identity tab
- Select This User
- Browse to the local account OPC_Communication
- Provide the password in the Password and Confirm password field
- Click OK
- In the tree structure Component Services\Computers\My Computer\DCOM Config right click on OPCEnum and click properties
- Repeat these steps on the OPC Client computer
- Start Component Services on the Vista OPC Server computer
- Start the TAC Vista OPC Server
- In Services right click on TAC Vista OPC Server and click start
For more OPC Server issues please see Vista OPC Server Installation and Known Issues.
A good overview of OPC integration and the necessary COM and DCOM settings is located here.