Types Of Tasks - Omron CS1G/H-CPUxx-EV1 Programming Manual

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

Task Features
4-1-4

Types of Tasks

Cyclic Tasks
Interrupt Tasks
Power OFF Interrupt Task
Scheduled Interrupt Tasks
I/O Interrupt Tasks
162
Tasks are broadly classified as either cyclic tasks or interrupt tasks. Interrupt
tasks are further divided into power OFF, scheduled, I/O (CS Series only), and
external interrupt tasks (CS Series only). Interrupt tasks can also be executed
as extra cyclic tasks.
Note With the CS1-H, CJ1-H, CJ1M, or CS1D Units, interrupt task can be executed
as cyclic tasks by starting them with TKON. These are called "extra cyclic
tasks."
A cyclic task that is READY will be executed once each cycle (from the top of
the program until the END(001) instruction) in numerical order starting at the
task with the lowest number. The maximum number of cyclic tasks is 32.
(Cyclic task numbers: 00 to 31).
Note With the CS1-H, CJ1-H, CJ1M, or CS1D CPU Units, interrupt task (interrupt
task numbers 0 to 255) can be executed as cyclic tasks just like normal cyclic
tasks (task numbers 0 to 31). If extra cyclic tasks are used, then the total num-
ber of cyclic tasks that can be used is 288.
An interrupt task will be executed if an interrupt occurs even if a cyclic task
(including extra cyclic tasks) is currently being executed. The interrupt task
will be executed using any time in the cycle, including during user program
execution, I/O refreshing, or peripheral servicing, when the execution condi-
tion for the interrupt is met.
With the CS1-H, CJ1-H, CJ1M, or CS1D CPU Units, interrupt task can be
executed as cyclic tasks. (CS1D CPU Units for Duplex-CPU Systems do not
support interrupts. With CS1D CPU Units for Duplex-CPU Systems, interrupt
tasks can be used only as extra cyclic tasks.)
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.
The power OFF interrupt task will be executed if CPU Unit power is shut OFF.
Only one power OFF interrupt task can be programmed (Interrupt task num-
ber: 1).
Note The power OFF interrupt task must execute before the following time elapses
or the task will be forced to quit.
10 ms – (Power OFF detection delay time)
The power OFF detection delay time is set in the PLC Setup.
A scheduled interrupt task will be executed at a fixed interval based on the
internal timer of the CPU Unit. The maximum number of scheduled interrupt
tasks is 2 (Interrupt task numbers: 2 and 3).
Note The SET INTERRUPT MASK (MSKS(690)) instruction is used to set the inter-
rupt for a scheduled interrupt task. Interrupt times can be set in 10-ms or 1.0-
ms increments in the PLC Setup.
An I/O interrupt task will be executed if an Interrupt Input Unit input turns ON.
The maximum number of I/O interrupt tasks is 32 (Interrupt task numbers: 100
to 131). The Interrupt Input Unit must be mounted to the CPU Rack. For CJ1-
H CPU Units, the Unit must be connected as one of the five Units next to the
Section 4-1

Advertisement

Table of Contents
loading

Table of Contents