AdsPortClose

The connection (communication port) to the TwinCAT message router is closed.

LONG AdsPortClose(
 void
);

Parameter

-

Return value

Returns the function's error state.

Sample

See Sample 2: Write synchronously to the PLC.