AdsReadStateCon
The method AdsWriteCon enables the reception of an ADS state read confirmation. The receiving module must provide this method.
AdsReadStateReq forms the counterpart and must be called beforehand.
Syntax
void AdsReadStateCon( AmsAddr& rAddr, ULONG invokeId, ULONG nResult, USHORT adsState, USHORT deviceState );
Parameter
rAddr: (type: AmsAddr&) [in] structure with NetId and port number of the responding ADS server.
invokeId: (type: ULONG) [in] handle of the command that is sent. The InvokeId is specified by the source device and is used for the identification of the commands.
nResult: (type: ULONG) [in] contains the result of the ADS write command; see AdsStatuscodes.
adsState: (type: USHORT) [in] contains the ADS state of the device.
deviceState: (type: USHORT) [in] contains the device status of the device.
Return Value
void