5 Programming  HIMax System 
HI 801 001 E Rev. 4.01  Page 70 of 122 
Parameter  Description  Configurable for 
Max. Duration 
for Each Cycle 
[µs] 
Time permitted for executing the user program 
within a CPU cycle. 
User program, Multitask-
ing Editor 
Program ID 
ID for identifying the program when displayed in 
SILworX 
User program, Multitask-
ing Editor 
Watchdog 
Time 
Resource Watchdog Time   Resource 
Target Cycle 
Time [ms] 
Required or maximum cycle time  Resource 
Use of the execution duration unneeded by the 
user program, e. g., the difference between ac-
tual execution duration in one CPU cycle and the 
defined Max. Duration for Each Cycle [µs]. 
Mode 1 
The duration of a CPU cycle is based 
on the required execution time of all 
user programs. 
Mode 2 
The processor provides user programs 
with a higher priority the execution time 
not needed by user programs with a 
lower priority. Operation mode for high 
availability. 
Multitasking 
Mode 
Mode 3 
The processor waits for the unneeded 
execution time of user programs to ex-
pire and thus increases the cycle. 
Resource, Multitasking 
Editor 
Target Cycle 
Mode 
Use of Target Cycle Time [ms] Resource 
Priority  Importance of a user program; highest priority: 0. Multitasking Editor 
Maximum 
Number of Cy-
cles 
Maximum number of CPU cycle required to 
process one user program cycle. 
Multitasking Editor 
Table 23:  Parameters Configurable for Multitasking 
Observe the following rules when setting the parameters: 
 If Max. Duration for Each Cycle [µs] is set to 0, the execution time of the user program is 
not limited, e.g., it is always processed completely. Therefore, the number of cycles may 
be set to 1 in this case. 
  The sum of the Max. Duration for Each Cycle [µs] parameters in all user programs must 
not exceed the resource watchdog time. Make sure that sufficient reserve is planned for 
processing the remaining system tasks. 
  The sum of the Max. Duration for Each Cycle [µs] parameters in all user programs must 
be large enough to ensure that sufficient reserve is available to maintain the target cycle 
time. 
 The Program IDs of all user programs must be unique. 
During verification and code generation, SILworX monitors that these rules are observed. 
These rules must also be observed when modifying the parameters online. 
SILworX uses these parameters to calculate the user program watchdog time: 
User program watchdog time = watchdog time * maximum number of cycles  
i 
The sequence control for executing the user programs is run in cycles of 250 µs. For this 
reason, the values set for Max. Duration For Each Cycle [µs] can be exceeded or under-run 
by up to 250 µs.