Chapter 5. Power Supply / CPU
5-21
Program execution is shown as below.
Start scan
First RUN
Tim e :
Execute with program pauseExecute w ithout program stop
Delay program execution
068 222430
[mS]
32 34
7
10
2012 25
Finish scan program
End of 1 scan
Start next scan
Execute P0
Execute P1
T_SLO W occurs
Execute P2
Detect PROC_1
Execute P3
E _ IN T 1 o c c u rs
y Processing with time
Time
(ms)
Processing
0
Scan starts and the scan program P0 starts its execution.
0~6
The program P0 is being executed.
6~8
Execution request for P3 is input, and P0 is stopped and P3 is executed. P3 execution is
requested by E_INT1 of 7 [ms], but it is ignored because P3 is executing.
8~10
P3 finishes its execution and the P0 stopped continues its execution.
10~12
P0 is stopped and P1 is executed due to execution request for P1.
12~20
P2 finishes its execution and the P0 stopped continues its execution.
20
Execution requests for P1 and P3 are simultaneously exist, but the higher priority P1 is
executed and P3 is ready for its execution.
20~22
P0 is stopped and P1 is executed.
22~24
P1 finishes its execution and the higher priority P3 is executed before P0.
24~25
P3 finishes its execution and the P0 stopped completes its execution.
25
Execution request for P2 is checked at the finish time of the scan program (P0) and P2 is
executed.
25~30
The program P2 is executed.
30~32
Execution request for P1 is input and P2 is stopped and P1 finishes its execution.
32~34
P1 finishes its execution and the P2 stopped finishes its execution.
34
A new scan starts. (P0 starts its execution.)