UA Bundle SDK .NET  2.1.2.227
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Groups Pages
Full Client

The Full Client is an extended example developed using the Unified Automation OPC UA Client SDK .NET showing several features of OPC UA.

On startup, the Full Client shows three empty windows.

Enter the URL of a Discovery Server into the input field named “Discovery Url”. Pressing the arrow of the drop-down menu “Endpoints” calls FindServers on the Discovery URL and all Endpoints on all running servers are displayed in the drop-down menu. Select an endpoint and click on the “Connect” Button.

When choosing an endpoint with Security Policy “None”, the connection is established immediately. If you try to connect to a secure endpoint for the first time, you’ll receive an error (BadCertificateUntrusted) because the Client and the Server have to trust each other’s certificates first.

  1. Locate the Client’s certificate store (%CommonApplicationData%/UnifiedAutomation/CertificateStores) and move the Server’s certificate from Rejected/certs to Trusted/certs. The location of these folders is set in the file app.config which can be found in the Visual Studio Project for the Full Client.
  2. Locate the Server’s certificate store and trust the Client’s certificate. Refer to the documentation of the Server for how to achieve this.

When clicking on “Connect” now, the connection should be established. The “Connect” button becomes a “Disconnect” button and can be used to close the connection to the server. This can also be done by choosing Server → Disconnect from the menu bar.

Now you can browse the Address Space in the upper left window (Browse Window). Click on a Node to display the Node’s Attributes in the upper right window (Attribute Window). Drag and drop variables from the Browse Window to the bottom window (Monitoring Window) for monitoring.

Choose Subscription → Enable Publishing from the menu bar to enable/disable Publishing. When selecting Subscription → Set Publishing Interval a dialog window opens. Enter the desired Publishing Interval in milliseconds at “Requested Publishing Interval” and click “Apply”. The corresponding Publishing Interval set by the server is then displayed at “Revised Publishing Interval”.

When selecting one or more variables in the monitoring window and performing a right click, a context menu opens.

You can remove the selected items and change the Sampling Interval for these items by choosing a value from the list. Click on “Write Values” to open a dialog window to write the value of the selected variables.

Select the field in the “Write Value” column and click on it again after a short delay to enter the value to be written. Click on “Apply” to actually write the values. When entering the value in the wrong format or leaving one of the input fields empty, an error message will be displayed in the “Write Value” column. Clicking on “OK” writes the values and closes the window.