The Festo_EasyIP.lib library
2
1.2 Initialisation of EasyIP
1.2.1 Programs and functions for initialising EasyIP
The library Festo_EasyIP.lib contains all the functions a CoDeSys controller requires to use EasyIP. You
must therefore add the Festo_EasyIP.lib library to your project using the library manager (see command
[Window] [Library manager]).
If you wish to use EasyIP on a CoDeSys controller, a cyclic task (e.g. 10 ms) must be created in the task
configuration. The program Easy_Server() must be appended to this task.
Fig.: Easy_Server task configuration (example)
In addition to the EasyIP stack, the Easy_Server program also contains the initialisation and deinitialisation
functions. When the IEC project starts, the initialisation process runs automatically whereby a new socket
opens and is linked to UDP port 995. The socket closes again when the IEC project stops.
Once EasyIP has initialised, the IP address of the remote station is assigned to the index of the IP table
(shortcut list) using the Easy_SetIPAddr function. The timeout, which monitors communication between
two EasyIP stations, can be set using the Easy_SetTimeOut function.
Overview
This function adds the IP addresses of the other stations to the IP table.
This function sets the timeout time to a multiple of the set task cycle time.