The customized DANSrv OPC server is deployed to the target system by copying the files from the project directory:
- DANSrv.exe or DANSrvNet4.exe ( generic OPC DA server )
- DANSrv.exe.config or DANSrvNet4.exe.config ( configuration definitions )
- DANSrv.Items.xml ( only if item definitions in XML file )
- RegServer.exe ( utility for simple server registration )
- NSPlugin.DLL or NSPluginNet4.DLL ( from the project output directory, e.g. bin\release )
- Project specific files, e.g. driver DLLs
The files need to be copied to the same target directory and the RegServer.exe file must be executed in this directory to register the server.
Prerequisites
- .NET Framework 4.0 or 2.0 (3.0/3.5)
- C++ libraries
The library version matching the used DANSrv generic server must be installed. On newer Windows versions the needed library version is usually installed.
If not then the project matching vcredist_xxx.exe setup file provided in the DANSrv distribution (subdirectory C++ Libraries) must be executed.
- OPC Foundation OPC Core Components for 32-bit or 64-bit operation
OPC Core Components
If the server is deployed to a computer without other OPC servers already installed it's probably necessary to install the OPC Core Components.
The OPC Core Components V 3.0.105 are provided in a 32bit and a 64bit version:
- OPC Core Components Redistributable (x86).msi
- OPC Core Components Redistributable (x64).msi
On 64bit systems the components install a new component called the Category Manager. This component makes x64 servers visible to x86 clients.
The x64 version of the Core Components Redistributables installs the 32bit versions so it is the only package that needs to be installed on x64 systems.
All .NET assemblies are placed in GAC.
The OPC Core Components are additionally provided as Installer merge modules for integration into a custom application installer
- OPC COM ProxyStub MergeModule (x86).msm
- OPC COM ProxyStub MergeModule (x64).msm
DCOM Configuration
Depending on security settings the DCOM configuration may need to modified using the DCOMCNFG utility.
See the file Using OPC via DCOM with XP SP2.pdf for instructions.