sockIPToName (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.00 / 1.00.00


Converts a 32 bit IP address into dotted format like "80.62.33.111".

 

 

Input:                

ip : DINT

32 bit IP address.

 

 

Returns: STRING

The IP address as a dotted format string "aaa.bbb.ccc.ddd".

 

 

Declaration:

FUNCTION sockIPToName : STRING;
VAR_INPUT
  ip : DINT; // IP address
END_VAR;

 

 


Example:

 

Please see the "Examples - Socket Communication"