IAlarmHandler7.GetInstanceAlarm (METH)ΒΆ

METHOD GetInstanceAlarm : IAlarm8

Provides access to alarm specific data of instantiated function blocks using the alarm group template that this block is associated with. Returns NULL if no alarm is found.

InOut:

Scope

Name

Type

Comment

Return

GetInstanceAlarm

IAlarm8

Input

pFBInstance

POINTER TO BYTE

Pointer to the template FB instance. Use THIS when inside the fucntion block.

uiTemplateAlarmId

ALARM_ID

Alarm ID within the related alarm group template.

Output

usiAlarmGroupID

ALARMGROUP_ID

Id of the related alarm group. Can be used to acknowledge this alarm by using methods like IAlarmHandler.AcknowlegeOneOfGroup.

uiAlarmid

ALARM_ID

Alarm ID of this alarm in the related alarm group. Can be used to acknowledge this alarm by using methods like IAlarmHandler.AcknowlegeOneOfGroup.