Connect

Description

Connects the client to the PLC with the parameters specified in the previous call of ConnectTo() or SetConnectionParams().

Declaration

int Connect();

 

Return value

         0 : The Client is successfully connected (or was already connected).

         Other values : see the Errors Code List.

 

Remarks

This function can be called only after a previous of ConnectTo() or SetConnectionParams() which internally sets Address and TSAPs.