EAlarmType (ENUM) ¶ TYPE EAlarmType : This enumeration is used to distinguish between alarms and events. Attributes: qualified_only InOut: Name Initial Comment Undefined 0 Undefined, resp. represents the absence of a value Alarm 1 An alarm. Event 2 An event, that must be acknowledged by the user (has acknoledge method ACK) ImplicitlyAcknowledgedEvent 3 An event with acknowledge method REP, that is implicitly acknowledged and only written into the alarm storage (not visible in the list of active alarms).
EDBActiveIndex (ENUM) ¶ TYPE EDBActiveIndex : This enumeration defines the db active index DO NOT change the sequence, it’s used in Test Manager as number Attributes: qualified_only InOut: Name Initial Comment NOT_DEFINED 0 TIMESTAMP Index “timestamp last, descending” GROUP Index “group id ascending, timestamp last, descending” EDB_CLASS Index “class id ascending, timestamp last, descending” (CLASS cannot be used as enumvalue, as it is a IEC-keyword. Therefore changed to EDB_CLASS ) LATCH1 Index “Latch1, timestamp last descending”
EDBType (ENUM) ¶ TYPE EDBType : This enumeration defines the db type used DO NOT change the sequence, it’s used in Test Manager as number Attributes: qualified_only InOut: Name Initial Comment NOT_DEFINED 0 Not yet define SQL DB is the SQLiteDB MEMORY DB is the simulate one in memory
EFilterLatchContent (ENUM) ¶ TYPE EFilterLatchContent : This enumeration describes how to interpret the value of filter by latch variable content Attributes: qualified_only InOut: Name Initial Comment NOT_SET -1 Filter is not already set DISABLE 0 Filter is disabled STR 1 Variable for filtering contains a literal value: e.g. ‘ABCD’ ‘123’ “ABCD” “123” IEC 2 Variable for filtering contains a string that has to be interpret as IEC notation number: e.g. t#2s NUMBER 3 Variable for filtering contains a string that has to be interpret as number: e.g. “123”, “456.4”
IAlarmStorageReaderConsumer (ITF) ¶ INTERFACE IAlarmStorageReaderConsumer EXTENDS __SYSTEM.IQueryInterface This interface must be implemented by function blocks, that process the data read by AlarmStorageReader.Read Methods: AlarmRead BeforeReading LatchVariableRead ReadingDataCompleted Structure: AlarmRead (Method) BeforeReading (Method) LatchVariableRead (Method) ReadingDataCompleted (Method)
IAlarmStorageReaderConsumer.AlarmRead (METH) ¶ METHOD AlarmRead Notification, that the static part of an alarm has been read from the alarm storage. The dynamic part of the alarm (i.e. the latch variables) will be passed by subsequent calls to method LatchVariableRead InOut: Scope Name Type Comment Input diWhichRow DINT A 0-based index of the row read from TblAlarm staticData AlarmStorageStaticData An AlarmStorageStaticData variable containing data of the alarm
IAlarmStorageReaderConsumer.BeforeReading (METH) ¶ METHOD BeforeReading This method is called, before the 1st row is read. InOut: Scope Name Type Comment Input usiCountLatchVariables USINT The number of latch variables, that are stored for each alarm in the alarm storage
IAlarmStorageReaderConsumer.LatchVariableRead (METH) ¶ METHOD LatchVariableRead Notification, that a latch variable from TblAlarm has been read and can be processed. InOut: Scope Name Type Comment Input diWhichRow DINT A 0-based index of the row read from TblAlarm. usiWhichVariable USINT A 1-based index of the latch variable within all latch variables liLatchVarValue LINT The latch value as “raw” value. If |iLatchVarType| has the value TYPE_STRING, this parameter contains a pointer to the STRING, in case of TYPE_WSTRING this parameter contains a POINTER to a WSTRING iLatchVarType TypeClass A TypeClass value representing the type of the latch variable xValueNULL BOOL Indicates, whether NULL is stored in the alarm storage
IAlarmStorageReaderConsumer.ReadingDataCompleted (METH) ¶ METHOD ReadingDataCompleted Notification, that reading the data (i.e. the values) has been completed
AlarmStorageRow.GetLatchVarValue (METH) ¶ METHOD GetLatchVarValue Returns the value of a latch variable. InOut: Scope Name Type Comment Input usiWhichLatchVar USINT The 1-based index of the latch variable. Output byType BYTE Returns the type of the latch variable liValue LINT Rerturns the value of the latch variable