This project demonstrates the integration of Node-RED with an OPC UA Server, specifically designed for deployment on IXON's SecureEdge Pro device and seamless integration with IXON Cloud. It showcases how to leverage IXON's industrial IoT ecosystem for efficient edge computing and cloud connectivity.
Key components of this project include:
- A custom Node-RED image with OPC UA nodes, optimized for SecureEdge Pro
- An OPC UA Server configuration within Node-RED
- Docker-based deployment tailored for SecureEdge Pro
- Direct integration with IXON Cloud for secure data storage and visualization
This solution demonstrates the power of IXON's SecureEdge Pro as an edge computing platform, capable of running containerized applications like Node-RED. It also highlights the seamless connectivity between edge devices and IXON Cloud, enabling remote monitoring, data analysis, and device management through a unified platform.
Users can take this project as a template and adapt it for their specific use cases within the IXON ecosystem. The flexibility of Node-RED combined with the robustness of SecureEdge Pro allows for easy customization of data flows and integration with various industrial protocols. Whether you need to collect data from PLCs, implement custom data processing logic, or create tailored dashboards in IXON Cloud, this project provides a solid foundation that can be extended to meet diverse requirements in various industrial IoT scenarios.
Ensure your environment is properly set up by following this guide: Running custom Docker applications on the SecureEdge Pro.
Ensure you have the correct builder in use:
For Unix-based systems:
./setup-buildx-env.sh
For Windows:
setup-buildx-env.cmd
Run the script to build and push the Node-RED container with OPC-UA nodes to the SecureEdge Pro:
For Unix-based systems:
./build_and_push_containers.sh
For Windows:
build_and_push_containers.cmd
-
Access the local web interface of the SecureEdge Pro.
-
Create a
node-red-opc-ua
container using thenode-red-opc-ua
image with the following port mappings:Port Mapping: 1880:1880 Port Mapping: 53881:53881
-
Create a volume with the following settings:
Volume: node-red-data -> /data
Refer to the screenshot for configuration details:
- Wait for the container to be created.
- Start the container.
Refer to the screenshot for details:
- In IXON Cloud, create an HTTP Web Server to easily access the Node-RED web interface on the SecureEdge Pro.
Refer to the screenshot for configuration details:
- You can now access the Node-RED web interface on the SecureEdge Pro via the HTTP Web Server you created in IXON Cloud.
- The flow in Node-RED is already configured to write to the OPC UA server. It waits for the server to be ready to inject the variables and then starts the loop to update the variable.
- In IXON Cloud, create an HTTP Web Server to easily access the Virtual HMI web interface on the SecureEdge Pro.
Refer to the screenshot for configuration details:
- You can now access the Virtual HMI web interface on the SecureEdge Pro via the HTTP Web Server you created in IXON Cloud.
- In IXON Cloud, create an OPC UA datasource to access the OPC UA server running in Node-RED on the SecureEdge Pro.
- Import the variables using the provided CSV file:
ixon_cloud_settings/variables.csv
. - Run the test to ensure the connection is working.
Refer to the screenshots for configuration and testing details: