API Return value long : returns the error state of the function. 5.1.14 adsSyncAddDeviceNotificationReq A notification is defined within an ADS server (e.g. PLC). When a certain event occurs a function (the callback function) is invoked in the ADS client. 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 CallbackListenerAdsState interface. The listener is called as soon as the event occurs.
long adsSyncAddDeviceNotificationReq( AmsAddr lj_AmsAddr, long lj_indexGroup, long lj_indexOffset, AdsNotificationAttrib lj_pNoteAttrib, long lj_hUser, JNILong lj_pNotification ); Parameter AmsAddr lj_AmsAddr : object with NetId and port number from ADS server. long lj_indexGroup : Index Group long lj_indexOffset : Index Offset AdsNotificationAttrib lj_pNoteAttrib : AdsNotificationAttrib object containing additional information about the event message. long lj_hUser : user handle JNILong lj_pNotification : JNILong buffer which contains the notification number after the call. Return value long : returns the error state of the function.
5.1.15 adsSyncDelDeviceNotificationReq A notification defined previously is deleted from an ADS server. This has no effect on the AdsCallback object. long adsSyncDelDeviceNotificationReq( AmsAddr lj_AmsAddr, JNILong lj_hNotification ); Parameter AmsAddr lj_AmsAddr : object with NetId and port number from ADS server. JNILong lj_hNotification : JNILong object containing the notification number to be deleted. Return value long : returns the error state of the function. TX1000 18 Version: 1.1