Skip to main content
Version: Streamsheets 3.0

OPCUA.READ

Premium

Reads a value from an OPC UA Server.

Syntax

=OPCUA.READ(Connection, Node, Target)

Arguments

NameTypeDescription
ConnectionConnectionConnection to use for reading.
NodeStringPath of the node to read or node id.
TargetTargetINBOX(), 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.

Return

TypeDescription
Number or ErrorThe function OPCUA.READ always returns a unique random request ID, which can be used with requestinfo to check the state of the request, if no error.

Examples

AB
1ns=2;s=Demo.SimulatopnSpeed
FormulaResultComment
=OPCUA.READ(OPCUAProducer,A1,INBOX())
The request IDThis reads the node and places the result into the inbox.
=OPCUA.READ(|OPCUAProducer,"/Objects/1:Machines/1:H1mrblX0X/name",C5:G9)
The request IDThis reads the name of the app with the id "H1mrblX0X" and places the result into the inbox.