Read (FB)ΒΆ

FUNCTION_BLOCK Read EXTENDS CBML.ETrig IMPLEMENTS IReader, IOPCUAClientDataAccessCallback, IMemoryHandler

This function block reads values from the OPC UA server.

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Input

xExecute

BOOL

ETrig

Output

xDone

BOOL

ETrig

xBusy

BOOL

ETrig

xError

BOOL

ETrig

Input

itfValueSet

IValueSet

The values to read

itfConnection

IConnection

The connection of the UA.Client

eTimestampsToReturn

TIMESTAMPS_TO_RETURN

TIMESTAMPS_TO_RETURN.NEITHER

Timestamp request | If eTimestampsToReturn <> UA.TIMESTAMPS_TO_RETURN.NEITHER a timestamp data target structure can be defined for each UA.Value of the used UA.ValueSet via UA.Value.pTimestampValue

Output

eErrorID

ERROR

The error code of the request

xValueSetDiagnosis

BOOL

TRUE: At least one value in the ValueSet has diagnostic information - Check all UA.Value.eError
FALSE: All values in the ValueSet report NO_ERROR

Methods:

Structure: