7.13. OPC UA Test Client and Server

7.13.1. Using a Test Client

To test the DataHub OPC UA Server using the OPC Foundation's OPC UA Quickstart Data Access Client, follow these steps:

  1. Ensure that a DataHub instance and DataPid are running.

  2. Download the OPC Foundation software package from here:

    http://cogentdatahub.com/assets/
    opc-ua-1.02-.net-sample-applications-setup-336.0-20150630.zip
  3. Open the .msi archive to install the software.

  4. From the Windows File Menu, go to OPC Foundation, and open the DataAccess Client. This should open the Quickstart Data Access Client:

  5. From the Server menu, select Discover, and then press the Find button.

  6. Select the address that starts with opc.tcp .

  7. Press OK.

  8. Click the Connect button in the client window.

    You will get an Untrusted Certificate message.

  9. Click Yes. You will see an error message, telling you that the connection was not successful. This is normal. The DataHub instance has rejected the client's certificate, and placed it in the rejected certificate store. At this point you have two options:

    1. You can uncheck the Use Security option in the Quickstart client.

    2. You can go to the DataHub instance and accept the client certificate by clicking the Accept All button in the OPC UA Server section of the Properties window.

  10. Once you have done either or both of these, click the Connect button again. You should now see the DataHub data hierarchy.

    To test monitoring, right-click a data point, for example DataPid:PID1.MV, and select Monitor. You should see the point and its data appear in the list at the bottom:

  11. Do the same for DataPid:PID1.PV and DataPid:PID1.SP. To test writing to the DataHub instance, right-click a writeable data point like DataPid:PID1.SP, select Write and enter a value between 0 and 100. You should see the SP value in DataPid change. Note that if DataPid is running in Auto mode, the value of that point changes automatically every 5 seconds.