84
1 RUNNING A PROGRAM
1.7 Interrupt Program
Multiple interrupt execution sequence
When multiple interrupts occur, the interrupt program with the highest priority is executed. Then, the interrupt program with the
highest priority among those interrupted and in waiting status as a result of interrupts will be executed next when the previous
is finished.
Ex.
Order of interrupt occurrence:
Order of interrupt execution:
Order of interrupt completion:
Priority
Interrupt pointer
High
Low
1
I49
2
I48
3
I44, I45
4
I28, I29, I30, I31
5
I101
6
I0, I50, I100
7
I1020
8
An interrupt pointer among I50 to I1023 with the priority other than 5 to 7
(1) Interrupt is enabled.
(2) I50 is executed because its interrupt priority is higher.
(3) Enters waiting status because its interrupt priority is lower.
(4) I101 is executed because its interrupt priority is higher.
(5) Return from interrupt. Execution of the interrupted I50 resumes.
(6) Enters the waiting status until the execution of I50 completes because its interrupt priority is the same as that of I50 by setting.
(7) I0 is executed before I100 because its interrupt pointer is smaller.
(8) Return from interrupt. I1020 is executed because its interrupt priority is higher than those of I1020 and I0.
(9) Return from interrupt. I1020 is executed because its interrupt priority is higher than that of I2.
(10)Return from interrupt. Execution of the interrupted I2 resumes.
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
EI
6)
[Priority 5]
1) I101 interrupt program
[Priority 6]
2) I0 interrupt program
[Priority 6]
3) I150 interrupt program
[Priority 6]
4) I100 interrupt program
[Priority 7]
5) I1020 interrupt program
[Priority 8]
6) I2 interrupt program
Scan execution type program
Time
3)
5)
1)
4)
2)
Summary of Contents for MELSEC iQ-R-R00CPU
Page 2: ......
Page 151: ...9 MONITOR FUNCTION 9 1 Real Time Monitor Function 149 9 MEMO ...
Page 323: ...18 SEQUENCE SCAN SYNCHRONIZATION SAMPLING FUNCTION 321 18 MEMO ...
Page 330: ...328 20 ROUTING SETTING 20 3 Precautions MEMO ...
Page 423: ...26 BASIC CONCEPT 26 8 State Transition of the Redundant System 421 26 MEMO ...
Page 1014: ...1012 APPX Appendix 15 Added and Enhanced Functions MEMO ...
Page 1027: ......