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

IAlarmHandler10

g_AlarmHandler_Inst

This global instance provides API functionality to manipulate or retrieve alarm configuration objects. For more information see IAlarmHandler interfaces.

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_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_StorageTaskInfo

StorageTaskInfo

Info object for the alarm storage task. Contains information about task state and cycle times.

g_xStepByStepMode

BOOL

TRUE

Activates the progressive loading of the alarm history.

g_tStepByStepLimit

TIME

TIME#25ms

Sets the time limit per loading step.

g_iAlarmConfigurationUpdateCounter

INT

0

Increment this variable if a change is made to the AlarmConfig at runtime, it reloads the AlarmTable.