168
Interrupt Tasks Section 4-3
4-3 Interrupt Tasks
4-3-1 Types of Interrupt Tasks
Interrupt tasks can be executed at any time in the cycle if any of the following
conditions are in effect.
The built-in interrupt inputs and high-speed counter inputs on a CJ1M CPU
Unit can be used to activate interrupt tasks. Refer to the CJ Series Built-in I/O
Operation Manual for details.
I/O Interrupts (CS Series
Only)
The I/O interrupt task will be executed when input to the Interrupt Input Unit is
ON.
Scheduled Interrupts A scheduled interrupt task will be executed at fixed intervals.
Power OFF Interrupt The power OFF interrupt task will be executed when power is turned OFF.
Note The execution time for the power OFF task must be less than 10 ms – (Power
OFF delay detection time).
GSBN
n
GSBS
n
GSBS
n
GRET
END
Cyclic task (including
extra cyclic task)
Call
Interrupt task 0
n = 0 to 1,023
Global subroutine
(shared subroutine
used for standard
programming_
Multiple tasks
Return
Call
Cyclic task (including
extra cyclic task)
Return
Exe-
cution
Interrupt
Input Unit
CPU Unit
Pro-
gram
Interrupt
Fixed interval
CPU Unit
Pro-
gram
Interrupt