beckhoff TwinCAT 3 — 12.9.9.2 AdsDeviceNotificationInd

Programming Reference | ADS Communication Syntax void AdsDelDeviceNotificationCon( AmsAddr& rAddr, ULONG invokeId, ULONG nResult ); Return value void Parameter 12.9.9 AdsDeviceNotification | AdsDeviceNotification 12.9.9.1 AdsDeviceNotificationReq | AdsDeviceNotificationReq The AdsAddDeviceNotificationReq method enables the sending of an ADS device notification to inform an ADS device. The AdsDeviceNotificationInd [ } 205] is called on the counterpart. Syntax int AdsDeviceNotificationReq( AmsAddr& rAddr, ULONG invokeId, ULONG cbLength, AdsNotificationStream notifications[] ); Return value Type: int ADS Return Code - see AdsStatuscodes [ } 323] .

Parameter 12.9.9.2 AdsDeviceNotificationInd | AdsDeviceNotificationInd The AdsDeviceNotificationInd method enables the receipt from an ADS device notification display. The receiving module must provide this method. Receipt is not acknowledged. AdsDeviceNotificationCon [ } 206] must be called on the AdsDeviceNotificationReq [ } 205] side to check the transmission. Syntax void AdsDeviceNotificationInd( AmsAddr& rAddr, ULONG invokeId, ULONG cbLength, AdsNotificationStream* pNotifications ); Return value void TwinCAT 3 205 Version: 1.19.1 Name Type Description rAddr AmsAddr& [in] Structure with NetId and port number of the responding ADS server.

invokeId ULONG [in] handle of the transmitted command; the InvokeId is specified by the source device and serves to identify the commands. nResult ULONG [in] contains the result of the ADS write command; see AdsStatuscodes [} 323]. Name Type Description rAddr AmsAddr& [in] Structure with NetId and port number of the ADS server. invokeId ULONG [in] Handle of the command, which was sent. The InvokeId is specified by the source device and is used for the identification of the commands. nResult ULONG [in] contains the result of the device notification display. notifications[] AdsNotificationStream [in] contains information about the device notification(s).