Skip to content

Step 10: Using UAExpert to connect to an OPC UA server

Last updated on September 1, 2020


Use an OPC UA client to connect to the server and verify successful application of the UANodeSet.

This Post is part of the OPC UA Information Model Tutorial.


Determine the OPC UA server’s IP address

Determine the IP address of the OPC UA server (i.e. the Debian machine) with ifconfig

sudo ifconfig
[sudo] password for user:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.79.121  netmask 255.255.255.240  broadcast 172.17.79.127
[...]

The OPC UA client will connect to that IP address in the following steps. Alternatively you can also use opc.tcp://localhost:4840 if the server is running locally, or you can use the corresponding hostname instead of localhost.

Connecting to a server with UAExpert

As a final result, the OPC UA client UAExpert should display the model in the server’s address space like so:

UA Expert is an OPC UA client developed by Unified Automation.

Download (free account required): https://www.unified-automation.com/downloads/opc-ua-clients.html

Select Custom Discovery and add the IP address of the Debian server.

The new server will be listed at Custom Discovery. Click/Expand it.

Note: You may see a dialog pop-up

Click Yes and move on.

You will now see the server and the different communication modes it supports. Select None – None (no encryption, no authentication) and press OK.

Note: You may be presented with a pop-up dialog regarding Recently Used servers.

Click OK.

You are now connected to the OPC UA server and can browse or monitor its object. UAExpert allows to individually (dis-)connect to multiple servers at the same time.

The top area of the follwoing image shows UAExpert connected to the open62541 server on Debian. At the bottom, you can see the PowerShell SSH session to the Debian server running the OCP UA server ./myServer. The log of pane of UAExpert and the console output of the open62541 server should corelate.

Published inopen62541

2 Comments

  1. audupi audupi

    Hi,

    I am writing a custom Client program to access data from a custom Information Model of a robot defined in SiOME software. I have a OPC UA server up and running .

    And within UAExpert I can see that the Nodes I wish to READ/WRITE have the following access levels. I understand this status is the default for all the nodes defined in my Server.

    AccessLevel = CurrentRead
    UserAccessLevel = CurrentRead

    I wanted to know how to change the accesslevel to READ and WRITE. Any suggestions on this would be helpful.

    I would eventually like to link my Information Model with data from Robot simulator.

    Thanks in advance.

    • Benedict Simlinger Benedict Simlinger

      Hi,

      it may be an issue with the model that you generated with SiOME, which seems to be a proprietary product. Utilize the appropriate forums and support channels to get help.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.