The Festo_EasyIP.lib library
10
1.4.2 Global constants
The following constants for internal library functions are created in the Festo_EasyIP.lib library and cannot
be modified.
Size of the EasyIP address table.
Size of the EasyIP package header.
Size of the EasyIP package data memory.
Length of a string in bytes.
Maximum number of strings (size of string table).
Maximum index within the string table.
Used to check the byte order (BigEndian or
LittleEndian) of the processor.
1.4.3 IPFrom4Chars
This function is used internally by functions of the Festo_EasyIP.lib library and converts an IP address
saved in several bytes into DWORD data format.
IP address part 1 (nnn.xxx.xxx.xxx)
IP address part 2 (xxx.nnn.xxx.xxx)
IP address part 3 (xxx.xxx.nnn.xxx)
IP address part 4 (xxx.xxx.xxx.nnn)
IP address packed in DWORD for the socket function.
The order of the bytes is inverted and returned in DWORD
(see following illustration).