STRING (IP address format 00a.0bb.0cc.ddd) into DWORD
This function converts a STRING in IP address format into a value of the data type DWORD.
Input
Output
If the format is wrong the result is 0.
The conversion is such that the first octet of the IP address represents the lowest byte and the fourth octet represents the highest byte of the ET-LAN address. The format of the IP address corresponds to the de-facto Socket API standard.
The function uses for approx. 50 steps of generated code the basic instructionF76_A2BIN. The instruction expects that each octet consists of three characters with leading zeros. Otherwise the PLC delivers an operation error.
Permissible format: 'Octet1.Octet2.Octet3.Octet4[Space]', e.g.: ' [192.168.206.4] '
Permissible characters Octets 1-4:
Decimal numbers "0“-"9“, maximal 3 positions, with or without leading zeros in the range 0-255