In practice
Read, write, and subscribe to industrial values.
Connect industrial data to automation, SCADA, MES, and IoT workflows.
- The task
- Data in an OPC UA server needs to reach a Node-RED flow, and a flow may need to write values back.
- My contribution
- I developed a Node-RED integration for reads, writes, and subscriptions, including direct payload writing with automatic data type detection.
- The result
- The integration supports monitoring changing values and sending values from a flow to a server.
Capabilities
- Read specific Node IDs from an OPC UA server.
- Subscribe to changing values or write values from a flow.
- Direct msg.payload writing with automatic data type detection.
Install in your Node-RED user directory
npm install node-red-opcua-otmrRestart Node-RED after installation.
From the project
Configure the actual client.
The editor defines an endpoint, port, Node IDs, operation, and data type. Supply the settings for your own server.
Editor source · opcua-otmr.html
defaults: {
name: { value: "" },
endpoint: { value: "", required: true },
port: { value: 4840, validate: RED.validators.number(), required: true },
nodeIds: { value: "", required: true },
operation: { value: "read", required: true },
dataType: { value: "" }
}