Subscribe

Subscribe 1:

The method subscribes notifications.

Syntax

METHOD Subscribe   : HRESULT
VAR_INPUT
    ipRemoteLogger : I_TcRemoteEventLogger;
    ipEventFilter  : I_TcEventFilterBase; // optional
END_VAR

Subscribe 2: Inputs

Name

Type

Description

ipRemoteLogger

I_TcRemoteEventLogger

Reference to the EventLogger for which a notification is to be registered.

ipEventFilter

I_TcEventFilterBase

Pointer to an instance of FB_TcEventFilter, if a filter is to be activated.

Subscribe 3: Return value

Name

Type

Description

Subscribe

HRESULT

Returns S_OK if the method call was successful.

Returns ADS_E_EXISTS if the listener is already subscribed.

Otherwise returns HRESULT as the error code