OPCUA.READ¶
This is a Streamsheets Premium feature.
Reads a value from an OPC UA Server.You can use the Function Wizard for this function. Click here for a more detailed tutorial on opcua functions.
Syntax
=OPCUA.READ(Producer, Node, Target[,ResultKeys, Timeout])
Arguments
Name |
Description |
---|---|
Producer |
Producer to use for publishing. |
Node |
Path of the node to read or node id. |
Target |
Target of the result of the write operation. Can be either INBOX(), OUTBOX(“MsgID”) or a cell range. |
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 Value
The function OPCUA.READ always returns a unique random request ID, which can be used with REQUESTINFO to check the state of the request.
Examples
Function |
Result |
Comment |
---|---|---|
=OPCUA.READ(“OPCUA Producer”, “/Objects/1:Machines/1:H1mrblX0X/name”,INBOX()) |
The request ID |
This reads the name of the machine with the id “H1mrblX0X” and places the result into the Inbox. |