beckhoff TwinCAT 3 — 12.9.7.1 AdsAddDeviceNotificationReq

Programming Reference | ADS Communication 12.9.6.3 AdsWriteControlRes | AdsWriteControlRes The AdsWriteControlRes method enables the sending of an ADS write control response. AdsWriteControlCon [ } 201] forms the counterpart and is subsequently called. Syntax int AdsWriteControlRes( AmsAddr& rAddr, ULONG invokeId, ULONG nResult ); Return value Type: int ADS Return Code - see AdsStatuscodes [ } 323] . Parameter 12.9.6.4 AdsWriteControlCon | AdsWriteControlCon The AdsWriteCon method enables the receipt of an ADS write control confirmation. The receiving module must provide this method. AdsWriteControlReq [ } 200] is the counterpart and must be called beforehand.

Syntax void AdsWriteControlCon( AmsAddr& rAddr, ULONG invokeId, ULONG nResult ); Return value void Parameter 12.9.7 AdsAddDeviceNotification | AdsAddDeviceNotification 12.9.7.1 AdsAddDeviceNotificationReq | AdsAddDeviceNotificationReq The AdsAddDeviceNotificationReq method enables the sending an ADS add device notification command to add a device notification to an ADS device. AdsAddDeviceNotificationCon [ } 203] is called when the response is received. Syntax int AdsAddDeviceNotificationReq( AmsAddr& rAddr, ULONG invokeId, ULONG indexGroup, ULONG indexOffset, AdsNotificationAttrib noteAttrib); TwinCAT 3 201 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 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 ADS write command; see AdsStatuscodes [} 323]. Name Type Description rAddr AmsAddr& [in] Structure with NetId and port number of the responding 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 ADS write command; see AdsStatuscodes [} 323].