AdsSyncWriteReqEx
Writes data synchronously to an ADS device.
LONG AdsSyncWriteReqEx(
LONG port,PAmsAddrpAddr,
ULONG nIndexGroup,
ULONG nIndexOffset,
ULONG nLength,
PVOID pData
);
Parameter
port
[in] port number of an ADS port that had previously been opened with AdsPortOpenEx or AdsPortOpen.
pAddr
[in] Structure with NetId and port number of the ADS server.
nIndexGroup
[in] Index Group.
nIndexOffset
[in] Index Offset.
nLength
[in] Length of the data, in bytes, written to the ADS server.
pData
[in] Pointer to the data written to the ADS server.
Return value
Returns the function's error state.
See also