T_ALY_SPGetHistorical_Cmd

T_ALY_SPGetHistorical_Cmd 1:

Syntax

Definition:

FUNCTION_BLOCK T_ALY_SPGetHistorical_Cmd EXTENDS T_ALY_JsonPayload
VAR_INPUT
    sTopic  : T_MaxString;
    sLayout : GUID;
    eMode   : E_SymbolMode := E_SymbolMode.All;
    eOutputFormat   : E_RawDataFormat := E_RawDataFormat.Bin;
    nMaxSampleCount : UDINT := 3000;
    nUserSampleTime : DINT := -1;
    nRecordID : DINT;
    nStartTimestamp : LINT;
    nEndTimestamp   : LINT;
    sResultTopic : T_MaxString;
    arrSymbol : ARRAY [0..255] OF T_ALY_Symbol;
END_VAR

Inheritence hierarchy

T_ALY_JsonPayload

    T_ALY_SPGetHistorical_Cmd

T_ALY_SPGetHistorical_Cmd 2: Inputs

Name

Type

Description

sTopic

T_MaxString

Topic name of the recorded Live Stream

sLayout

GUID

Layout GUID of the recording

eMode   

E_SymbolMode

Get all symbols or only a subset

eOutputFormat   

E_RawDataFormat

Format of the returned data (actually only “Bin” supported)

nMaxSampleCount 

UDINT

Max count of samples in one payload packet

nUserSampleTime

DINT

Sampletime in milliseconds of the returned stream. (-1 use the recorded sampletime)

nRecordID 

DINT

Number of the record

nStartTimestamp 

LINT

StartTime

nEndTimestamp   

LINT

EndTime

sResultTopic 

T_MaxString

Topicname of the result stream.

arrSymbol 

ARRAY [0..255] OF T_ALY_Symbol

If SymbolMode is Subset, only the list of this symbols will be returned

T_ALY_SPGetHistorical_Cmd 3: Methods

Name

Definition location

Description

Reset

 

Reset all values inside of the payload FB

Init_JsonValue

Inherited from T_ALY_JsonPayload

Initialize FB with Json object

Init_String

Inherited from T_ALY_JsonPayload

Initialize FB with Json string

GetJsonLength

Inherited from T_ALY_JsonPayload

Get Length of 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