Examples for Node-RED
128/258
10.5 Example 5: OPC UA output node
The OPC UA output node allows you to write data via the OPC UA
protocol.
This example uses two Inject nodes and the OPC UA output node to write
data via OPC UA.
Figure 91: OPC UA output node
Prerequisites
1. A connection to the Edge Gateway is established (see section
web browser to establish a connection with the Edge
Gateway
page 18]).
2. The Node-RED workspace is open.
3. The device with the OPC UA server is connected to the Edge Gateway.
4. The IP-address of the OPC UA server is known to you.
Step-by-step instructions
1. Inserting the first Inject node:
Ø
Drag an
Inject
node from the node library and drop it in the worksheet.
2. Configuring the Inject node:
Ø
To open the edit dialog, double-click on the
Inject
node.
Ê
The edit dialog for entering the parameters will be displayed.
Ø
Select the entry
number
from the
Payload
list and enter number
1
.
Ø
In the field
Topic
enter the name of the topic, e.g.
Write1
.
Ø
In the field
Name
enter the name of this node, e.g.
Write number 1
.
Ê
All parameters are entered.
Edge Gateway | NIOT-E-TPI51-EN-RE (Connect)
DOC170502UM04EN | Revision 4 | English | 2018-08 | Released | Public
© Hilscher 2017 – 2018