|
AdsLib
|
#include "AdsDef.h"Go to the source code of this file.
Functions | |
| long | AdsPortCloseEx (long port) |
| long | AdsPortOpenEx () |
| long | AdsGetLocalAddressEx (long port, AmsAddr *pAddr) |
| long | AdsSyncSetTimeoutEx (long port, uint32_t timeout) |
Copyright (c) 2015 - 2022 Beckhoff Automation GmbH & Co. KG
| long AdsGetLocalAddressEx | ( | long | port, |
| AmsAddr * | pAddr | ||
| ) |
Returns the local NetId and port number.
| [in] | port | port number of an Ads port that had previously been opened with AdsPortOpenEx(). |
| [out] | pAddr | Pointer to the structure of type AmsAddr. |
| long AdsPortCloseEx | ( | long | port | ) |
The connection (communication port) to the message router is closed. The port to be closed must previously have been opened via an AdsPortOpenEx() call.
| [in] | port | port number of an Ads port that had previously been opened with AdsPortOpenEx(). |
| long AdsPortOpenEx | ( | ) |
Establishes a connection (communication port) to the message router. The port number returned by AdsPortOpenEx() is required as parameter for further AdsLib function calls.
| long AdsSyncSetTimeoutEx | ( | long | port, |
| uint32_t | timeout | ||
| ) |
Alters the timeout for the ADS functions. The standard value is 5000 ms.
| [in] | port | port number of an Ads port that had previously been opened with AdsPortOpenEx(). |
| [in] | timeout | Timeout in ms. |