Connect

The method connects to the remote system.
Syntax
METHOD Connect : HRESULT
VAR_INPUT
sNetId : T_AmsNetId; (* AmsNetId of the remote TwinCAT system.*)
END_VAR
Inputs
Name | Type | Description |
---|---|---|
sNetId | T_AmsNetId | AmsNetId of the remote system |
Return value
Name | Type | Description |
---|---|---|
Connect | HRESULT | Returns S_OK if the method call was successful, otherwise an HRESULT as the error code. |