OpcUaWriteValue – Write value to OPC UA Server
Block SymbolLicensing group: ADVANCED
Function Description
This function block depends on the OpcUa driver. Please read the OpcUaDrv manual [24]
before use.
The OpcUaWriteValue block writes value to the OPC UA Node through a connection established by the OpcUaDrv.
The first two parameters are NodeId and NodeId_type. The NodeId_type specifies what type of information it is expected to be entered as the NodeId parameter. If the value is string, numeric, guid than the NodeId parameter should contain the id of the actual OPC UA Node on the server prefixed with the index of the namespace declared in the configuration of the driver separated by a colon (e.g. 1:myNode).
If the type is set to path than the NodeId parameter should contain the path to the desired Node in the server structure. Every segment of the path is composed from the attribute BrowserName of the node and the BrowserName is similarly with regular NodeId types prefixed with the index of the namespace declared in the configuration of the driver separated by a colon (e.g. /1:myDevice/1:myNode). The path is relative to the Objects folder in the OPC UA server structure.
The parameter type specifies the expected Node’s value data type. The input signal value is converted to the specified type and is than written to the Node’s value attribute.
When the process of writing the value is finished the result code defined by OPC UA is set to the code output and it’s textual representation is set to the status output.
This block does not propagate the signal quality. More information can be found in the 1.4 section.
Input
value | Input signal | Any |
WRITE | Enable execution | Bool |
Parameter
NodeId | OPC UA Node Id | String |
NodeId_type | Type of Node ID 1 | Long (I32) |
|
|
|
type | Value data type 1 | Long (I32) |
|
|
|
Output
BUSY | Busy flag | Bool |
DONE | Indicator of finished transaction | Bool |
errId | Error code | Error |
code | OPC UA result status code | DWord (U32) |
status | OPC UA result status string | String |
[Previous] [Back to top] [Up]
2024 © REX Controls s.r.o., www.rexygen.com