AlarmStorageReader (FB)
FUNCTION_BLOCK AlarmStorageReader EXTENDS AlarmStorageManager
This function block is used to read data from the alarm storage. We use a function block instead of functions to be able to store some state like the already opened table or alarm storage.
- InOut:
Scope
Name
Type
Initial
Comment
Input
_hLockRTS_IEC_HANDLERTS_INVALID_HANDLE
Used to synchronize the access to THIS instance, because there might be a potential usage from the application code, not only from the visualization code
Methods:
AddAlarmStorageListener
ContinueReading
FB_Init
GetFirstLastRowID
GetMinMaxTimestamps
Read
RemoveAlarmStorageListener
SemaphoreAcquire
SemaphoreRelease
prvReadLatchVarString
prvReadLatchVarString2
prvRetrieveLatchVarValue
prvTblAlarmFindTimestamp
Structure:
AlarmStorageReader.AddAlarmStorageListener(METH)AlarmStorageReader.ContinueReading(METH)AlarmStorageReader.FB_Init(METH)AlarmStorageReader.GetFirstLastRowID(METH)AlarmStorageReader.GetMinMaxTimestamps(METH)AlarmStorageReader.Read(METH)AlarmStorageReader.RemoveAlarmStorageListener(METH)AlarmStorageReader.SemaphoreAcquire(METH)AlarmStorageReader.SemaphoreRelease(METH)private