AdsAmsRegisterRouterNotification
The AdsAmsRegisterNotificationReq() function can be used to detect a change in the status of the TwinCAT router. The given callback function is invoked each time the status changes. Monitoring of the router's status is ended once more by the AdsAmsUnRegisterNotification() function.
LONG AdsAmsRegisterRouterNotification(
PAmsRouterNotificationFuncEx pNoteFunc
);
Parameter
pNoteFunc
[in] Name of the callback function
Return value
Returns the function's error status.
Hints:
- Implemented from TcAdsDLL File Version: 2.8.0.21 ( delivered with TwinCAT 2.9 Build > 941).
- A connection to the TwinCAT-Router can be done, if TwinCAT has been installed on the local PC. The function delivers an error on a system without TwinCAT.
Example
-