Diagram showing the Robustel EG5120 with Ignition Edge collecting Modbus data and forwarding it to a central OPC UA server, illustrating OT/IT convergence.

Connect to an OPC UA Server with an Ignition Edge Gateway

Written by: Steven Lin

|

Published on

|

Time to read 7 min

Steven Lin, Technical Support Engineer at Robustel

Steven Lin is a Technical Engineer at Robustel, with extensive practical experience in industrial routers and IoT solutions. At Robustel, his primary responsibilities include product technical support, project management and delivery, and solution development. 

Summary

This article provides a practical guide on bridging the gap between Operational Technology (OT) and Information Technology (IT).

It details the process of configuring a Robustel EG5120 running Ignition Edge to forward data, acquired from protocols like Modbus, to a central OPC UA server.

We'll cover the strategic importance of this step, the technical configuration for data forwarding, and how this architecture ensures data integrity through store-and-forward mechanisms, effectively breaking down data silos and enabling seamless OT/IT convergence.

Introduction

I've lost count of how many system architects I've spoken to who have hit the same wall. They've brilliantly connected their Modbus PLCs, gathered all this rich OT data at the edge... and then what? It's sitting on an edge device, an island of data in a sea of operational potential. Getting that data to the central IT systems—where the real enterprise-level magic happens—is the final, and often frustrating, mile. This is the classic data silo problem, and it's where many IIoT projects stall.

Let's be clear: collecting data is only half the battle. The real value is unlocked when that data is integrated into your broader business systems. In our last discussion, we covered how to turn the Robustel EG5120 into a powerful data acquisition machine with Ignition Edge. Now, we're tackling the next critical step: securely and reliably forwarding that data to a central OPC UA server. This isn't just a technical exercise; it's the very essence of OT/IT convergence. It’s how you transform isolated machine data into actionable business intelligence.

Bridging the Final Mile: Forwarding Data to Your OPC UA Server with EG5120 Ignition Edge

Why Forwarding to a Third-Party Server like an OPC UA Server is a Game-Changer

So, you've successfully gathered your data on the Ignition Edge gateway. What's next? The crucial step is to push this valuable information to a central, third-party server where it can be analyzed and acted upon. This could be a major cloud platform like AWS or Azure, a traditional SCADA system, or, for many industrial applications, a dedicated OPC UA server. The goal is to break data out of its silo at the edge and integrate it with your wider IT infrastructure.

Let's be clear: the Robustel EG5120 running Ignition Edge is not a one-trick pony. It’s a versatile data bridge capable of communicating with numerous platforms. We're focusing on the OPC UA server here because it perfectly illustrates the power of this capability. For decades, OT and IT have operated in different worlds. OT speaks Modbus, S7, and other legacy protocols; IT speaks SQL and REST APIs. An Ignition Edge gateway acts as the perfect translator, and using a standardized destination like an OPC UA server is the key to creating a universal language for your entire enterprise.

From Raw Data to Standardized Models

The real "aha!" moment for many engineers is understanding the value of this translation. When your EG5120 converts raw Modbus data and forwards it to an OPC UA server, it's doing more than just moving bytes; it's transforming cryptic data points into a structured, self-describing information model that IT systems can immediately understand. This protocol conversion is the foundation of digital transformation, allowing you to:

  • Create a Single Source of Truth: All your disparate field devices can now report their data in a unified format to a centralized platform, like an OPC UA server, creating a cohesive view of your entire operation.
  • Enable Enterprise-Wide Visibility: Once your data is on a standard server, it can be easily consumed by SCADA systems, ERPs, data analytics platforms, and business intelligence dashboards.
  • Future-Proof Your Architecture: Standards like OPC UA are modern, secure, and platform-independent. By standardizing how your edge data is presented to your IT systems, you ensure your architecture is ready for future technologies and applications.

Diagram showing the Robustel EG5120 with Ignition Edge collecting Modbus data and forwarding it to a central OPC UA server, illustrating OT/IT convergence.


The Core Challenge: Data Integrity Across Unreliable Networks

Let's face it, industrial environments aren't data centers. Cellular and Wi-Fi connections can be unstable, especially in remote or mobile applications. What happens if your EG5120 loses its connection to the central OPC UA server for five minutes? Do you simply lose five minutes of critical production data? For any serious industrial deployment, the answer has to be a resounding "No."

The 'Store-and-Forward' Lifeline

