Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Industrial Technology

Step-by-Step Guide: Installing Node-RED on PLCnext Using Podman

How to install Node-RED in PLCnext with Podman

Since firmware 2023.0, Podman (https://podman.io/) has been installed on the PLCnext operating system. Podman fulfills the same function as Docker. This implementation guarantees a simpler Node-RED installation for the end user.

IMPORTANT: Due to the changes that PLCnext undergoes with each firmware update, these procedures may stop working in the future. If this is the case, this document will be updated.

Created 05-03-2024

Last modified 11-03-2024

Requirements

Controller: AXC F 1152 - AXC F 2152 - AXC F 3152

Storage: SD memory 2GB or higher for AXC F 1152 / 2152

Firmware: 2023.0 LTS or higher

1. Installation steps:

1.1. Accessing via SSH client:

1.2. Accessing as root user:

su
sudo passwd root

NOTE: The admin and root users are different. Setting a different password for the root user will not affect the "admin" user.

1.3. Installing Node-RED:

podman run -d -p 1880:1880 --name nodered --restart always docker.io/nodered/node-red:2.2.2

1.4. Installing Examples:

podman run -d -p 1880:1880 --name nodered --restart always docker.io/fellipem/noderedpxc:alarms
podman run -d -p 1880:1880 --name nodered --restart always docker.io/fellipem/noderedpxc:opcua

1.5. Accessing Node-RED:

WARNING: Unlike Docker, Podman does not run as a service within PLCnext. Therefore, Node-RED will not start automatically when the PLC is turned on. To make Node-RED start with the PLC, follow these steps:

2. Steps to start Node-RED automatically:

2.1. Create a startup script:

git clone https://github.com/Fellipem1/PLCnext_Node-RED.git

2.2. Move the file:

mv /opt/plcnext/PLCnext_Node-RED/nodered.sh /etc/init.d/

2.3. Change file permissions:

chmod +x /etc/init.d/nodered.sh

2.4. Add the script to startup:

update-rc.d nodered.sh defaults

NOTE: Remember to always perform these steps using the root user.

3. Steps to install libraries in Node-RED:

3.1. Start Node-RED and access the container:

podman start nodered
podman exec -it nodered /bin/bash
cd /data

3.2. Install the library:

npm i node-red-contrib-iiot-opcua@3.11.1-4

3.3. Exit the container and restart Node-RED:

podman stop nodered
podman start nodered

4. Common Errors

4.1. Error 1: mkdir no such file or directory

4.2. Error 2: Certificate Expired

date -s “29 FEB 2024 11:25:39”

4.3. Error 3: Failed, retrying timeout

ping google.cl

More information: https://github.com/Fellipem1/PLCnext_Node-RED


Industrial Technology

  1. How IIoT Revitalizes Air Conditioning Production: Boosting Efficiency and Quality
  2. Top 5 Precision CNC Machining Techniques You Should Know
  3. 5G & eSIM Propel Industrial IoT Connections to 37 Billion by 2025
  4. Exploring Quantum Computing in the Human Brain
  5. Bosch’s Blaichach Plant: Putting People First in Industry 4.0
  6. Crafting a Proven Marketing Strategy for Sustainable Growth
  7. Through-Hole Technology: Why It Remains Essential in Modern PCB Design
  8. Logistics Firms Brace for Grand Reopening: Will Employees Return?
  9. Pivoting to Ventilators: An Expert Q&A with Pointfar Automation’s President Kash Behdinan (Part 1)
  10. Ensuring Safety and Reliability in Hydrogen Fuel Cell Technology