Panasonic FP Series Programming Manual page 251

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Conversion instructions
STRING_TO_ETLAN
ADDR
This function converts a STRING in IP address format into a value of the data type DWORD.
Description
Thereby the attached string is first converted to a value of the data type STRING[32]. Finally this is
converted to a value of the data type DWORD via a sub-programm of approx. 330 steps that is also
used in the functions STRING_TO_IPADDR and STRING_TO_ETLANADDR.
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.
See also: STRING_TO_ETLANADDR_STEPSAVER
Example with and without EN/ENO:
Permissible format:
'[Space]Octet1.Octet2.Octet3.Octet4[Space]', e.g.: ' [192.168.206.4] '
Permissible characters:
Space
Octets 1-4
 The analysis ends with the first non-decimal number after the 4th octet
or in case of a format error.
 If the format is wrong the result is 0.
 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.
250
STRING to ETLAN Address
All characters except for decimal numbers
Decimal numbers "0"-"9", maximal 3 positions, with or without leading
zeros in the range 0-255

Advertisement

Table of Contents
loading

Table of Contents