Problem: When browsing tunneled OPC servers from my OPC client, the program IDs are too long to be displayed properly. Can I shorten these IDs? |
Solution: Yes, you can shorten the program IDs for tunneled OPC servers, but you must manually change the registry to do so.
Note: Manually changing the registry can lead to severe problems if not done correctly. Always back up your registry before making changes like this
A typical tunneled program ID looks like this:
Tunneller:NODE-NAME:Matrikon.OPC.Simulation.1
To change the program ID to this for example:
Short:Matrikon.OPC.Simulation.1
Follow these steps:
Find the Tunneller Program ID you want to change under HKEY_CLASSES_ROOT in the registry. In this case you would be looking for a registry folder named “Tunneller:NODE-NAME:Matrikon.OPC.Simulation.1”
Right-click and select "rename"
Rename to the new Program ID of your choice, in this case ”Short:Matrikon.OPC.Simulation”. Write this down for later.
Expand this registry folder and click on the "CurVer" folder
Double-click on the "(Default)" string.
Change that value to the new program ID
Now click on the "CLSID" folder (Still under our new program ID folder)
Double-click on the "(Default)" key and copy the current value (the actual CLSID)
Go back to the main HKEY_CLASSES_ROOT folder
Do a 'Find' (Right-click->Find, or Alt-F) and paste that value into the find box
Click "Find Next" and wait.
When it comes back up, expand that folder and open up the "ProgID" folder
Change the value of the "(Default)" key to the new progID
Do the same in the "VersionIndependantProgID" folder
If these steps are completed successfully the tunneled OPC server will now appear with the shortened name when browsing from OPC clients.
|
|
|
Category: OPC Products |
|
|