![background image](http://html1.mh-extra.com/html/omron/cpm2c-s100c/cpm2c-s100c_operation-manual_742520045.webp)
23
CPM2C-S Structure and Operation
Section 1-3
Interrupt Program
Execution
When an interrupt is generated during execution of the main program, main
program execution is interrupted immediately and the interrupt program is
executed. The following diagram shows the cyclic operation of the CPM2C-S
when an interrupt program is executed.
Normally, the results of interrupt program execution are transferred to I/O
memory just after program execution (during I/O refreshing), but IORF(97)
can be used to refresh a specified range of I/O words during execution of the
interrupt program. The specified range of I/O words will be refreshed when
IORF(97) is executed.
The normal cycle time is extended by the time required for execution of the
interrupt program.
Refer to
SECTION 7 Cycle Time and I/O Response Time
for more details and
precautions on the cycle time.
!Caution
Although IORF(97) can be used in interrupt subroutines, you must be careful
of the interval between IORF(97) executions. If IORF(97) is executed too fre-
quently, a fatal system error may occur (FALS 9F), stopping operation. The
interval between executions of IORF(97) should be at least 1.3 ms + total exe-
cution time of the interrupt subroutine.
Cycle
time
Overseeing processes
Main program
I/O refreshing
RS-232C port servicing
Peripheral port servicing
Interrupt generated.
Interrupt program
Содержание CPM2C-S100C
Страница 2: ......
Страница 3: ...CPM2C S Programmable Controller Operation Manual Revised September 2009 ...
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 10: ......
Страница 14: ...xiv ...
Страница 180: ...158 One to one PC Link I O Response Time Section 7 4 ...
Страница 222: ...200 Programming Example Section 8 3 ...
Страница 250: ......
Страница 256: ......
Страница 258: ......
Страница 260: ...238 Support Software Appendix C ...
Страница 268: ......