
6 User Program
System Manual Modular Systems
Page 38 of 114
HI 800 191 E Rev. 2.02
1.
Multitasking Mode 1
uses the unneeded time to reduce the CPU cycle. If the user program
is completely processed, processing of the next user program begins immediately. In total,
this results in a shorter cycle.
Example: 3 user programs (
Prg 1
,
Prg 2
and
Prg 3
) that allow a user program cycle to take
up to 3 CPU cycles.
t
Prg 1
Prg 3
Prg 2
First CPU cycle considered.
Second CPU cycle considered.
Third CPU cycle considered.
Max. Duration for Each Cycle [µs]
of
Prg 1
has expired,
Prg 2
starts.
Max. Duration for Each Cycle [µs]
of
Prg 2
has expired,
Prg 3
starts.
Max. Duration for Each Cycle [µs]
of
Prg 3
has expired, completion of the first
CPU cycle.
Completion of the
Prg 1
cycle,
Prg 2
is
resumed.
Completion of the
Prg 2
cycle,
Prg 3
is
resumed.
Max. Duration for Each Cycle [µs]
of
Prg 3
has expired, completion of the
second CPU cycle.
The next user program cycle of
Prg 1
starts.
Max. Duration for Each Cycle [µs]
of
Prg 1
has expired. The next user program
cycle of
Prg 2
starts.
Max. Duration for Each Cycle [µs]
of
Prg 2
has expired,
Prg 3
starts.
Completion of the
Prg 3
cycle.
Figure 5: Multitasking Mode 1