When you read the AlarmStorage, you can get Static Informed about the alarms through this method call:
Declaration
METHOD AlarmRead
VAR_INPUT
/// A 0-based index of the row read from TblAlarm
diWhichRow : DINT;
/// An AlarmStorageStaticData variable, containing data of the alarm
staticData : AlarmStorageStaticData;
END_VAR
The staticData here contains:
udiAlarmGroupId
udiAlarmClassId
Use the following code to get the group name or class name: