beckhoff — 5.1.19 adsAmsUnRegisterRouterNotification

API 5.1.16 adsSyncSetTimeout Alters the timeout for the ADS functions. The default value is 5000 ms. long adsSyncSetTimeout (long lj_nMs); Parameter long lj_nMs : timeout in ms. Return value long : returns the error state of the function. 5.1.17 adsSyncGetTimeout Returns the currently set timeout for ADS calls. The default value is 5000 ms. long adsSyncGetTimeout (JNILong lj_pMs); Parameter JNILong lj_pMs : JNILong object which contains the current timeout after the call. Return value long : returns the error state of the function. 5.1.18 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 state changes. The AdsAmsUnRegisterNotification() function ends the status monitoring of the router again. An AdsCallbackObject must be created to be able to receive information about the desired events. This must be assigned to a listener that implements the CallbackListenerAdsRouter interface. The listener is called as soon as the event occurs. long adsAmsRegisterRouterNotification (); Parameter Return value long : returns the error state of the function.

Also see about this 2 adsAmsUnRegisterRouterNotification [ } 19] 5.1.19 adsAmsUnRegisterRouterNotification The AdsAmsUnRegisterNotification() function terminates the status monitoring of the TwinCAT router. See also AdsAmsRegisterNotificationReq() [ } 19] . This has no effect on the AdsCallback object. long adsAmsUnRegisterRouterNotification (); TX1000 19 Version: 1.1