IAlarmHandler7.GetInstanceAlarmByName (METH)ΒΆ
METHOD GetInstanceAlarmByName : IAlarm8
Provides access to alarm specific data of instantiated function blocks. If a function block is used in several alarm group templates this function can be used to obtain the correct alarm instance. Also, if several alarm templates are using the same function block, this function returns the correct alarm instance. Returns NULL if no alarm is found.
- InOut:
Scope
Name
Type
Comment
Return
GetInstanceAlarmByNameInput
pFBInstancePOINTER TO BYTE
Pointer to the template FB instance. Use THIS when inside the fucntion block.
uiTemplateAlarmIdAlarm ID within the related alarm group template.
stAlarmTemplateNameSTRING(255)Name of the related alarm group template of this template instance. In case of multiple alarm group template objects that use the same FB as type, specify the specific type.
Output
usiAlarmGroupIDId of the related alarm group. Can be used to acknowledge this alarm by using methods like IAlarmHandler.AcknowlegeOneOfGroup.
uiAlarmidAlarm ID of this alarm in the related alarm group. Can be used to acknowledge this alarm by using methods like IAlarmHandler.AcknowlegeOneOfGroup.