Getting Started: Reading Data from TOP Server or KEPServer Using OPC UA in Connubes OPC Router
This guide walks through the process of configuring an OPC UA connection between Connubes OPC Router and TOP Server or KEPServer, then creating a flow to read tag values and store them in OPC Router global variables.
For this example, we will use a locally installed instance of TOP Server. However, the same general process applies when connecting to KEPServer or a remote OPC UA server.
Configure the OPC UA Server
Before configuring OPC Router, verify that the OPC UA server endpoint is enabled and accessible.
- Open the OPC UA Configuration from the TOP Server Administration.

- Ensure your chosen endpoint is set to Enabled.

For this example, TOP Server and OPC Router are installed on the same computer, so we will use the loopback address (127.0.0.1) to establish the connection. - Open the TOP Server Configuration.
- Right-click Project and select Properties.
- Navigate to the OPC UA tab.
- Set Allow anonymous login to Yes.
- Click Apply to save the changes.

Note: This example uses anonymous authentication and no OPC UA security for demonstration purposes only. For production environments, we recommend configuring appropriate authentication, certificates, and security policies.
Create an OPC UA Connection in OPC Router
Next, configure Connubes OPC Router to communicate with the TOP Server OPC UA endpoint.
- Open Connubes OPC Router and navigate to the OPC UA Client tab.
- Click the + button to create a new connection.

- Enter a name for the connection, such as
TOP Server. - Enter the OPC UA endpoint URL configured in TOP Server.

- For this example, we will use None for the Mode and Encryption, as well as Anonymous for the login.

- Save the connection by selecting OK.
Note: When connecting to a remote TOP Server or KEPServer instance, use the server's hostname or IP address instead of the loopback address. Ensure that the OPC UA endpoint is accessible from the computer running OPC Router.
Create a New Flow
With the OPC UA connection configured, we can create a flow to read data from TOP Server.
- In OPC Router, navigate to Flows.
- Create a new flow
.
- Drag an OPC Data Access transfer object onto the flow workspace.

- Click the pencil icon to edit the transfer object's configuration.
- In the OPC Access Data dropdown, select the OPC UA connection created in Step 2.

- Click Tag Browser to browse the available nodes on the TOP Server OPC UA server.
- Select the tags you want to read, then click Apply.

For this example, we will select two tags:
Channel1.Device1.ExampleItem— An example tag configured in TOP Server._System._Time— A system tag that provides the server's current time.
After selecting the tags, review the list and click OK to confirm.
Configure Global Variables
Now that we have selected the tags to read, we need to define where OPC Router will send the values.
For this example, we will use Global Variables within OPC Router.
- Drag a Variables transfer object onto the flow workspace.

- Click the pencil icon to open its configuration.
- Under Global, select New Variable. We will create one variable for each of the two tags selected in Step 3.
- Enter the details for the first variable and click OK and new to create another.

- Configure the second variable and click OK.
- Review the list of variables and click OK again to confirm.

Map the OPC UA Tags to Global Variables
Next, connect the OPC UA data sources to their corresponding destination variables.
- On the flow workspace, locate the OPC Data Access and Variables transfer objects.
- Click and drag a connection arrow from each tag in the OPC Data Access transfer object to its corresponding global variable in the Variables transfer object.

- Verify that each tag is mapped to the correct variable.
These connections define how data will move between the transfer objects when the flow executes.
Configure a Data Change Trigger
Finally, we need to define when the flow should execute.
For this example, we will use a Data Change trigger so that the flow executes when the monitored tag value changes.
- Drag a Data Change trigger onto the flow workspace.

- Click the pencil icon to open the trigger configuration.
- In the Access Data dropdown, select the TOP Server OPC UA connection created in Step 2.
- Open the Tag Browser and select the tag to monitor for changes.
- For this example, select
Channel1.Device1.ExampleItem.
- Select OK to save the trigger configuration.
Important: The Data Change trigger determines when the flow executes. In this example, a change to ExampleItem initiates the flow, which then reads the configured OPC UA tags and updates their corresponding global variables. The other tags are not independently monitored for changes unless additional triggers are configured.
Activate and Verify the Flow
Once all transfer objects and the trigger have been configured, the flow is ready for testing.
- Review the flow to ensure that the transfer objects and variable mappings are configured correctly.
- Save and activate the flow by selecting Make changes productive within the Publish tab.

- Using an external client such as Quick Client, change the value of
Channel1.Device1.ExampleItemto initiate the Data Change trigger. - Verify that the flow executes successfully in OPC Router within the State tab.
- Confirm that the global variables contain the expected values from TOP Server
.
If the flow does not execute as expected, verify the OPC UA connection status, tag accessibility, trigger configuration, and flow execution messages.
Summary
You have now configured OPC Router to connect to TOP Server using OPC UA, read selected tag values, and store those values in global variables.
This example demonstrates the basic components of an OPC Router flow:
- OPC UA Client Connection: Establishes communication with TOP Server or KEPServer
- OPC Data Access Transfer Object: Defines which OPC UA tags will be read.
- Variables Transfer Object: Provides a destination for the retrieved values.
- Data Change Trigger: Initiates flow execution when the monitored tag changes.
Once this basic flow is working, you can expand it to support additional tags, different triggers, or other destinations supported by OPC Router.