WAGO-I/O-SYSTEM 750
CoDeSys 2.3 Runtime Environment 123
758-874/000-131 WAGO-I/O-IPC-C6
Manual
Version 1.0.0
11.9
I/O Module Synchronization
The I/O module cycle and the CoDeSys task cycle are optimally automatically
synchronized: This depends on the number of I/O modules connected and the
fastest CoDeSys task cycle set in the I/O-IPC. The synchronization cases
described below can therefore take place.
In this chapter, CoDeSys task means only tasks within CoDeSys that contain an
access to the I/O module. Tasks that do not access the I/O module are not
synchronized in the same way as the following. Compare the chapter "Creating a
Task Configuration".
11.9.1
Case 1: The CoDeSys task interval is set as less than the
I/O module cycle
The implementation of the CoDeSys task is synchronized with the cycle time of
the I/O module.
The CoDeSys task is processed parallel to the I/O module. The CoDeSys task
interval is lengthened to the I/O module cycle time. This is necessary so that each
CoDeSys task is started with new input data from the I/O module and the output
values are also set at the module after each CoDeSys task.
KBZ
KBZ
KBZ
CT
CTI
CT
CTI
t
Figure 54: I/O module synchronization 01
CTI:
CoDeSys Task Interval
CT:
CoDeSys Task that accesses the I/O module of the internal data bus
KBZ:
I/O Module Cycle
Example:
CoDeSys Task Interval (CTI): 100 µs
I/O Module Cycle (KBZ): 350 µs
Result:
Adaptation of the CoDeSys Task Intervals to the I/O module cycle:
350 µs.