AdsAmsRegisterRouterNotification
The AdsAmsRegisterNotificationReq() function can be used to detect a change in the state of the TwinCAT router. The given callback function is invoked each time the state changes. The AdsAmsUnRegisterNotification() function ends the state monitoring of the router again.
LONG AdsAmsRegisterRouterNotification(
PAmsRouterNotificationFuncEx pNoteFunc,
);
Return value
Returns the function's error state.
Comments:
- Implemented as of TcAdsDLL file version: 2.8.0.21 (delivered with TwinCAT 2.9 Build > 941).
- A connection to the TwinCAT router can only be established if TwinCAT has also been installed on the local PC. On a system without TwinCAT the function returns an error.
Sample
See also