OPCUA.WRITE
This is a premium feature.
Sends a write request of a value to an OPC UA Server. The Server will respond, if the write was successful or not. You can use the Function Wizard for this function. Click here for a more detailed tutorial on opcua functions.
Syntax
=OPCUA.WRITE(Producer, Node, ValueJSON, Target, [ResultKeys], [Timeout])
Arguments
Name | Description |
---|---|
Producer | Producer to use for publishing. |
Node | Path of the node to write to or node id. |
ValueJSON | JSON with a "value" and a "dataType" field containing the value to write and the data type of the value. |
Target | INBOX(), OUTBOX("MsgID") or a cell range where the result will be placed. Make sure the cell range is big enough or not everything is displayed. |
ResultKeys (optional) | Limit the result to the specified JSON Keys |
Timeout (optional) | The time to wait for an answer. When left empty a 20 second timeout is being used. |
Return
The function OPCUA.WRITE always returns a unique random request ID, which can be used with requestinfo to check the state of the request, if no error.
Examples
Formula | Result | Comment |
---|---|---|
| TRUE | Writes 13 as data type UInt32 into the given node id. |