Using the OPC UA Server with AVEVA Edge (Release 4.1 and Prior)

For SmartServer 4.2 and higher, see Using the OPC UA Server with AVEVA Edge.

AVEVA Edge (InTouch Edge) software is used to develop HMI/SCADA projects, which can be deployed anywhere. This powerful software tool supports OPC UA client communications with the OPC UA server on a SmartServer IoT.

This section describes how to add a new AVEVA Edge project, build a simple HMI-graphic page connecting to a SmartServer IoT OPC UA Server, and monitor a datapoint on a device. For more information about AVEVA Edge, go to https://sw.aveva.com/monitor-and-control/hmi-supervisory-and-control/intouch-edge-hmi.

This section consists of the following:

Creating an AVEVA Edge Project

To create an AVEVA Edge project, follow the procedure below.

  1. Log into the SmartServer configuration UI with the username and password.



  2. Click OK to login as appropriate for your web browser.

    The Network Configuration page appears.



  3. Click the OPC UA tab.

    The OPC UA Configuration page appears.



  4. Enable the OPC UA Server option.



  5. For subscription-based monitoring (event-driven) at the OPC UA client, the Monitored and Polled datapoint setting needs to be enabled on the SmartServer CMS Datapoint Properties widget. See Defining Datapoint Properties for more information.

    This setting applies to datapoints on BACnet, LON (using IMM), and Modbus devices. For datapoints on LON devices using DMM, if polling is not enabled for the datapoint, the SmartServer automatically enables event-driver updates.



  6. Launch AVEVA Edge and add a new ProjectIn the example below, a new project “Windows InTouch Edge HMI 500 tags” is added that supports a maximum of 500 tags.



  7. Select the Insert tab from the main menu and add a new OPC UA Connection.



  8. Enter a name for the connection in the Connection Name field and SmartServer IoT OPC UA end point in the End point field.

    Note: The OPC UA endpoint URL that is used by the OPC UA client to communicate with the OPC UA server is:

    opc.tcp://smartserver-xxxxxxx.echelon.echcorp.com:55000/UA/echopcua-server where xxxxxxx is the SmartServer IoT’s install code.




  9. Click Test Connection to verify the communication between the AVEVA Edge client and the SmartServer IoT OPC UA server.

  10. Select the Insert tab and add a new OPC UA Client worksheet. 



  11. Link the OPC UA connection to the client and update the connection field by selecting the previously created OPC UA connection. Use the dropdown connection list to view all the available connections. 



  12. Double-click an empty Browse Path box to launch the OPC UA Browser.



  13. Select the datapoint to be monitored from the UA Browser and click OK.


    nvoLuxLevel network variable is selected, the datatype is UInt16 (unsigned long), and the current value is 48

  14.  Add a new tag by assigning a Tag Name and clicking Yes.


    Luxlevel tag name is added

  15. Add a new screen by selecting the Graphics tab, right-clicking the Screens folder, and defining screen attributes.



  16. Click OK.

  17. Select Text Box to add a new text box and set Tag/Expression to the previously created tag (Luxlevel in this example). Test the tag in the Database Spy area by entering the tag name in the Tag/Expression column. The Value column will display the current value of the network variable.



  18. Save all files and click Run to run the project.



Using the OPC UA Server as_string

AVEVA Edge supports the following data types:

  • Boolean
  • Integer
  • Real
  • String

For Structure or Union Extension Object, e.g. SNVT_switch, the SmartServer IoT OPC UA server includes an as_string property type (as shown below) that will display the structure as a string data type at the AVEVA Edge client. The current AVEVA Edge release does not support Extension Object.

Using the OPC UA Server Preset Feature

SmartServer IoT release 2.8 and higher includes a preset feature that allows preset values to be used at the OPC UA client. The example below shows the preset value Off for a SNVT_switch network variable type (string data type).

Using AVEVA Edge On-demand Read (Poll)

At the 1478329, click Advanced to display the Advanced dialog box (shown below). By default, the OPC UA client worksheet Enable subscription setting is "true" (non-zero). In this scenario, the client subscribes to the server nodes so that it can receive notifications when the node values change. For on-demand, read only operations at the client side, it is not necessary to enable Monitored/Polled on the SmartServer CMS Datapoint Properties widget.

Set the Enable subscription setting to 0 and configure the read trigger settings. Please refer to the AVEVA Edge help file for more information.


OPC UA client worksheet advanced settings