T_ALY_SPSetGetHistoricalDataState_Cmd

T_ALY_SPSetGetHistoricalDataState_Cmd 1:

Syntax

Definition:

FUNCTION_BLOCK T_ALY_SPSetGetHistoricalDataState_Cmd EXTENDS T_ALY_JsonPayload
VAR_INPUT
    sResultTopic  : T_MaxString;
    eState : E_SetGetHistoricalDataState;
    nSendDuration_ms : DINT;
    nRestartTimestamp : LINT;
    nMaxSampleCount : UDINT;
    nMaxPackageSize_KB: DINT;
    nUserSampleTime : LINT;
END_VAR

Inheritance hierarchy

T_ALY_JsonPayload

    T_ALY_SPSetGetHistoricalDataState_Cmd

T_ALY_SPSetGetHistoricalDataState_Cmd 2: Inputs

Name

Type

Description

sResultTopic

T_MaxString

Topic name of the result stream (used like a handle).

eSta.te   

E_SetGetHistoricalDataState

Historical stream state

nSendDuration_ms

DINT

Waiting time between sending the individual packages

nRestartTimestamp

LINT

Timestamp at which the result stream is continued.

nMaxSampleCount

UDINT

Maximum number of entries in a package

nMaxPackageSize_KB

DINT

Maximum size of a package

nUserSampleTime

LINT

Sample time in milliseconds of the returned stream (-1 uses the recorded sample time).

T_ALY_SPSetGetHistoricalDataState_Cmd 3: Methods

Name

Definition location

Description

Reset

 

Reset all values in the payload FB.

Init_JsonValue

Inherited from T_ALY_JsonPayload

Initialization of the FB with JSON object.

Init_String

Inherited from T_ALY_JsonPayload

Initialization of the FB with JSON string.

GetJsonLength

Inherited from T_ALY_JsonPayload

Get the length of the JSON payload.

GetJsonString

Inherited from T_ALY_JsonPayload

Get JSON payload as string.

Development Environment

Target platform

PLC libraries to include

TwinCAT v3.1.4022.25

PC or CX (x64, x86, Arm®)

Tc3_AnalyticsStorageProvider