AdsPortOpen

Establishes a connection (communication port) to the TwinCAT message router.

LONG AdsPortOpen(
     void
);

Parameter

-

Return value

A port number that has been assigned to the program by the ADS router is returned.

Example

See example 2.