Step | Description |
Create the Application Project from a Sample Application |
|
1.1 |
Copy the sample application directory and rename the copy. |
1.2 |
Open the solution in Visual Studio. The name of the generic server (HDANSrv.Net4.exe) can be changed to identify the particular server. The name of the HDANSrv.Net4.exe.config file needs to be renamed too. The RegServer.exe utility registers the server, even with the file name changed. The .Net assemblies need to be signed with the supplied key files. The bindingRedirect configuration in the application configuration file needs to be adapted if the version number of the assembly is increased. Owner of the code license may recompile the calling assembly instead. |
1.3 |
Search the method GetServerRegistryDef and modify the registration definition. |
1.4 |
Select Project - Properties - Configuration Properties - Debugging and change the application path to HDANSrv.Net4.exe in the project debug output directory. |
1.5 |
Compile the project. |
Customize and Compile |
|
2.1 |
Edit the source files: and add files with additional classes as required for the project specific database handling. |
2.2 |
Build the solution and copy additionally necessary files to the output directory. |
2.3 |
Start the project in debug mode and test the device handling. |
2.4 |
Start an OPC client, connect to the server and check the item address space and the item values. |
Deployment |
|
3.1 |
Compile the Solution With Release configuration selected. |
3.2 |
Copy the files from the Release Output directory to target computer: |
3.3 |
Install the common OPC interfaces and the server enumerator. |