A diagram showing how Node-RED edge computing can be used to create smart alarms by combining data from multiple industrial sensors.

Node-RED edge computing + EG series edge gateways: building the "nerve endings" of digital transformation

Written by: Bill Chen

|

Published on

|

Time to read 5 min

Bill Chen,Technical Support Engineer at Robustel

Bill Chen is a senior industrial Internet technical support expert, focusing on solution design and network troubleshooting. Proficient in industrial network protocols, good at OT/IT integration architecture optimization, quickly locating and solving problems such as device connection and data anomalies. With more than 10 years of experience, we serve more than 100 customers in manufacturing, energy and other industries, and help companies stabilize production and increase efficiency with efficient solutions.

Summary

Node-RED edge computing is a transformative approach to Industrial IoT that empowers engineers to visually build and deploy complex data workflows without deep programming expertise.

Robustel has deeply integrated Node-RED as "Robustel Flow" within its E2C Pro middleware, running on edge gateways like the EG5120. 

This low-code IIoT solution allows users to simply drag and drop "nodes" to connect to PLCs, filter data, create smart alerts, and send insights to the cloud, dramatically accelerating development and bridging the skills gap between OT and IT.

Introduction

In my experience, one of the biggest roadblocks in any Industrial IoT project is the "last mile" of code. You have an OT engineer who understands the machinery perfectly and an IT team that knows how to manage a cloud database, but there's a gap in the middle. Who writes the software on the gateway that reads the PLC data, checks it for anomalies, and sends it to the cloud in the right format? This often requires a specialized and expensive developer.

I've seen projects stall for weeks over a simple request: "Can we get an email alert if the motor temperature exceeds 80 degrees for five minutes?" For the OT engineer, the logic is simple, but implementing it in Python or C++ is a major task. What if that engineer could just draw the logic on a screen, like a flowchart? That's not a fantasy; that's the reality of Node-RED edge computing. It's about empowering the domain experts on the factory floor to build their own solutions.

What is Node-RED Edge Computing? A Visual Approach to IIoT Automation

At its core, Node-RED is an open-source, flow-based programming tool for wiring together hardware devices, APIs, and online services. Let's be clear: it's a visual way to build applications. Instead of writing lines of code, you drag and drop pre-built blocks, called "nodes," onto a canvas and connect them with "wires" to create a "flow." Each node has a small, specific job, like reading a Modbus register, checking a value, or sending an MQTT message. When you wire them together, you create a powerful data processing application.

When this environment runs on an industrial edge gateway, it becomes Node-RED edge computing. It gives you a simple yet powerful way to process data right at the source, making your operations smarter, faster, and more efficient.

Robustel Flow: Node-RED, Supercharged for Industry

At Robustel, we've integrated Node-RED directly into our E2C Pro middleware and named it Robustel Flow. We didn't just include it; we deeply embedded it to work seamlessly with our hardware and software. This integration means Node-RED can access all the internal data buses and storage on the gateway, giving it powerful capabilities. It’s a core component of our edge gateways, including the powerful EG5120, and is designed to allow even non-programmers to create and deploy complex edge logic with ease.

The user interface of Robustel Flow, demonstrating a Node-RED edge computing flow for reading Modbus data and sending an alert.

3 Practical Applications of Node-RED Edge Computing

The best way to understand the power of this approach is to see what you can build with it. Here are three common scenarios where Node-RED on a Robustel gateway excels.

1. Universal Protocol Conversion and Data Filtering


  • The Challenge: You have a legacy machine that speaks Modbus RTU, and your IT department needs its data in a modern cloud platform that only accepts JSON over MQTT.
  • The Node-RED Solution: This is the classic Node-RED edge computing use case. You can build a simple flow in minutes:
    • Drag in a "Modbus Read" node and configure it with your PLC's IP address and the registers you want to read.
    • Connect its output to a "Function" node to organize the raw data into a clean JSON object (e.g., {"temperature": 75.2, "pressure": 1024}).
    • Wire that node to an "MQTT Out" node and configure it with your cloud server's address.
  • The Benefit: You've just created a powerful protocol converter without writing a single line of code. You can also add nodes to only send data when values change, saving significant data costs.

2. Creating Smart Alarms and Proactive Alerts


  • The Challenge: A simple "machine stopped" alarm isn't enough. You want to get a warning before a failure occurs by analyzing multiple data points.
  • The Node-RED Solution:As seen in our IIoT Starter Kit, you can use Node-RED to build intelligent logic to detect anomalies and trigger alerts.
    • Read data from multiple sources: a vibration sensor on a motor, a temperature sensor on a bearing, and the motor's current draw from a PLC.
    • Use "Switch" and "Function" nodes to build logic like: "If vibration exceeds threshold X AND temperature is above threshold Y, trigger a high-priority alert. If only vibration is high, trigger a low-priority maintenance request."
    • Send the alert via multiple channels using dedicated nodes for Email, SMS, or even platforms like Slack and Telegram.
  • The Benefit: This transforms your maintenance from reactive to proactive, preventing costly downtime by catching failures before they happen.

A diagram showing how Node-RED edge computing can be used to create smart alarms by combining data from multiple industrial sensors.

3. Building a Simple Local HMI/Dashboard

  • The Challenge: Sometimes you just need a simple, on-site dashboard to check a machine's status without needing a full SCADA system or even an internet connection.
  • The Node-RED Solution:Node-RED has a powerful set of official dashboard nodes. You can build a simple, web-based Human-Machine Interface (HMI) that runs directly on the edge gateway.
    • Drag and drop "Gauge," "Chart," and "Text" nodes onto your canvas.
    • Wire your Modbus or OPC UA data directly to these dashboard nodes.
    • Access the dashboard from any web browser on the local network by navigating to the gateway's IP address.
  • The Benefit: This provides a fast, free, and incredibly simple way to create local status displays for operators and maintenance staff, improving on-site visibility without any additional hardware or cloud costs.
A sample of a simple, local HMI dashboard created with Node-RED

FAQ

Q1: Do I need a license to use Node-RED on a Robustel gateway?

A: No. Node-RED is an open-source tool, and our integration, Robustel Flow, is included as part of the E2C Pro middleware on our compatible edge gateways.

Q2: How steep is the learning curve for someone who isn't a programmer?

A: This is the primary strength of Node-RED edge computing. The learning curve is very gentle. If you can draw a flowchart, you can build a basic Node-RED flow. The community is massive, and there are countless tutorials and examples available on the official Node-RED website and other forums.

Q3: Can Node-RED handle high-speed or complex data processing?

A: Yes. While it's a low-code tool, it is very powerful. It can handle thousands of messages per second. For very complex mathematical calculations, you can write custom code inside a "Function" node using JavaScript, giving you the best of both worlds: visual flow for structure and code for complex logic where needed.