Basic Cpu Unit Operation - Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Programming with Tasks
2-1-3

Basic CPU Unit Operation

Executed in order starting
at the lowest number.
Note
The CPU Unit will execute cyclic tasks starting at the task with the lowest
number. It will also interrupt cyclic task execution to execute an interrupt task
if an interrupt occurs.
Cyclic task 0
Cyclic task 1
Cyclic task n
I/O refresh
Peripheral processing
All Condition Flags (ER, CY, Equals, AER, etc.) and instruction conditions
(interlock ON, etc.) will be cleared at the beginning of a task. Therefore Condi-
tion Flags cannot be read nor can INTERLOCK/INTERLOCK CLEAR (IL/ILC)
instructions, JUMP/JUMP END (JMP/JME) instructions, or SUBROUTINE
CALL/SUBROUTINE ENTRY (SBS/SBN) instructions be split between two
tasks.
Interrupt task can be executed as cyclic tasks by starting them with TKON.
These are called "extra cyclic tasks." Extra cyclic tasks (interrupt task numbers
0 to 255) are executed starting at the lowest task number after execution of
the normal cyclic task (celiac task numbers 0 to 31) has been completed.
Interrupt task 5
Interrupt
occurs.
Section 2-1
53

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents