AdsGetLocalAddress

Returns the local NetId and port number.

LONG AdsGetLocalAddress(
  PAmsAddr  pAddr
);

Parameter

pAddr

[out] Pointer to the structure of type AmsAddr.

Return value

Returns the function's error state.

Sample

See Sample 2: Write synchronously to the PLC.