OPC UA Writer Documentation
Version: 6.0.0
Retrieved:Â 2025-10-09 15:16:09
OPC UA Writer
The module is used to write values to nodes in a OPC UA Server.
Settings
In the settings you specify the URL and credentials used for setting up subscription on a OPC UA server. A nodeId should be provided in the nodeId property on the incoming message or in the settings property Node Id. If the Node Id property in the settings is provided it will always have higher priority than the nodeId on the incoming message. The actual value to write to the Node is always provided on the incoming message. You configure the location of the value by setting the mandatory Value Property.
| Name | Requirements | Purpose | Default |
|---|---|---|---|
| Server URL | Â | The OPC UA server to write to | Â |
| Accept Untrusted Certificate | Â | If true the server certificate will be automatically trusted by the client. | true |
| Auto-Generate Client Certificate | Â | If false the module will not use a client certificate for the connection. | true |
| Security Policy | None, Basic128Rsa15, Basic256, Basic256Sha256, Https | Define the algorithm to use for signing and message encryption (depending on the mode specified). | None |
| Security Mode | None, Sign, SignAndEncrypt | Define the mechanisms to secure the message exchange. | None |
| Node Id | string | The id of the node to write the value to. If empty the property nodeId is expected to be found on the incoming message. |  |
| Array Source Property | string | Optional property referencing an array of values to be written. See the Input section below. | Â |
| Value Property | string | The property on the incoming message that contains the value to write to the Node. | Â |
| Timestamp Property | string | Optional property on the incoming message that contains the Timestamp to write with the value. |  |
| Status Code Property | string | Optional property on the incoming message that contains the Status Code to write with the value. Should be the number representation of the status code, or a string with one of the following values: 'Good', 'Uncertain' or 'Bad'. |  |
| Data Type Property | string | Optional property on the incoming message that contains the Data Type Property to write with the value. Should be a valid string representation of the data type. |  |
| Data Type Value Rank Property | string | Optional property on the incoming message that contains the Data Type Value Rank Property to write with the value. Should be the number representation of the value rank. |  |
Credential
This module contains an option to select credentials to use in the module. All credentials supported by the module are presented in a drop-down.
Input
The module expects either a single object, or an array of objects in each message. Each object must contain the specified 'Value Property' and if the 'Node Id' setting is empty, a nodeId property is also expected. Additional properties may be required depending on the optional settings for 'Timestamp', 'StatusCode', 'Data Type' and 'Data Type Value Rank' properties.' If the 'Array Source Property' setting is empty a single object is expected and all property setting references starts at the root of the message. If the 'Array Source Property' is not empty, an array of objects is expected as input and all property setting references starts at the root of each oject in the array.
Output
The same as the data passed in together with the result of the operation
Examples
Writing a value to a node in a OPC UA server.
# Settings:
Node Id =
Value Property = data.temp
Server URL = opc.tcp://192.168.0.103:51210/UA/SampleServer
Security Mode = None
Security Policy = None
# Incoming message:
{
data:{
temp: 42,
nodeId: "ns=2;i=10303"
}
}
# Outgoing message:
{
data:{
temp: 42,
nodeId: "ns=2;i=10303"
},
crosser:{
success: true
}
}
Writing multiple values to nodes in a OPC UA server.
# Settings:
Server URL = opc.tcp://192.168.0.103:51210/UA/SampleServer
Security Mode = None
Security Policy = None
Value Property = data.temp
Timestamp Property = timestamp
Status Code Property = sc
Data Type Property = dt
Data Type Value Rank Property = dv
{
"crosser": {
"success": true
},
"data": [
{
"dt": "Int16",
"dv": -1,
"id": 1,
"name": "machine",
"nodeId": "ns=2;i=8",
"sc": "Good",
"timestamp": "2024-10-30T13:43:21.9694555+00:00",
"value": 4
},
{
"dt": "UInt32",
"dv": -1,
"id": 1,
"name": "machine",
"nodeId": "ns=2;i=7",
"sc": "Good",
"timestamp": "2024-10-30T13:43:21.9694555+00:00",
"value": 7
}
]
}
Note that the module will look for nodeId on root level or on the same level as the source property.
Search Documentation
Industrial