The Festo_EasyIP.lib library
11
1.5 Programming
1.5.1 Initialisation
The IP table should be filled with the Easy_SetIPAddr function and the timeout time set with the
Easy_SetTimeout function once when the IEC program starts. A module can be appended to the system
event
start
for this purpose.
Note
In order to use EasyIP on a CoDeSys controller, a cyclic task must be created in the task
configuration to which the Easy_Server() program must be appended.
Initialisation modules
The task configuration provides an easy way of assigning modules to the possible system events.
1. To append a function to a system event, select the check box in the first column next to the event. A
checkmark then appears.
2. Enter a module name in the "called POU" column and press Enter to confirm the entry.
3. Click on the "Create POU" button to create the module in the project. The module then appears in the
Object Organizer and definitions for transfer parameters that the event may require are included
automatically in the declaration section. Start the function call of system events with the prefix
"callback".
Fig.: Configuration of system events (example)
Performing initialisations
The Easy_SetIPAddr and Easy_SetTimeout functions can then be called in the initialisation module.
Example: Initialisation of EasyIP
Easy_SetIPAddr(0,192,168,0,2); (*enter the IP address of a remote station
in index 0 in the IP table*)
Easy_SetIPAddr(1,192,168,0,3); (*enter the IP address of a remote station
in index 1 in the IP table*)
Easy_SetTimeout(10); (*increase the timeout time for EasyIP
communication (10*task cycle time) *)
In the example, the IP address 192.168.0.2 is assigned to the short address 0 (index 0 in the IP table). The
IP address 192.168.0.3 is assigned to the short address 1 (index 1 in the IP table). All other functions use
short addresses in order to address the correct IP address (remote control).
Summary of Contents for CECX-X-C1 Series
Page 1: ...Manual Controller Modular CECX CECX X C1 CECX X M1 761886 1112c en ...
Page 2: ...1112c en ...
Page 4: ......
Page 6: ...1112c en ...
Page 7: ...CECX modular control system CECX modular control system ...
Page 46: ...CECX modular control system CECX I 38 ...
Page 47: ...System manual CECX ...
Page 48: ...CECX II ...
Page 56: ...Content System Manual CECX VIII ...
Page 58: ...System manual CECX Product design CECX II 0 2 ...
Page 68: ...System manual CECX Safety notes CECX II 2 6 ...
Page 76: ...System manual CECX System overview CECX II 3 8 ...
Page 84: ...System manual CECX General assembly and installation instructions CECX II 4 8 ...
Page 118: ...System manual CECX Operating behavior CECX II 8 6 ...
Page 122: ...System manual CECX Disposal CECX II 10 2 ...
Page 124: ...System manual CECX Technical data CECX II 11 2 ...
Page 166: ......
Page 180: ......
Page 212: ......
Page 232: ......
Page 248: ......
Page 260: ......
Page 278: ......
Page 294: ......
Page 308: ......
Page 412: ......
Page 426: ......
Page 500: ...System manual CECX Bus link module CECX B CO CECX II 34 64 ...
Page 501: ...The library Ethernet lib The library Ethernet lib ...
Page 505: ...The library EventData lib The library EventData lib ...
Page 511: ...The library IncEnc lib The library IncEnc lib ...
Page 517: ...The Festo_EasyIP lib library ...
Page 532: ......
Page 535: ...The library PLCService lib The library PLCService lib ...
Page 542: ...The library PLCService lib CECX VII 6 ...
Page 543: ...The library SysLibComEx lib The library SysLibComEx lib ...
Page 547: ...The Festo_Motion lib library ...
Page 584: ......
Page 585: ...The Festo_PartDetector lib library ...
Page 601: ...FED VipWin interface ...
Page 630: ......