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.

Sample

See Sample 2: Write synchronously to the PLC.