T_ALY_SPSetGetHistoricalDataState_Cmd
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
Inputs
Name | Type | Description |
---|---|---|
sResultTopic | T_MaxString | Topic name of the result stream (used like a handle). |
eSta.te | 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). |
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 |