API 5 API 5.1 Functions 5.1.1 adsGetDllVersion Returns the version number, revision number and build number of the ADS-DLL. AdsVersion adsGetDllVersion (); Parameter Return value AdsVersion : returns an AdsVersion object, with version number, revision number and build number set accordingly. 5.1.2 adsPortOpen Establishes a connection (communication port) to the TwinCAT message router. If no TwinCAT MessageRouter is present, the AdsPortOpenEx function will fail. long adsPortOpen (); Parameter Return value long : returns the error state of the function. 5.1.3 adsPortClose The connection (communication port) to the TwinCAT message router is closed.
long adsPortClose (); Parameter Return value long : returns the error state of the function. 5.1.4 adsGetLocalAddress Returns the local NetId and the own port number. long adsGetLocalAddress (AmsAddr lj_AmsAddr); Parameter AmsAddr lj_AmsAddr : AmsAddr object which contains the local NetId and port number after the call. TX1000 13 Version: 1.1