This is where the power of a true Ignition Edge gateway comes into play. Ignition Edge has a built-in mechanism for this exact scenario, often called "store-and-forward."

Here's how it works in my experience:

  1. Data Acquisition Continues: The EG5120 continues to poll data from the local Modbus PLC without interruption.
  2. Buffering at the Edge: Ignition Edge detects the broken connection to the remote server and begins buffering the time-stamped data locally on the EG5120's reliable eMMC storage.
  3. Automatic Forwarding on Reconnect: The moment the network connection is restored, Ignition Edge automatically forwards all the buffered data in the correct chronological order.

This isn't just a cool feature; it's an absolute necessity. It guarantees data integrity and ensures that your central analytics and historical records are complete, providing a reliable dataset you can actually trust for decision-making.

A Practical Guide to Connecting Your Ignition Edge Gateway to an OPC UA Server

Theory is great, but let's get practical. How do you actually make this happen? Based on our hands-on user guide, here’s a streamlined walkthrough of the key steps to configure your Ignition Edge gateway to forward data to an external OPC UA server.

Step 1: Configure the Outgoing OPC UA Connection

First, you need to teach Ignition Edge how to talk to your central server. This involves setting up a client connection from the gateway to the destination.

  1. Log into your Ignition Gateway Web Interface and navigate to Config > OPC Connections.
  2. Create a new OPC UA Connection. You'll need the Endpoint URL of your Prosys Simulation Server or your production server.
  3. Establish Trust. Security is paramount. You'll need to manage security policies and trust the server's certificate. The connection will initially show as "Faulted" until this two-way trust is established. Once complete, the status should change to "Connected."

Screenshot of the Ignition Edge gateway interface showing a successful client connection to an external OPC UA server.


Step 2: Write a Script for Automated Data Forwarding

With the connection established, how do you move the data? The most flexible and efficient method is using a Tag Event Script. This script runs automatically every time your source tag's value changes.

  1. Open the Ignition Designer and locate your source tag (e.g., the Modbus tag we created previously). Right-click and select "Edit tag...".
  2. Navigate to the Scripting Events. In the Tag Editor, find the "Value Changed" event and open the script editor.
  3. Write the Python Script. You'll enter a short Python script that performs one key action: it takes the new value from the source tag (currentValue) and writes it to the destination tag on the remote OPC UA server. The system.tag.writeBlocking() function is your best friend here.

Python


# A simplified example of the core logic # Fired whenever the Modbus tag value changes def valueChanged(tag, tagPath, previousValue, currentValue, initialChange, missedEvents): # Define the full path to the tag on the remote OPC UA server destination_tag_path = "[Prosys_Connection]Objects/MyObjects/Simulation/Random" # Get the new value from the source tag new_value = currentValue.getValue() # Write the new value to the destination tag if currentValue.getQuality().isGood(): system.tag.writeBlocking([destination_tag_path], [new_value])

Once you save this script, the data forwarding is live! Every change in your Modbus device is now instantly and automatically mirrored on your central server. It's OT/IT convergence in action.


A screenshot showing a Python script in the Ignition Designer's Value Changed event editor, used for forwarding data to an OPC UA server.

FAQ

Q1: What is the main benefit of using an OPC UA server instead of just sending data directly to a database?

A: While you can send data directly to a database, using an OPC UA server provides a standardized, secure, and context-rich layer in between. OPC UA offers a structured information model, robust security features (authentication, encryption), and interoperability that a raw database connection lacks. It makes your data easily accessible to a wide range of industrial applications (like SCADA and MES) without custom integration for each one.

Q2: Does the "store-and-forward" feature require a lot of storage on the EG5120?

A: Not typically for most applications. The amount of storage depends on the data volume (number of tags and change frequency) and the potential duration of the network outage you want to buffer for. The EG5120 comes with 16 GB of high-reliability eMMC storage, which is more than sufficient to store days or even weeks of typical sensor data, ensuring robust data integrity.

Q3: Can I forward data to multiple destinations, like an OPC UA server and an MQTT broker simultaneously?

A: Absolutely. This is a key strength of using a flexible platform like the Robustel EG5120 with Ignition Edge. You can configure multiple data forwarding paths. For example, you could use the tag script to write to your OPC UA server for SCADA integration while also using Ignition's built-in MQTT Transmission module to send the same data to a cloud platform like AWS IoT or Azure for big data analytics.