https://infosys.beckhoff.com/english.php?content=../content/1033/tcsample_bdelphi/html/TcAdsDLL_COM_Delphi_Setup.htm&id=
Linking to Delphi XE2 (COM interface)
The TcAdsDll.dll type library has to be imported (TcAdsDll_TLB.pas unit). Depending on the Delphi version, manual adjustments may be required in order to ensure error-free translation.
Requirements
Delphi XE2;
TwinCAT 2.9 or higher;
TcAdsDll.dll - dynamic function library located in the Windows NT/2000 /XP/... 'System32' directory.
Import Type Library
1. Select Component -> Import component menu command. In dialog window select the option: Import type library and confirm with the Next button.