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
xExecuteBOOLETrig
Output
xDoneBOOLETrig
xBusyBOOLETrig
xErrorBOOLETrig
Input
itfValueSetThe values to read
itfConnectionThe connection of the UA.Client
eTimestampsToReturnTIMESTAMPS_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
eErrorIDThe error code of the request
xValueSetDiagnosisBOOLTRUE: At least one value in the ValueSet has diagnostic information - Check all UA.Value.eErrorFALSE: All values in the ValueSet report NO_ERROR
Methods:
Structure: