Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
513 stars 194 forks source link

AdsAmsRegisterRouterNotification, AdsAmsUnRegisterRouterNotification #52

Closed rhythmchicago closed 6 years ago

rhythmchicago commented 6 years ago

Hello. I use TwinCAT3 on Windows regularly and use AdsAmsRegisterRouterNotification and AdsAmsUnRegisterRouterNotification to detect changes in the router (AMSEVENT_ROUTERSTOP, AMSEVENT_ROUTERSTART, AMSEVENT_ROUTERREMOVED). I've been using this library to port the program I wrote to other operating systems, but can't find an replacement for these functions. Is there a way of detecting changes in the remote router state using this library?

Thanks!

soberschmidt commented 6 years ago

Hi, please check the C++ samples of the official TcAdsDll of Beckhoff: https://infosys.beckhoff.com/index.php?content=../content/1031/tc3_adssamples_c/html/tcadsdll_api_cpp_sample11.htm&id=1738474616755725428 The header files can be found in every TwinCAT-Installation under c:\TwinCAT\AdsApi

Best Regards, Sven