User Tools

Site Tools


opcda_server_integration_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
opcda_server_integration_guide [2021/09/23 14:03] – wikiadminopcda_server_integration_guide [2023/03/02 16:20] (current) – wikiadmin
Line 40: Line 40:
 set path=.\jdk1.8.0_302\bin;%path% set path=.\jdk1.8.0_302\bin;%path%
  
-When you start the OPCDA Server on a 64-bit system you will see an error noted about the UnilogServer FAILED. This can be ignored. +The java.exe file in that folder must be set to run in compatibility mode.  Right-click and select properties and configure compatibility for XP or Win8: 
 + 
 +{{:pasted:20230215-092210.png}} 
 + 
 +The batch file used to start the server must be run in with admin privileges. Details on how to do this can be found [[https://fossbytes.com/batch-file-run-as-administrator-windows/|here]]. 
 + 
 +The basic steps are: 
 + 
 +> How to run a batch file as Administrator in Windows 10? 
 +> 
 +>     Right-click on your batch file. 
 +>     Click Create Shortcut. 
 +>     Right-click the shortcut file. Click Properties. 
 +>     In the Shortcuts tab, click Advanced. 
 +>     Check the Run As Administrator box. 
 +>     Click Ok to close the dialog box. 
 +>     Click on Apply to save the changes. 
 +> 
 +>   
 +> Then you need to use that shortcut to start the software, not the actual batch file. 
 + 
 +When the server starts correctly you will see the message "Register Result 0" in the console window: 
 + 
 +{{:pasted:20230302-151110.png}} 
 + 
 +If you reach this stage, but your OPC client still reports that the server is not registered copy this text into a file called "RegisterErgoTechOPCDA.reg" 
 + 
 +<code> 
 +REGEDIT4 
 + 
 +[HKEY_CLASSES_ROOT\CLSID\{F2120BB1-5FB8-480D-BAEE-06B9F3650AB0}] 
 +@="ErgoTech OPCServer" 
 +"AppID"="{F2120BB1-5FB8-480D-BAEE-06B9F3650AB0}" 
 + 
 +[HKEY_CLASSES_ROOT\CLSID\{F2120BB1-5FB8-480D-BAEE-06B9F3650AB0}\Implemented Categories] 
 + 
 +[HKEY_CLASSES_ROOT\CLSID\{F2120BB1-5FB8-480D-BAEE-06B9F3650AB0}\Implemented Categories\{63D5F430-CFE4-11D1-B2C8-0060083BA1FB}] 
 + 
 +[HKEY_CLASSES_ROOT\CLSID\{F2120BB1-5FB8-480D-BAEE-06B9F3650AB0}\Implemented Categories\{63D5F432-CFE4-11D1-B2C8-0060083BA1FB}] 
 + 
 +[HKEY_CLASSES_ROOT\CLSID\{F2120BB1-5FB8-480D-BAEE-06B9F3650AB0}\LocalServer32] 
 + 
 +[HKEY_CLASSES_ROOT\CLSID\{F2120BB1-5FB8-480D-BAEE-06B9F3650AB0}\ProgID] 
 +@="ErgoTech.OPCServer" 
 +</code> 
 + 
 +Then double click on "RegisterErgoTechOPCDA.reg" and let it make changes to the registry. 
 + 
 +If you want to unregister the OPCDA Server you can copy ithis nto a UnRegisterErgoTechOPCDA.reg and run it: 
 +<code> 
 +REGEDIT4 
 + 
 +[-HKEY_CLASSES_ROOT\CLSID\{F2120BB1-5FB8-480D-BAEE-06B9F3650AB0}] 
 +</code> 
 +   
 +If you still cannot connect, set the "Interactive User" on the server.  Enter "Component Services" in the Windows "Type here to search" box (bottom left) and star the application. 
 +Navigate to "DCOM Config" 
 +{{:pasted:20230302-151535.png}} 
 + 
 +Find the ErgoTech OPCServer.  Right-click, select Properties and then Identity.  Set the checkbox for "Interactive User" 
 +{{:pasted:20230302-150938.png}} 
 + 
 +When you start the OPCDA Server on a 64-bit Windows system, even with a 32 bit JDK, you may see an error noted about the UnilogServer FAILED. This can be ignored as long as the "Register Result" line is 0 and not 1.
  
 <code> <code>
Line 50: Line 112:
 Creating UnilogServer StartedmanageOPCDAcat Creating UnilogServer StartedmanageOPCDAcat
  FAILED  FAILED
- Register Result 1+ Register Result 0
  
  
opcda_server_integration_guide.1632420187.txt.gz · Last modified: by wikiadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki