Using the OPC UA Server with AVEVA Edge

Using the OPC UA Server with AVEVA Edge

With SmartConnect 4.2 and higher, OPC UA is a Beta release.

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.

This section describes how to add a new AVEVA Edge project, build a simple HMI-graphic page connecting to a SmartServer 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. For SmartServer IoT, log into the Configuration page as described in Accessing the SmartServer IoT Configuration Page. For SmartConnect, log into the Configuration page as described in Accessing the SmartConnect Configuration Page and click the SmartServer IoT tab (left side) as needed.

    The System tab appears.

    image-20250604-185712.png
    SmartServer IoT System Tab

     

    image-20250212-221520.png
    SmartConnect System Tab

     

  2. Click the OPC UA tab. The OPC UA tab appears.

    image-20250604-232932.png
    SmartServer IoT OPC UA Tab

     

    image-20250212-200833.png
    SmartConnect OPC UA Tab

     

  3. Enable the OPC UA Enabled option and click Update.

    image-20250604-233120.png
    SmartServer IoT OPC UA Tab

     

    image-20250212-200945.png
    SmartConnect OPC UA Tab

     

  4. For subscription-based monitoring (event-driven) at the OPC UA client, the Monitored and Polled datapoint setting needs to be enabled on the 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.

    image-20250212-201015.png

     

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

     

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

     

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

    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's install code.

    image-20250212-201136.png



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

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

     

  10. 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. 

     

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

     

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

    image-20250212-201241.png
    nvoLuxLevel network variable is selected, the datatype is UInt16 (unsigned long), and the current value is 48

     

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

    image-20250212-201318.png
    Luxlevel tag name is added

     

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

    image-20250212-201354.png

     

  15. Click OK.

  16. 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.

     

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

    image-20250212-200503.png

     

    image-20250212-200452.png

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 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 OPC UA client worksheet (shown in the figure below), 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 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.

image-20250212-200334.png
OPC UA client worksheet advanced settings