Connect2
(FUN)
FUNCTION Connect2 : Error
Supports the new error messages for denied user access and protocol mismatch.
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
Connect2
An errorcode representing the result of this operation
Input
hPlcHandler
SysTypes.RTS_IEC_HANDLE
The instance to connect.