
55
CHAPTER 2 APPLICATION OF PROGRAMMING
2
2.
7
I
n
te
rrupt
P
rogram
(3) Operation when an interrupt factor occurs
The following restrictions are applied to the interrupt program depending on the interrupt factor occurrence timing.
(a) When an interrupt factor occurs before the interrupt program execution status is
enabled
The CPU module stores the interrupt factor occurred. As soon as the interrupt program execution status is
enabled, the CPU module executes the interrupt program corresponding to the stored interrupt factor.
When the same interrupt factor occurs more than one time before the interrupt program execution status is
enabled, the interrupt factors of I0 to I15, I28 to I31, I45, I50 to I255, and fixed scan execution type programs
are stored only once. Note that all interrupt factors occurred are discarded if they are masked by the IMASK
instruction.
(b) When an interrupt factor occurs in the STOP or PAUSE status
The CPU module executes the interrupt program as soon as the interrupt program execution status is enabled
after the CPU module status is changed to RUN.
Main routine
program
Interrupt
program
Interrupt factor occurred.
Interrupt enabled (EI)
Execution
Not executed since
execution status of the
interrupt program is
disabled (DI).
Executed when execution
status of the interrupt program
becomes enabled.
Main routine
program
Interrupt
program
Interrupt factor occurred.
Interrupt enabled (EI)
STOP/ PAUSE RUN
RUN
Execution
Not executed since
the CPU module is in
the STOP or PAUSE
status.
Executed after the CPU module exits
the STOP or PAUSE status and enters
the RUN status, and execution status of
the interrupt program becomes enabled.
Содержание L02CPU
Страница 1: ......
Страница 2: ......
Страница 13: ...11 Memo ...
Страница 78: ...76 Memo ...
Страница 226: ...224 Memo ...
Страница 317: ...315 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 318: ...316 To the next page ...
Страница 319: ...317 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 320: ...318 To the next page ...
Страница 321: ...319 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 322: ...320 To the next page ...
Страница 323: ...321 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 324: ...322 To the next page ...
Страница 325: ...323 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 326: ...324 To the next page ...
Страница 335: ...333 Memo ...
Страница 339: ......