RequestRemote

RequestRemote 1:

Calling this method triggers the asynchronous request on a remote target system.

Syntax

METHOD RequestRemote : HRESULT
VAR_INPUT
    ipRemoteLogger   : I_TcRemoteEventLogger
    eventClass       : GUID;
END_VAR
VAR_IN_OUT CONSTANT
    text             : STRING;
END_VAR
VAR_INPUT
    nLangId          : DINT;
    ipArgs           : I_TcArguments;
END_VAR

RequestRemote 2: Inputs

Name

Type

Description

ipRemoteLogger

I_TcRemoteEventLogger

Instance of I_TcRemoteEventLogger, which describes the target system.

eventClass

GUID

Specifies the event class to be used as the basis for the query.

text

STRING

The text to be translated

nLangId

DINT

Specifies the language ID:

English (en-US) = 1033
German (de-DE) = 1031
...

The TcLcid enum can be used.

ipArgs

I_TcArguments

Optional specification of arguments.

RequestRemote 3: Return value

Name

Type

Description

RequestRemote

HRESULT

Returns possible error information.

S_OK if the query is successful.

ADS_E_INVALIDSTATE if the target system is in an invalid state.

ADS_E_NOMEMORY if no memory is available to store the result.

ADS_E_PENDING if the query is still pending.