Implementation of an implicit alarm
Alarm type Alarm (API) works in a similar way to alarm type Event API.
The difference is that all alarm classes can be used with all acknowledgment methods. The application can be used to control when the "Activate" and "Deactivate" transitions are performed. Depending on the alarm class and its acknowledgment methods, this kind of alarm may need to be acknowledged.
You configure this in an alarm group or in an alarm group template with template instance. The alarm statuses can be set by calling the API.
The IAlarmHandler9
interface of the AlarmManager
library provides functions to trigger, unlock, activate (ActivateAlarm
), and deactivate (DeactivateAlarm
) alarms. The ActivateAlarmInstance
and DeactivateAlarmInstance
functions are used when the alarms are configured as "instance alarms".

Code fragment to set alarm states by calling the API
AlarmManager.AlarmGlobals.g_AlarmHandler.ActivateAlarmInstance(THIS, Alm_AGT_POU_Alarm_IDs.ID_1); AlarmManager.AlarmGlobals.g_AlarmHandler.DeactivateAlarmInstance(THIS, Alm_AGT_POU_Alarm_IDs.ID_1);