All-in-one sample
In this sample application all functions are presented to the DLL and can be tested by right-clicking on the associated button. If the port was opened successfully, a remote PC can be selected for communication.
Requirements:
- Delphi 5.0 or higher;
- TcAdsDLL.DLL;
- TcAdsDEF.pas and TcAdsAPI.pas contained in the file delphi_adsdll_api_units.zip, if you want to compile the source code yourself;
The page containing the source code can be opened by clicking on one of the buttons in the diagram.

Language / IDE | Unpack sample program |
---|---|
Delphi XE2 | |
Delphi 5 or higher (classic) |
Further Information
- AdsGetDllVersion
- AdsPortOpen
- AdsPortClose
- AdsGetLocalAddress
- AdsSyncWriteReq
- AdsSyncReadReqEx
- AdsSyncReadWriteReq
- AdsSyncReadWriteReqEx
- AdsSyncReadDeviceInfoReq
- AdsSyncWriteControlReq
- AdsSyncReadReq
- AdsSyncReadStateReq
- AdsSyncAddDeviceNotificationReq/AdsSyncDelDeviceNotificationReq
- AdsSyncSetTimeout
- AdsAms[Un]RegisterRouterNotification