Connect

Connect 1:

The method connects to the remote system.

Syntax

METHOD Connect : HRESULT
VAR_INPUT
    sNetId     : T_AmsNetId; (* AmsNetId of the remote TwinCAT system.*)
END_VAR

Connect 2: Inputs

Name

Type

Description

sNetId

T_AmsNetId

AmsNetId of the remote system

Connect 3: Return value

Name

Type

Description

Connect

HRESULT

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