TrendFbDatabaseAccessErrorHandler.IsDatabaseAccessEnabled (METH) ¶ METHOD IsDatabaseAccessEnabled : BOOL This method should be evaluated by all the function block instances, that perform an access to the underlying SQLite database. In case of a permanent error (e.g. disk full) this method returns FALSE and a database access should be not performed. InOut: Scope Name Type Return IsDatabaseAccessEnabled BOOL
TrendFbDatabaseAccessErrorHandler.SQLiteErrorHandling (METH) ¶ METHOD SQLiteErrorHandling This method is used to do the error processing of errors coming from the database layer. InOut: Scope Name Type Comment Input iFunction INT An int describing the method or function, where the error occurred eError STO.ERROR The error code coming from sqlite iAction INT An int describing the action, that failed.
private ¶ prvGetActionName (Method) prvGetErrorDescription (Method) prvGetFunctionName (Method)
TrendFbTrendStorageWriterReader (FB) ¶ FUNCTION_BLOCK TrendFbTrendStorageWriterReader IMPLEMENTS ITrendStorageWriterBufferClient This functionblock can be used to read data directly from a ITrendStorageWriter Methods: GetAndResetIsCleared GetMinMaxTimestampsFromBuffer Initialize Read ReleaseDB ShrinkMemory BuildBuffer CleanBuffer InitializeBufferReader Structure: GetAndResetIsCleared (Method) GetMinMaxTimestampsFromBuffer (Method) ITrendStorageWriterBufferClient BuildBuffer (Method) CleanBuffer (Method) InitializeBufferReader (Method) Initialize (Method) Read (Method) ReleaseDB (Method) ShrinkMemory (Method)
TrendFbTrendStorageWriterReader.GetAndResetIsCleared (METH) ¶ METHOD GetAndResetIsCleared : BOOL InOut: Scope Name Type Return GetAndResetIsCleared BOOL
TrendFbTrendStorageWriterReader.GetMinMaxTimestampsFromBuffer (METH) ¶ METHOD GetMinMaxTimestampsFromBuffer : UDINT This method returns the min/max timestamps of the data in the local buffer InOut: Scope Name Type Comment Return GetMinMaxTimestampsFromBuffer UDINT An error code indicating, whether the processing was successful or not Output liMinTimestamp LINT Returns minimum timestamp liMaxTimestamp LINT Returns maximum timestamp
ITrendStorageWriterBufferClient ¶ BuildBuffer (Method) CleanBuffer (Method) InitializeBufferReader (Method)
ITrendStorageReaderConsumer.ValueRead (METH) ¶ METHOD ValueRead Notification, that a variable value from TblTrendData has been read and can be processed. InOut: Scope Name Type Comment Input diWhichRow DINT A 0-based index of the row read from TblTrendData. iWhichVariable INT A 0-based index of the variable within all variables liValue LINT The value, that was read from TblTrendData xValueNULL BOOL Indicates, whether NULL is stored in the trend storage
ITrendStorageReaderConsumer.VariableConfigurationRead (METH) ¶ METHOD VariableConfigurationRead Notification, that the variable configuration was read and reading of data will start immediately. InOut: Scope Name Type Comment Input paTrendStorageVariableDescription POINTER TO ARRAY [0..0] OF TrendStorageVariableDescription Points to an array of TrendStorageVariableDescription Variables, where the configuration of the variables has been stored. This array contains the description of the variables, whose data will be read iCountVariables INT The effective size of the array above, i.e. the number of variables
ITrendStorageWriterListener (ITF) ¶ INTERFACE ITrendStorageWriterListener This interface must be implemented by function blocks, that have to be informed if new data has been written into the trend storage Methods: DataWritten Structure: DataWritten (Method)