How do I eliminate the COM timeout on our OPC servers?

How do I eliminate the COM timeout on our OPC servers?

Problem: The server automatically shuts down after five minutes when there are no clients connected.

Solution: This is standard behaviour for COM servers. However, this behaviour can be overridden as shown in the following example:
Note: Microsoft highly recommends that you back up the registry before editing it or making changes to it.
1. From the Run command, enter REGEDIT.
2. The Registry Editor (Figure 54) is launched.
3. In the Registry Editor, under HKEY_CLASSES_ROOT, look for the required program ID (e.g., Matrikon.OPC.Simulation.1).
4. Expand the program ID branch.
5. Click on the CLSID branch.
6. Record the global universal ID (GUID).
7. Under the HKEY_CLASSES_ROOT\CLSID branch, search for the GUID
retrieved in the previous step (e.g. MatrikonOPC Server for Modbus v4.3.4.0 is HKEY_CLASSES_ROOT\CLSID\{024C7FFC-9CC3-476f-867ABC3CAD79F4FE}).
8. Create a string value called LockServer in the Options branch underneath the GUID (e.g., HKEY_CLASSES_ROOT\CLSID\{024C7FFC-9CC3-476f-867ABC3CAD79F4FE}\Options).
9. Create a new value using the context menu and choose New String Value from the menu.
10. Set the value of the LockServer entry to 1.
Note: To edit the value, select the entry and select the Modify menu option from the Edit menu.
11. Shut down the server and restart it for the change to take effect.

MatrikonOPC

Topic Information
  • Topic #: 4164-106
  • Date Created: 09/24/2008
  • Last Modified Since: 06/02/2014
  • Viewed: 2391