AdsSyncSetTimeoutEx

Alters the timeout for the ADS functions. The standard value is 5000 ms.

LONG AdsSyncSetTimeoutEx(
     LONG  port,
     LONG  nMs
);

Parameters

port

[in] port number of an Ads port that had previously been opened with AdsPortOpenEx or AdsPortOpen.

nMs

[in] Timeout in ms.

Return value

Returns the function's error status.

Example

-