Connect (FUN)

FUNCTION Connect : Error

Attempts to connect according to the configuration of this instance. This function executes a single synchronous connection attempt. There will be no automatic reconnect attempts, neither for the initial connection nor after connection losses.

Important

Calling this method might take some time (eg. for scanning the network etc.) so be careful when calling from an IEC-Task. Typically this method should be called in an asynchronous way.

InOut:

Scope

Name

Type

Comment

Return

Connect

Error

An errorcode representing the result of this operation

Input

hPlcHandler

SysTypes.RTS_IEC_HANDLE

The instance to connect.