adsPortOpenEx
Establishes a connection (communication port) to the TwinCAT message router. Unlike with AdsPortOpen, a new ADS port is opened each time. The methods marked as thread-safe are passed the port number returned by AdsPortOpenEx as a parameter.
If no TwinCAT MessageRouter is present, the AdsPortOpenEx function will fail.
long adsPortOpenEx ();
Parameter
Return value
long: returns the error state of the function.