Conversion instructions
236
Part II IEC Instructions
ETLANADDR_TO_STRING
_NO_LEADING_ZEROS
ETLAN Address to STRING
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
Permissible format:
'Octet1.Octet2.Octet3.Octet4', e.g.: '192.168.206.4'
Permissible characters:
Octets 1-4 Decimal numbers "0“-"9“, maximal 3 positions, without leading zeros in
the range 0-255
The conversion is such that the highest byte of the ET-LAN address represents the first octet and
lowest byte of the IP address the fourth octet. This format for ET-LAN addresses is used, for
example, by the FP Serie's ET-LAN modules.
Description
This function converts a binary ETLAN address of the data type DWORD into a STRING in ETLAN
address format.
Example