GetAlarmEx

GetAlarmEx 1:

This method returns an interface pointer to an existing instance.

Syntax

METHOD GetAlarmEx : HRESULT
VAR_INPUT
    stEventEntry : TcEventEntry; 
    ipSourceInfo : I_TcSourceInfo := 0; // optional
    fbAlarm      : REFERENCE TO FB_TcAlarm;
END_VAR

GetAlarmEx 2: Inputs

Name

Type

Description

stEventEntry

TcEventEntry

Event definition

ipSourceInfo

I_TcSourceInfo

Pointer to an ITcSourceInfo interface

fbAlarm

REFERENCE TO FB_TcAlarm

Pointer to an alarm

GetAlarmEx 3: Return value

Name

Type

Description

GetAlarmEx

HRESULT

Returns ADS_E_NOTFOUND if no instance was found.

Returns S_OK if the method call was successful, otherwise an HRESULT as the error code.