Status

This method can be used to query the status of the AutoLog groups. A separate busy flag is provided in the body of the function block for this method, since it can be called independently of the other methods of the function block: bBusy_Status.

Syntax

METHOD Status : BOOL
VAR_INPUT
    tCheckCycle: TIME;
    pError: POINTER TO BOOL;
    pAutoLogGrpStatus: POINTER TO ARRAY [1..MAX_CONFIGURATIONS] OF ST_AutoLogGrpStatus;
    cbAutoLogGrpStatus: UDINT;
END_VAR

Status 1: Inputs

Name

Type

Description

tCheckCycle

TIME

Interval time at which the status array is updated.

pError

POINTER TO BOOL

TRUE, if an error has occurred in AutoLog mode.

pAutoLogStatus

POINTER TO ARRAY [1..MAX_CONFIGURATIONS] OF ST_AutoLogGrpStatus

Address of the status array that contains all groups.

cbAutoLogStatus

UDINT

Length of the status array

Status 2: Return value

Name

Type

Description

Status

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
    fbPLCDBAutoLog    : FB_PLCDBAutoLogEvt(sNetID:='', tTimeout := T#5S);
    bError            : BOOL; 
    aAutologGrpStatus : ARRAY[0..MAX_CONFIGURATIONS] OF ST_AutoLogGrpStatus;
END_VAR
IF fbPLCDBAutoLog.Status(tCheckCycle := T#30S, ADR(bError), ADR(aAutologGrpStatus), SIZEOF(aAutologGrpStatus)) THEN
    ; // ...
END_IF