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
ConnectAn errorcode representing the result of this operation
Input
hPlcHandlerSysTypes.RTS_IEC_HANDLEThe instance to connect.