AlarmGlobals (GVL)¶
This GVL must be initialized before GVL “GloballyForAlarmStorage”, because this GVL causes the initialization of the variable g_stApplicationName. We only need the date and time format pattern for the converted code, therefore we can (and must!) omit the rest from conversion We must not use an attribute to hide this GVL, because there are some variables, that a developer might use. Additionally it is necessary, that this GVL in considered in the data server, but not visible for the user, because some variables of this GVL are added to the data source selection implicitely and for this purpose it is necessary, that this GVL is a part of the available items tree.
- InOut:
Name
Type
Initial
Comment
g_AlarmHandler
g_AlarmHandler_Inst
CHECKED_OMIT
g_AlarmHandlerBase
IAlarmHandlerBase
g_AlarmHandler_Inst
CHECKED_OMIT
g_AlarmHandlerRemoteMonitor
g_AlarmHandler_Inst
CHECKED_OMIT
g_diAlarmStateTransitionCounter
DINT
A global counter, that counts all the alarm state transitions, that occur. Needed by the alarm table for optimized painting. If this counter doesn’t change during subsequent paint calls, the same alarms have been active and in the same state. Conditional show attribute must not be present for this variable, because some architectural problems it can lead in a not correct regitration
CHECKED_OMIT
g_diAlarmStorageCounter
DINT
A similar counter, that will be incremented each time an alarm is written into the alarm storage. This allows the alarm table to detect, whether some kind of processing has to be done, because there exists a new alarm. Conditional show attribute must not be present for this variable, because some architectural problems it can lead in a not correct regitration
CHECKED_OMIT
g_ErrorHandler
DatabaseAccessErrorHandler
The only instance of DatabaseAccessErrorHandler, that does the error handling
CHECKED_OMIT
g_sDateFormat
STRING
‘dd.MM.yyyy’
The date format used to format the date part of a timestamp
g_sTimeFormat
STRING
‘HH:mm:ss’
The time format used to format the date part of a timestamp
g_iProxyQueueSizeHistoricalAlarm
INT
300
The size of the queue used by proxies where to read the information of remote historical alarms during the communication via datasource. This number determines the bandwith of the communication.
CHECKED_OMIT
g_iProxyQueueSizeActiveHistoricalAlarm
INT
100
The size of the queue used by proxies where to read the information of remote historical alarms still active during the communication via datasource. This number determines the bandwith of the communication.
CHECKED_OMIT
g_xPlaceholderReplacementForMessageSorting
BOOL
FALSE
This flag indicates, whether the placeholders have to be replaced when sorting historic alarm by the alarm message
g_diAlarmStorageRowsCount
DINT
-1
The number of row available in the alarm storage
CHECKED_OMIT
g_iAlarmStorageClear
INT
Counts the times when the alarm table has been deleted.
CHECKED_OMIT
g_AlarmLocalStorageLimit
This instance manages the limit of alarms that can be kept in memory, e.g. for sorting purposes.