Chapter 10 CPU Function
If the task program occupancy rate exceeds the set value, the task occupancy rate excess warning
(_TASK_PRM_USAGE_OVER_WAR) is generated. If the task program occupancy rate exceeds 100%, the
system state switches from RUN to ERROR, and the task program occupancy rate excess error
(_TASK_PRM_USAGE_OVER_ER) is generated.
The program occupancy rate is inversely proportional to the system occupancy rate. If the program occupancy
rate is 20%, the system occupancy rate is 80%. But if the program occupancy rate is 80%, the system
occupancy rate is 20%.
Pr ogram
occupancy rate
System service
occupancy rate
100%
100%
0
The increase in the task program occupancy rate means that the main task and the periodic task occupy a large
portion in one cycle, and thus the time required for the system service execution is reduced. Please make sure
that the program occupancy rate does not exceed 95%. If it exceeds 95%, change the main task cycle.