FB_NoSQLValidationEvt

FB_NoSQLValidationEvt 1:

Function block for reading the validation events and results that occurred when reading the data with FB_NoSQLResultEvt. This function block is initialized via the CreateValidation method of the NoSQLResult. It refers to the last call of the ReadAsStruct method.

Syntax

Definition:

FUNCTION BLOCK FB_NoSQLValidationEvt
VAR_INPUT
    sNetID: T_AmsNetID := '';
    tTimeout: TIME := T#5S;
END_VAR
VAR_OUTPUT
    bBusy: BOOL;
    bError: BOOL;
    ipTcResult: Tc3_EventLogger.I_TcResultEvent
END_VAR

FB_NoSQLValidationEvt 2: Inputs

Name

Type

Description

sNetID

T_AmsNetID

AMS network ID of the target device at which the ADS command is directed.

tTimeout

TIME

Indicates the time before the function is cancelled.

FB_NoSQLValidationEvt 3: Outputs

Name

Type

Description

bBusy

BOOL

TRUE as soon as a method of the function block is active.

bError

BOOL

TRUE when an error occurs.

ipTcResult

Tc3_EventLogger.I_TcMessage

Message interface from the TwinCAT 3 EventLogger, which provides details on the return value.

FB_NoSQLValidationEvt 4: Properties

Name

Type

Access

Description

eTraceLevel

TcEventSeverity

Get, Set

Specifies the weighting of the events. Only events with a weighting higher than this value are sent to the TwinCAT system.

FB_NoSQLValidationEvt 5: Methods

Name

Definition location

Description

GetIssues

Local

Reads a list of validation events as a string array.

GetRemainingData

Local

Reads the data as a string which could not be assigned to any element in the structure in the PLC.

Release

Local

Releases the buffered data in the TwinCAT Database Server.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1 Build 4022.20

PC or CX (x86)

Tc3_Database