Omron CJ2 CPU UNIT SOFTWARE User Manual page 104

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

5 Understanding Programming
There are basically two types of tasks.
Type of task
Cyclic tasks
Interrupt
*1,*2
tasks
*1 Cyclic execution (i.e., execution once per cycle) can be performed for an interrupt task just as with cyclic tasks
by using Task Control Instructions to turn ON the interrupt task. (These tasks are called extra cyclic tasks.)
*2 Do not use SFC programs in interrupt tasks. They will not execute normally. SFC programs can be used, how-
ever, if the interrupt tasks are executed as extra cyclic tasks.
Programs assigned to tasks are
allocated in order.
Cyclic
task 1
Interrupt
condition
When specified conditions are
met, execution of the other tasks
is interrupted and the program in
the interrupt task is executed
Cyclic
task n
I/O refreshing
5-12
Applicable pro-
Description
gramming lan-
guage
Executed once per
Ladder diagrams
cycle
SFC
ST
Executed when a
Ladder diagrams
specific condition
ST
occurs. The pro-
cess being exe-
cuted is
interrupted.
Program A
Assigned
to a task.
Interrupt
task
Program B
Assigned
to a task.
Program C
Assigned
to a task.
Execution conditions
Executed when one of the following methods is
used to place the task into READY status.
• Setting the Activated at the start of operation
property using the CX-Programmer (program
property setting)
• Turning ON the task by using a Task Control
Instruction
An interrupt task is placed into READY status when
the interrupt conditions that is set for it occurs. Con-
ditions can be set for each of the following interrupt
tasks.
• Power OFF interrupt tasks
• Scheduled interrupt tasks
• I/O interrupt tasks
• External interrupt tasks
• Input interrupt tasks (CJ2M CPU Units only)
END
END
END
CJ2 CPU Unit Software User's Manual

Advertisement

Table of Contents
loading

Table of Contents