EasyManuals Logo

Festo CECX-X-C1 Series User Manual

Festo CECX-X-C1 Series
631 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #528 background imageLoading...
Page #528 background image
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.
Name
Type
Value
Description
EASY_IP_PORT
UINT
995
EasyIP port.
MAXIPTABLEINDEX
INT
31
Size of the EasyIP address table.
EASY_IP_HDR
DINT
20
Size of the EasyIP package header.
MAXEASYDATA
INT
256
Size of the EasyIP package data memory.
WORD_SIZE
INT
2
Size of a data word.
STRING_SIZE
WORD
256
Length of a string in bytes.
MAX_STRING
50
Maximum number of strings (size of string table).
MAX_STRING_IDX
WORD
49
Maximum index within the string table.
Magic
WORD
1234
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.
Input variable
Data type
Description
BYTE1
BYTE
IP address part 1 (nnn.xxx.xxx.xxx)
BYTE2
BYTE
IP address part 2 (xxx.nnn.xxx.xxx)
BYTE3
BYTE
IP address part 3 (xxx.xxx.nnn.xxx)
BYTE4
BYTE
IP address part 4 (xxx.xxx.xxx.nnn)
Output variable
Data type
Description
IPFrom4Chars
DWORD
IP address packed in DWORD for the socket function.
The order of the bytes is inverted and returned in DWORD
(see following illustration).
DWORD
BYTE4
BYTE3
BYTE2
BYTE1

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Festo CECX-X-C1 Series and is the answer not in the manual?

Festo CECX-X-C1 Series Specifications

General IconGeneral
BrandFesto
ModelCECX-X-C1 Series
CategoryController
LanguageEnglish

Related product manuals