GetIssues

Reads the validation events that occurred into an array of type T_MAXSTRING. These contain information about remaining or unassigned records or which elements of the PLC structure were not filled.

Syntax

METHOD GetIssues : BOOL
VAR_INPUT
    pData : POINTER TO BYTE;
    cbData: UDINT;
    bDataRelease : BOOL;
END_VAR

GetIssues 1: Inputs

Name

Type

Description

pData

POINTER TO BYTE

Address of the array of type T_MAXSTRING in which the records are to be written.

cbData

UDINT

Indicates the size of the string array in bytes.

bDataRelease

BOOL

Releases the cached data.

GetIssues 2: Return value

Name

Type

Description

ReadAsString

BOOL

Displays the status of the method. Returns TRUE as soon as the method execution is finished, even in the event of an error.

Sample:

VAR
    fbNoSqlValidation : FB_NoSQLValidation(sNetID := '', tTimeout := t#15S);
    aIssues : ARRAY[0..1000] OF T_MAXSTRING;
END_VAR
IF fbNoSqlValidation.GetIssues(
    pData:= ADR(aIssues),
    cbData:= SIZEOF(aIssues),
    bDataRelease:= TRUE)
THEN
    IF fbNoSqlValidation.bError THEN
        TcMessage := fbNoSqlValidation.ipTcResult;
        nstate := 255;
    ELSE
        nstate := nstate+1;
    END_IF
END_IF