T_ALY_SPGetHistorical_Cmd

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
Inputs
Name | Type | Description |
---|---|---|
sTopic | T_MaxString | Topic name of the recorded Live Stream |
sLayout | GUID | Layout GUID of the recording |
eMode | Get all symbols or only a subset | |
eOutputFormat | 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 |
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 |