AdsWriteRes

The AdsWriteRes method sends an ADS write response. AdsWriteCon forms the counterpart and is subsequently called.

Syntax

int AdsWriteRes( AmsAddr& rAddr, ULONG invokeId, ULONG nResult );

AdsWriteRes 1: Return value

Type: int

Parameter

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.

ADS Return Code - see AdsStatuscodes.