OpcUaReadValue – Read value from OPC UA Server

Block SymbolLicensing group: ADVANCED
Qt SVG Document Exported by REXYGEN Studio READ value BUSY DONE errId OpcUaReadValue

Function Description
This function block depends on the OpcUa driver. Please read the OpcUaDrv manual [24] before use.

The OpcUaReadValue block reads value of an OPC UA Node through a connection established by the OPC UA client driver.

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 block converts the Node’s value to the specified type and sets the value output signal in case of success or it sets the errId to the resulting error code.

This block does not propagate the signal quality. More information can be found in the 1.4 section.

Input

READ

Enable execution

Bool

Parameter

NodeId

OPC UA Node Id

String

NodeId_type

Type of Node ID  1

Long (I32)

1 ....

string

2 ....

numeric

3 ....

guid

4 ....

path

type

Expected type of incoming data  1

Long (I32)

1 ....

Bool

2 ....

Byte (U8)

3 ....

Short (I16)

4 ....

Long (I32)

5 ....

Word (U16)

6 ....

DWord (U32)

7 ....

Float (F32)

8 ....

Double (F64)

10 ...

Large (I64)

12 ...

String

Output

value

Output signal

Any

BUSY

Busy flag

Bool

DONE

Indicator of finished transaction

Bool

errId

Error code

Error

2024 © REX Controls s.r.o., www.rexygen.com