![Omron CJ1G-CPUxx Instructions Manual Download Page 789](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491789.webp)
768
Interrupt Control Instructions
Section 3-20
5.
After scheduled interrupt processing has begun, the scheduled time inter-
val can be changed by executing MSKS(690). In this case, the time interval
is changed from 100 ms to 200 ms.
6.
Scheduled interrupt processing is disabled by executing MSKS(690) with
a time interval of 0000.
The following timing chart shows the operation of the example listed above.
Precautions
Be sure that the scheduled time interval is longer than the time required to
execute the scheduled interrupt task. If the scheduled time interval is too
short, the interrupt task will be executed continuously and a Cycle Time Too
Long Error will occur. (A long scheduled interrupt task can seriously affect the
main program’s overall execution time.)
The scheduled interrupt is executed after the specified time interval plus the
execution time for one instruction. Normally the time required to execute one
instruction is negligible, but it can cause errors when instructions that take a
long time are being used; it can also cause errors in timers (TIM and TIMH)
and data tracing. Be particularly careful when the scheduled time interval
units are set to 0.5 ms or 1 ms in the PLC Setup.
Interrupts are accepted even while one instruction is being executed. There-
fore, if an interrupt is accepted while an instruction requiring a long processing
time is being executed, correct processing results may not be obtained
because both the interrupt task and the instruction may access the same
data. In such a case, use DI(693) and EI(694) to disable and enable the inter-
rupt.
Main program
execution
Scheduled interrupt
task execution
1, 2
4
5
6
3
3
3
3
3
3
3
3
20 ms 100 ms 100 ms
50 ms 100 ms100 ms 200 ms
Interrupt task
Interrupt
during
execution
Interrupts
disabled
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...