FB_ALY_ActiveRecordings

FB_ALY_ActiveRecordings 1:

The FB_ALY_ActiveRecordings is a client FB for monitoring the active recordings of a Storage Provider instance. The FB provides methods to start and stop monitoring. The active recordings found are output at arrRecordings with the corresponding status information.

Syntax

Definition:

FUNCTION_BLOCK FB_ALY_ActiveRecordings
VAR_INPUT
    stConfig : ST_ALY_SP_Config;
END_VAR
VAR_IN_OUT
    arrRecordings : ARRAY [*] OF ST_RecordingStatus;
END_VAR
VAR_OUTPUT
    bError : BOOL;
    ipResultMessage  : I_TcMessage;
    eConnectionState : ETcIotMqttClientState;
    bIsMonitoring : BOOL;
    nActiveRecordings : UDINT;
    nReceivedMessages : ULINT;
END_VAR

FB_ALY_ActiveRecordings 2: Inputs

Name

Type

Description

stConfig

ST_ALY_SP_Config

Structure for the configuration of the FB.

FB_ALY_ActiveRecordings 3: Inputs/outputs

Name

Type

Description

arrRecordings

ARRAY [*] OF ST_RecordingStatus

List of active recordings found

FB_ALY_ActiveRecordings 4: Outputs

Name

Type

Description

bError

BOOL

Becomes TRUE when an error situation occurs.

ipResultMessage

I_TcMessage

Message interface of the TwinCAT 3 EventLogger, which provides further information about the return value.

eConnectionState

ETcIotMqttClientState

Specifies the state of the connection between client and broker as an enumeration ETcIotMqttClientState.

bIsMonitoring

BOOL

Becomes TRUE as soon as monitoring is started.

nActiveRecordings

UDINT

Number of active recordings found

nReceivedMessages

ULINT

Number of MQTT messages received

FB_ALY_ActiveRecordings 5: Methods

Name

Definition location

Description

Call

Local

Method for background communication with the TwinCAT driver. The method must be called cyclically.

StartMonitoring

Local

Starts the monitoring of active recordings

StopMonitoring

Local

Stops the monitoring of active recordings

Development Environment

Target platform

PLC libraries to include

TwinCAT v3.1.4022.25

PC or CX (x64, x86, Arm®)

Tc3_AnalyticsStorageProvider